82d8ce6d7c07a74739a73e1f5ceb8cfa9c87d059
[openwrt/svn-archive/archive.git] / net / ucarp / patches / 100-configure-cross-compilation.patch
1 Only in ucarp-1.5.1: autom4te.cache
2 diff -ur ucarp-1.5.1.clean/configure ucarp-1.5.1/configure
3 --- ucarp-1.5.1.clean/configure 2010-01-30 00:03:55.000000000 +0100
4 +++ ucarp-1.5.1/configure 2010-01-30 00:36:06.000000000 +0100
5 @@ -30117,174 +30117,11 @@
6
7 fi
8
9 -{ $as_echo "$as_me:$LINENO: checking whether snprintf is C99 conformant" >&5
10 -$as_echo_n "checking whether snprintf is C99 conformant... " >&6; }
11 -if test "$cross_compiling" = yes; then
12 - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13 -See \`config.log' for more details." >&5
14 -$as_echo "$as_me: error: cannot run test program while cross compiling
15 -See \`config.log' for more details." >&2;}
16 - { (exit 1); exit 1; }; }
17 -else
18 - cat >conftest.$ac_ext <<_ACEOF
19 -/* confdefs.h. */
20 -_ACEOF
21 -cat confdefs.h >>conftest.$ac_ext
22 -cat >>conftest.$ac_ext <<_ACEOF
23 -/* end confdefs.h. */
24 -
25 -#include <stdio.h>
26 -#ifdef STDC_HEADERS
27 -# include <stdlib.h>
28 -# include <stddef.h>
29 -#else
30 -# if HAVE_STDLIB_H
31 -# include <stdlib.h>
32 -# endif
33 -#endif
34 -#ifdef HAVE_UNISTD_H
35 -# include <unistd.h>
36 -#endif
37 -
38 -int main(void)
39 -{
40 - char buf[4];
41 -
42 - (void) fprintf(fopen("conftestval", "w"), "%d\n",
43 - (int) snprintf(buf, sizeof buf, "12345678"));
44 - return 0;
45 -}
46 -
47 -_ACEOF
48 -rm -f conftest$ac_exeext
49 -if { (ac_try="$ac_link"
50 -case "(($ac_try" in
51 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52 - *) ac_try_echo=$ac_try;;
53 -esac
54 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55 -$as_echo "$ac_try_echo") >&5
56 - (eval "$ac_link") 2>&5
57 - ac_status=$?
58 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
60 - { (case "(($ac_try" in
61 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62 - *) ac_try_echo=$ac_try;;
63 -esac
64 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65 -$as_echo "$ac_try_echo") >&5
66 - (eval "$ac_try") 2>&5
67 - ac_status=$?
68 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69 - (exit $ac_status); }; }; then
70 - CONF_SNPRINTF_TYPE=`cat conftestval`
71 -
72 -else
73 - $as_echo "$as_me: program exited with status $ac_status" >&5
74 -$as_echo "$as_me: failed program was:" >&5
75 -sed 's/^/| /' conftest.$ac_ext >&5
76 -
77 -fi
78 -rm -rf conftest.dSYM
79 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
80 -fi
81 -
82 -
83 -{ $as_echo "$as_me:$LINENO: result: done" >&5
84 -$as_echo "done" >&6; }
85 -if test "x$CONF_SNPRINTF_TYPE" = "x" ; then
86 - { $as_echo "$as_me:$LINENO: WARNING: your operating system doesn't implement snprintf" >&5
87 -$as_echo "$as_me: WARNING: your operating system doesn't implement snprintf" >&2;}
88 -else
89 -
90 cat >>confdefs.h <<_ACEOF
91 -#define CONF_SNPRINTF_TYPE $CONF_SNPRINTF_TYPE
92 -_ACEOF
93 -
94 -fi
95 -
96 -{ $as_echo "$as_me:$LINENO: checking whether you already have a standard SHA1 implementation" >&5
97 -$as_echo_n "checking whether you already have a standard SHA1 implementation... " >&6; }
98 -if test "$cross_compiling" = yes; then
99 - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
100 -See \`config.log' for more details." >&5
101 -$as_echo "$as_me: error: cannot run test program while cross compiling
102 -See \`config.log' for more details." >&2;}
103 - { (exit 1); exit 1; }; }
104 -else
105 - cat >conftest.$ac_ext <<_ACEOF
106 -/* confdefs.h. */
107 -_ACEOF
108 -cat confdefs.h >>conftest.$ac_ext
109 -cat >>conftest.$ac_ext <<_ACEOF
110 -/* end confdefs.h. */
111 -
112 -#include <stdio.h>
113 -#include <string.h>
114 -#include <sys/types.h>
115 -#include <sha1.h>
116 -
117 -int main(void)
118 -{
119 - SHA1_CTX ctx;
120 - char b[41];
121 -
122 - SHA1Init(&ctx);
123 - SHA1Update(&ctx, (const unsigned char *) "test", 4U);
124 - SHA1End(&ctx, b);
125 - b[40] = 0;
126 -
127 - return strcasecmp(b, "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3");
128 -}
129 -
130 -_ACEOF
131 -rm -f conftest$ac_exeext
132 -if { (ac_try="$ac_link"
133 -case "(($ac_try" in
134 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135 - *) ac_try_echo=$ac_try;;
136 -esac
137 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138 -$as_echo "$ac_try_echo") >&5
139 - (eval "$ac_link") 2>&5
140 - ac_status=$?
141 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
142 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
143 - { (case "(($ac_try" in
144 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
145 - *) ac_try_echo=$ac_try;;
146 -esac
147 -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
148 -$as_echo "$ac_try_echo") >&5
149 - (eval "$ac_try") 2>&5
150 - ac_status=$?
151 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
152 - (exit $ac_status); }; }; then
153 -
154 -{ $as_echo "$as_me:$LINENO: result: yes" >&5
155 -$as_echo "yes" >&6; }
156 -
157 -cat >>confdefs.h <<\_ACEOF
158 -#define USE_SYSTEM_CRYPT_SHA1 /**/
159 +#define CONF_SNPRINTF_TYPE 1
160 _ACEOF
161
162
163 -else
164 - $as_echo "$as_me: program exited with status $ac_status" >&5
165 -$as_echo "$as_me: failed program was:" >&5
166 -sed 's/^/| /' conftest.$ac_ext >&5
167 -
168 -( exit $ac_status )
169 -{ $as_echo "$as_me:$LINENO: result: no" >&5
170 -$as_echo "no" >&6; }
171 -
172 -fi
173 -rm -rf conftest.dSYM
174 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
175 -fi
176 -
177 -
178
179 { $as_echo "$as_me:$LINENO: checking whether syslog names are available" >&5
180 $as_echo_n "checking whether syslog names are available... " >&6; }