ccollect:0.6.2->0.7.0
[nslu2-linux/optware.git] / sources / nmap / configure.patch
blobd3fbf1b032fe8a995b975a9e6ebcb57412cf21b5
1 --- configure 2008-06-15 08:05:12.000000000 +0200
2 +++ nmap/configure 2008-07-11 22:21:40.000000000 +0200
3 @@ -6571,68 +6571,68 @@
4 LIBS_OLD="$LIBS"
5 LIBS="$LIBS -lpcap"
6 { echo "$as_me:$LINENO: checking if libpcap version is recent enough" >&5
7 -echo $ECHO_N "checking if libpcap version is recent enough... $ECHO_C" >&6; }
8 - if test "$cross_compiling" = yes; then
9 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10 -See \`config.log' for more details." >&5
11 -echo "$as_me: error: cannot run test program while cross compiling
12 -See \`config.log' for more details." >&2;}
13 - { (exit 1); exit 1; }; }
14 -else
15 - cat >conftest.$ac_ext <<_ACEOF
16 -/* confdefs.h. */
17 -_ACEOF
18 -cat confdefs.h >>conftest.$ac_ext
19 -cat >>conftest.$ac_ext <<_ACEOF
20 -/* end confdefs.h. */
22 -#include <stdio.h>
23 -extern char pcap_version[];
24 -int main() {
25 - int major, minor1, minor2;
26 - sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
27 - if (major > 0)
28 - exit(0);
29 - if (minor1 < 9)
30 - exit(1);
31 - if (minor2 < 4)
32 - exit(1);
33 - exit(0);
35 -_ACEOF
36 -rm -f conftest$ac_exeext
37 -if { (ac_try="$ac_link"
38 -case "(($ac_try" in
39 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40 - *) ac_try_echo=$ac_try;;
41 -esac
42 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43 - (eval "$ac_link") 2>&5
44 - ac_status=$?
45 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
46 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47 - { (case "(($ac_try" in
48 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49 - *) ac_try_echo=$ac_try;;
50 -esac
51 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52 - (eval "$ac_try") 2>&5
53 - ac_status=$?
54 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
55 - (exit $ac_status); }; }; then
56 - { echo "$as_me:$LINENO: result: yes" >&5
57 -echo "${ECHO_T}yes" >&6; }; have_libpcap=yes
58 -else
59 - echo "$as_me: program exited with status $ac_status" >&5
60 -echo "$as_me: failed program was:" >&5
61 -sed 's/^/| /' conftest.$ac_ext >&5
63 -( exit $ac_status )
64 -{ echo "$as_me:$LINENO: result: no" >&5
65 +#echo $ECHO_N "checking if libpcap version is recent enough... $ECHO_C" >&6; }
66 +# if test "$cross_compiling" = yes; then
67 +# { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
68 +#See \`config.log' for more details." >&5
69 +#echo "$as_me: error: cannot run test program while cross compiling
70 +#See \`config.log' for more details." >&2;}
71 +# { (exit 1); exit 1; }; }
72 +#else
73 +# cat >conftest.$ac_ext <<_ACEOF
74 +#/* confdefs.h. */
75 +#_ACEOF
76 +#cat confdefs.h >>conftest.$ac_ext
77 +#cat >>conftest.$ac_ext <<_ACEOF
78 +#/* end confdefs.h. */
80 +##include <stdio.h>
81 +#extern char pcap_version[];
82 +#int main() {
83 +# int major, minor1, minor2;
84 +# sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
85 +# if (major > 0)
86 +# exit(0);
87 +# if (minor1 < 9)
88 +# exit(1);
89 +# if (minor2 < 4)
90 +# exit(1);
91 +# exit(0);
92 +#}
93 +#_ACEOF
94 +#rm -f conftest$ac_exeext
95 +#if { (ac_try="$ac_link"
96 +#case "(($ac_try" in
97 +# *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98 +# *) ac_try_echo=$ac_try;;
99 +#esac
100 +#eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
101 +# (eval "$ac_link") 2>&5
102 +# ac_status=$?
103 +# echo "$as_me:$LINENO: \$? = $ac_status" >&5
104 +# (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
105 +# { (case "(($ac_try" in
106 +# *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107 +# *) ac_try_echo=$ac_try;;
108 +#esac
109 +#eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
110 +# (eval "$ac_try") 2>&5
111 +# ac_status=$?
112 +# echo "$as_me:$LINENO: \$? = $ac_status" >&5
113 +# (exit $ac_status); }; }; then
114 +# { echo "$as_me:$LINENO: result: yes" >&5
115 +#echo "${ECHO_T}yes" >&6; }; have_libpcap=yes
116 +#else
117 +# echo "$as_me: program exited with status $ac_status" >&5
118 +#echo "$as_me: failed program was:" >&5
119 +#sed 's/^/| /' conftest.$ac_ext >&5
121 +#( exit $ac_status )
122 +#{ echo "$as_me:$LINENO: result: no" >&5
123 echo "${ECHO_T}no" >&6; }; have_libpcap=no
125 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
127 +#fi
128 +#rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
129 +#fi
132 LIBS="$LIBS_OLD"
133 @@ -7658,59 +7658,59 @@
134 { echo "$as_me:$LINENO: checking for lua version >= 501" >&5
135 echo $ECHO_N "checking for lua version >= 501... $ECHO_C" >&6; }
137 -if test "$cross_compiling" = yes; then
138 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
139 -See \`config.log' for more details." >&5
140 -echo "$as_me: error: cannot run test program while cross compiling
141 -See \`config.log' for more details." >&2;}
142 - { (exit 1); exit 1; }; }
143 -else
144 - cat >conftest.$ac_ext <<_ACEOF
145 - /* confdefs.h. */
146 -_ACEOF
147 -cat confdefs.h >>conftest.$ac_ext
148 -cat >>conftest.$ac_ext <<_ACEOF
149 -/* end confdefs.h. */
150 -#include <lua.h>
151 -int
152 -main ()
154 -if(LUA_VERSION_NUM < 501) return 1;
156 - return 0;
158 -_ACEOF
159 -rm -f conftest$ac_exeext
160 -if { (ac_try="$ac_link"
161 -case "(($ac_try" in
162 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
163 - *) ac_try_echo=$ac_try;;
164 -esac
165 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
166 - (eval "$ac_link") 2>&5
167 - ac_status=$?
168 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
169 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
170 - { (case "(($ac_try" in
171 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
172 - *) ac_try_echo=$ac_try;;
173 -esac
174 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
175 - (eval "$ac_try") 2>&5
176 - ac_status=$?
177 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
178 - (exit $ac_status); }; }; then
179 - have_lua=yes
180 -else
181 - echo "$as_me: program exited with status $ac_status" >&5
182 -echo "$as_me: failed program was:" >&5
183 -sed 's/^/| /' conftest.$ac_ext >&5
185 -( exit $ac_status )
186 -have_lua=no
188 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
190 +#if test "$cross_compiling" = yes; then
191 +# { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
192 +#See \`config.log' for more details." >&5
193 +#echo "$as_me: error: cannot run test program while cross compiling
194 +#See \`config.log' for more details." >&2;}
195 +# { (exit 1); exit 1; }; }
196 +#else
197 +# cat >conftest.$ac_ext <<_ACEOF
198 +# /* confdefs.h. */
199 +#_ACEOF
200 +#cat confdefs.h >>conftest.$ac_ext
201 +#cat >>conftest.$ac_ext <<_ACEOF
202 +#/* end confdefs.h. */
203 +##include <lua.h>
204 +#int
205 +#main ()
207 +#if(LUA_VERSION_NUM < 501) return 1;
208 +# ;
209 +# return 0;
211 +#_ACEOF
212 +#rm -f conftest$ac_exeext
213 +#if { (ac_try="$ac_link"
214 +#case "(($ac_try" in
215 +# *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
216 +# *) ac_try_echo=$ac_try;;
217 +#esac
218 +#eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
219 +# (eval "$ac_link") 2>&5
220 +# ac_status=$?
221 +# echo "$as_me:$LINENO: \$? = $ac_status" >&5
222 +# (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
223 +# { (case "(($ac_try" in
224 +# *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
225 +# *) ac_try_echo=$ac_try;;
226 +#esac
227 +#eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
228 +# (eval "$ac_try") 2>&5
229 +# ac_status=$?
230 +# echo "$as_me:$LINENO: \$? = $ac_status" >&5
231 +# (exit $ac_status); }; }; then
232 +# have_lua=yes
233 +#else
234 +# echo "$as_me: program exited with status $ac_status" >&5
235 +#echo "$as_me: failed program was:" >&5
236 +#sed 's/^/| /' conftest.$ac_ext >&5
238 +#( exit $ac_status )
239 +#have_lua=no
240 +#fi
241 +#rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
242 +#fi
245 ac_ext=c