diff options
Diffstat (limited to 'meta/recipes-devtools/expect/expect/0001-configure.in.patch')
-rw-r--r-- | meta/recipes-devtools/expect/expect/0001-configure.in.patch | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/meta/recipes-devtools/expect/expect/0001-configure.in.patch b/meta/recipes-devtools/expect/expect/0001-configure.in.patch new file mode 100644 index 0000000000..7595a254a8 --- /dev/null +++ b/meta/recipes-devtools/expect/expect/0001-configure.in.patch | |||
@@ -0,0 +1,108 @@ | |||
1 | Allow cross compiling. | ||
2 | |||
3 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> | ||
4 | Upstream-Status: Pending | ||
5 | --- | ||
6 | diff -uNr a/configure.in b/configure.in | ||
7 | --- a/configure.in 2012-12-14 15:31:32.623180450 +0100 | ||
8 | +++ b/configure.in 2012-12-14 15:53:34.518233519 +0100 | ||
9 | @@ -481,7 +481,7 @@ | ||
10 | , | ||
11 | AC_MSG_RESULT(no) | ||
12 | , | ||
13 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
14 | + AC_MSG_RESULT(no) | ||
15 | ) | ||
16 | |||
17 | AC_MSG_CHECKING([if any value exists for WNOHANG]) | ||
18 | @@ -506,7 +506,9 @@ | ||
19 | AC_MSG_RESULT(no) | ||
20 | AC_DEFINE(WNOHANG_BACKUP_VALUE, 1) | ||
21 | , | ||
22 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
23 | + AC_MSG_RESULT(yes) | ||
24 | + AC_DEFINE_UNQUOTED(WNOHANG_BACKUP_VALUE, `cat wnohang`) | ||
25 | + rm -f wnohang | ||
26 | ) | ||
27 | |||
28 | # | ||
29 | @@ -574,7 +576,8 @@ | ||
30 | AC_DEFINE(REARM_SIG) | ||
31 | , | ||
32 | AC_MSG_RESULT(no) | ||
33 | -, AC_MSG_WARN([Expect can't be cross compiled]) | ||
34 | +, | ||
35 | + AC_MSG_RESULT(no) | ||
36 | ) | ||
37 | |||
38 | # HPUX7 has trouble with the big cat so split it | ||
39 | @@ -725,7 +728,9 @@ | ||
40 | , | ||
41 | AC_MSG_RESULT(no) | ||
42 | , | ||
43 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
44 | + AC_MSG_RESULT(yes) | ||
45 | + AC_DEFINE(HAVE_SGTTYB) | ||
46 | + PTY_TYPE=sgttyb | ||
47 | ) | ||
48 | |||
49 | # mach systems have include files for unimplemented features | ||
50 | @@ -749,7 +754,9 @@ | ||
51 | , | ||
52 | AC_MSG_RESULT(no) | ||
53 | , | ||
54 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
55 | + AC_DEFINE(HAVE_TERMIO) | ||
56 | + PTY_TYPE=termios | ||
57 | + AC_MSG_RESULT(yes) | ||
58 | ) | ||
59 | |||
60 | # now check for the new style ttys (not yet posix) | ||
61 | @@ -771,7 +778,9 @@ | ||
62 | , | ||
63 | AC_MSG_RESULT(no) | ||
64 | , | ||
65 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
66 | + AC_DEFINE(HAVE_TERMIOS) | ||
67 | + PTY_TYPE=termios | ||
68 | + AC_MSG_RESULT(yes) | ||
69 | ) | ||
70 | fi | ||
71 | |||
72 | @@ -794,7 +803,7 @@ | ||
73 | , | ||
74 | AC_MSG_RESULT(no) | ||
75 | , | ||
76 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
77 | + AC_MSG_RESULT(no) | ||
78 | ) | ||
79 | |||
80 | AC_MSG_CHECKING([if TIOCGWINSZ in termios.h]) | ||
81 | @@ -816,7 +825,7 @@ | ||
82 | , | ||
83 | AC_MSG_RESULT(no) | ||
84 | , | ||
85 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
86 | + AC_MSG_RESULT(no) | ||
87 | ) | ||
88 | |||
89 | # finally check for Cray style ttys | ||
90 | @@ -837,7 +846,7 @@ | ||
91 | , | ||
92 | AC_MSG_RESULT(no) | ||
93 | , | ||
94 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
95 | + AC_MSG_RESULT(no) | ||
96 | ) | ||
97 | |||
98 | # | ||
99 | @@ -889,7 +898,8 @@ | ||
100 | AC_MSG_RESULT(yes), | ||
101 | AC_MSG_RESULT(no) | ||
102 | , | ||
103 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
104 | + AC_DEFINE(HAVE_SV_TIMEZONE) | ||
105 | + AC_MSG_RESULT(yes), | ||
106 | ) | ||
107 | |||
108 | |||