pkg-autotools: move the libtool patching call out of the autoreconf hook
[buildroot-gz.git] / package / expect / expect-0001-enable-cross-compilation.patch
blobfd31a01f11f76836e8d9426c58bba1199d111ae4
1 From: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2 Subject: [PATCH] enable cross compilation for expect
4 This patch was created by running ./configure on a modern Linux machine
5 and inserting the results into the cross compilation section of
6 each AC_MSG_CHECKING that bombed out with an error.
8 Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
9 ---
11 Index: expect-5.45/configure.in
12 ===================================================================
13 --- expect-5.45.orig/configure.in 2013-11-14 07:59:58.732100595 -0600
14 +++ expect-5.45/configure.in 2013-11-14 07:59:58.732100595 -0600
15 @@ -481,7 +481,7 @@
17 AC_MSG_RESULT(no)
19 - AC_MSG_ERROR([Expect can't be cross compiled])
20 + AC_MSG_RESULT(no)
23 AC_MSG_CHECKING([if any value exists for WNOHANG])
24 @@ -506,7 +506,8 @@
25 AC_MSG_RESULT(no)
26 AC_DEFINE(WNOHANG_BACKUP_VALUE, 1)
28 - AC_MSG_ERROR([Expect can't be cross compiled])
29 + AC_MSG_RESULT(yes)
30 + AC_DEFINE(WNOHANG_BACKUP_VALUE, 1)
34 @@ -574,7 +575,7 @@
35 AC_DEFINE(REARM_SIG)
37 AC_MSG_RESULT(no)
38 -, AC_MSG_WARN([Expect can't be cross compiled])
39 +, AC_MSG_RESULT(no)
42 # HPUX7 has trouble with the big cat so split it
43 @@ -725,7 +726,7 @@
45 AC_MSG_RESULT(no)
47 - AC_MSG_ERROR([Expect can't be cross compiled])
48 + AC_MSG_RESULT(no)
51 # mach systems have include files for unimplemented features
52 @@ -749,7 +750,9 @@
54 AC_MSG_RESULT(no)
56 - AC_MSG_ERROR([Expect can't be cross compiled])
57 + AC_DEFINE(HAVE_TERMIO)
58 + PTY_TYPE=termios
59 + AC_MSG_RESULT(yes)
62 # now check for the new style ttys (not yet posix)
63 @@ -771,7 +774,9 @@
65 AC_MSG_RESULT(no)
67 - AC_MSG_ERROR([Expect can't be cross compiled])
68 + AC_DEFINE(HAVE_TERMIOS)
69 + PTY_TYPE=termios
70 + AC_MSG_RESULT(yes)
74 @@ -794,7 +799,7 @@
76 AC_MSG_RESULT(no)
78 - AC_MSG_ERROR([Expect can't be cross compiled])
79 + AC_MSG_RESULT(no)
82 AC_MSG_CHECKING([if TIOCGWINSZ in termios.h])
83 @@ -816,7 +821,7 @@
85 AC_MSG_RESULT(no)
87 - AC_MSG_ERROR([Expect can't be cross compiled])
88 + AC_MSG_RESULT(no)
91 # finally check for Cray style ttys
92 @@ -837,7 +842,7 @@
94 AC_MSG_RESULT(no)
96 - AC_MSG_ERROR([Expect can't be cross compiled])
97 + AC_MSG_RESULT(no)
101 @@ -869,7 +874,9 @@
102 AC_HAVE_FUNCS(getpty)
104 # following test sets SETPGRP_VOID if setpgrp takes 0 args, else takes 2
105 -AC_FUNC_SETPGRP
106 +cat >>expect_cf.h <<\_ACEOF
107 +#define SETPGRP_VOID 1
108 +_ACEOF
111 # check for timezones
112 @@ -889,7 +896,7 @@
113 AC_MSG_RESULT(yes),
114 AC_MSG_RESULT(no)
116 - AC_MSG_ERROR([Expect can't be cross compiled])
117 + AC_MSG_RESULT(yes)