git-svn: trunk@3483
aCaB authored on 2008/01/07 00:07:52... | ... |
@@ -20027,11 +20027,8 @@ fi |
20027 | 20027 |
{ echo "$as_me:$LINENO: checking for gcc bug PR27603" >&5 |
20028 | 20028 |
echo $ECHO_N "checking for gcc bug PR27603... $ECHO_C" >&6; } |
20029 | 20029 |
if test "$cross_compiling" = yes; then |
20030 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
20031 |
-See \`config.log' for more details." >&5 |
|
20032 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
20033 |
-See \`config.log' for more details." >&2;} |
|
20034 |
- { (exit 1); exit 1; }; } |
|
20030 |
+ { echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 |
|
20031 |
+echo "${ECHO_T}cross-compiling, assumed ok" >&6; } |
|
20035 | 20032 |
else |
20036 | 20033 |
cat >conftest.$ac_ext <<_ACEOF |
20037 | 20034 |
/* confdefs.h. */ |
... | ... |
@@ -20097,11 +20094,8 @@ fi |
20097 | 20097 |
{ echo "$as_me:$LINENO: checking for gcc bug PR28045" >&5 |
20098 | 20098 |
echo $ECHO_N "checking for gcc bug PR28045... $ECHO_C" >&6; } |
20099 | 20099 |
if test "$cross_compiling" = yes; then |
20100 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
20101 |
-See \`config.log' for more details." >&5 |
|
20102 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
20103 |
-See \`config.log' for more details." >&2;} |
|
20104 |
- { (exit 1); exit 1; }; } |
|
20100 |
+ { echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 |
|
20101 |
+echo "${ECHO_T}cross-compiling, assumed ok" >&6; } |
|
20105 | 20102 |
else |
20106 | 20103 |
cat >conftest.$ac_ext <<_ACEOF |
20107 | 20104 |
/* confdefs.h. */ |
... | ... |
@@ -20172,11 +20166,8 @@ fi |
20172 | 20172 |
{ echo "$as_me:$LINENO: checking for gcc bug PR26763-2" >&5 |
20173 | 20173 |
echo $ECHO_N "checking for gcc bug PR26763-2... $ECHO_C" >&6; } |
20174 | 20174 |
if test "$cross_compiling" = yes; then |
20175 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
20176 |
-See \`config.log' for more details." >&5 |
|
20177 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
20178 |
-See \`config.log' for more details." >&2;} |
|
20179 |
- { (exit 1); exit 1; }; } |
|
20175 |
+ { echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 |
|
20176 |
+echo "${ECHO_T}cross-compiling, assumed ok" >&6; } |
|
20180 | 20177 |
else |
20181 | 20178 |
cat >conftest.$ac_ext <<_ACEOF |
20182 | 20179 |
/* confdefs.h. */ |
... | ... |
@@ -20244,11 +20235,8 @@ fi |
20244 | 20244 |
{ echo "$as_me:$LINENO: checking for valid code generation of CLI_ISCONTAINED" >&5 |
20245 | 20245 |
echo $ECHO_N "checking for valid code generation of CLI_ISCONTAINED... $ECHO_C" >&6; } |
20246 | 20246 |
if test "$cross_compiling" = yes; then |
20247 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
20248 |
-See \`config.log' for more details." >&5 |
|
20249 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
20250 |
-See \`config.log' for more details." >&2;} |
|
20251 |
- { (exit 1); exit 1; }; } |
|
20247 |
+ { echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 |
|
20248 |
+echo "${ECHO_T}cross-compiling, assumed ok" >&6; } |
|
20252 | 20249 |
else |
20253 | 20250 |
cat >conftest.$ac_ext <<_ACEOF |
20254 | 20251 |
/* confdefs.h. */ |
... | ... |
@@ -21838,11 +21826,11 @@ if test "x$ac_cv_func_snprintf" = "xyes" ; then |
21838 | 21838 |
{ echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 |
21839 | 21839 |
echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } |
21840 | 21840 |
if test "$cross_compiling" = yes; then |
21841 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
21842 |
-See \`config.log' for more details." >&5 |
|
21843 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
21844 |
-See \`config.log' for more details." >&2;} |
|
21845 |
- { (exit 1); exit 1; }; } |
|
21841 |
+ |
|
21842 |
+ { echo "$as_me:$LINENO: result: cross-compiling, assumed ok" >&5 |
|
21843 |
+echo "${ECHO_T}cross-compiling, assumed ok" >&6; } |
|
21844 |
+ |
|
21845 |
+ |
|
21846 | 21846 |
else |
21847 | 21847 |
cat >conftest.$ac_ext <<_ACEOF |
21848 | 21848 |
/* confdefs.h. */ |
... | ... |
@@ -21894,7 +21882,6 @@ _ACEOF |
21894 | 21894 |
{ echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 |
21895 | 21895 |
echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} |
21896 | 21896 |
|
21897 |
- |
|
21898 | 21897 |
fi |
21899 | 21898 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21900 | 21899 |
fi |
... | ... |
@@ -22776,7 +22763,8 @@ else |
22776 | 22776 |
fi |
22777 | 22777 |
|
22778 | 22778 |
|
22779 |
-{ echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
|
22779 |
+if test "$cross_compiling" = no; then |
|
22780 |
+ { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
|
22780 | 22781 |
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; } |
22781 | 22782 |
if test "${ac_cv_func_setpgrp_void+set}" = set; then |
22782 | 22783 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
... | ... |
@@ -22848,6 +22836,70 @@ _ACEOF |
22848 | 22848 |
|
22849 | 22849 |
fi |
22850 | 22850 |
|
22851 |
+else |
|
22852 |
+ { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
|
22853 |
+echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; } |
|
22854 |
+if test "${ac_cv_func_setpgrp_void+set}" = set; then |
|
22855 |
+ echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
22856 |
+else |
|
22857 |
+ cat >conftest.$ac_ext <<_ACEOF |
|
22858 |
+/* confdefs.h. */ |
|
22859 |
+_ACEOF |
|
22860 |
+cat confdefs.h >>conftest.$ac_ext |
|
22861 |
+cat >>conftest.$ac_ext <<_ACEOF |
|
22862 |
+/* end confdefs.h. */ |
|
22863 |
+ |
|
22864 |
+#include <unistd.h> |
|
22865 |
+ |
|
22866 |
+int |
|
22867 |
+main () |
|
22868 |
+{ |
|
22869 |
+ |
|
22870 |
+ if (setpgrp(1,1) == -1) |
|
22871 |
+ exit (0); |
|
22872 |
+ else |
|
22873 |
+ exit (1); |
|
22874 |
+ |
|
22875 |
+ ; |
|
22876 |
+ return 0; |
|
22877 |
+} |
|
22878 |
+_ACEOF |
|
22879 |
+rm -f conftest.$ac_objext |
|
22880 |
+if { (ac_try="$ac_compile" |
|
22881 |
+case "(($ac_try" in |
|
22882 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
22883 |
+ *) ac_try_echo=$ac_try;; |
|
22884 |
+esac |
|
22885 |
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
22886 |
+ (eval "$ac_compile") 2>conftest.er1 |
|
22887 |
+ ac_status=$? |
|
22888 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
22889 |
+ rm -f conftest.er1 |
|
22890 |
+ cat conftest.err >&5 |
|
22891 |
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
22892 |
+ (exit $ac_status); } && { |
|
22893 |
+ test -z "$ac_c_werror_flag" || |
|
22894 |
+ test ! -s conftest.err |
|
22895 |
+ } && test -s conftest.$ac_objext; then |
|
22896 |
+ ac_cv_func_setpgrp_void=no |
|
22897 |
+else |
|
22898 |
+ echo "$as_me: failed program was:" >&5 |
|
22899 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
|
22900 |
+ |
|
22901 |
+ ac_cv_func_setpgrp_void=yes |
|
22902 |
+fi |
|
22903 |
+ |
|
22904 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
22905 |
+fi |
|
22906 |
+{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
|
22907 |
+echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; } |
|
22908 |
+if test $ac_cv_func_setpgrp_void = yes; then |
|
22909 |
+ cat >>confdefs.h <<\_ACEOF |
|
22910 |
+#define SETPGRP_VOID 1 |
|
22911 |
+_ACEOF |
|
22912 |
+ |
|
22913 |
+fi |
|
22914 |
+fi |
|
22851 | 22915 |
|
22852 | 22916 |
# Check whether --enable-milter was given. |
22853 | 22917 |
if test "${enable_milter+set}" = set; then |
... | ... |
@@ -23275,14 +23327,9 @@ cat >>confdefs.h <<_ACEOF |
23275 | 23275 |
_ACEOF |
23276 | 23276 |
|
23277 | 23277 |
|
23278 |
-if test "$cross_compiling" = yes; then |
|
23279 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
23280 |
-See \`config.log' for more details." >&5 |
|
23281 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
23282 |
-See \`config.log' for more details." >&2;} |
|
23283 |
- { (exit 1); exit 1; }; } |
|
23284 |
-else |
|
23285 |
- cat >conftest.$ac_ext <<_ACEOF |
|
23278 |
+{ echo "$as_me:$LINENO: checking whether in_port_t is defined" >&5 |
|
23279 |
+echo $ECHO_N "checking whether in_port_t is defined... $ECHO_C" >&6; } |
|
23280 |
+cat >conftest.$ac_ext <<_ACEOF |
|
23286 | 23281 |
/* confdefs.h. */ |
23287 | 23282 |
_ACEOF |
23288 | 23283 |
cat confdefs.h >>conftest.$ac_ext |
... | ... |
@@ -23291,56 +23338,54 @@ cat >>conftest.$ac_ext <<_ACEOF |
23291 | 23291 |
|
23292 | 23292 |
#include <sys/types.h> |
23293 | 23293 |
#include <netinet/in.h> |
23294 |
-int main(int argc, char **argv) { in_port_t pt; pt = 0; return pt; } |
|
23295 | 23294 |
|
23295 |
+int |
|
23296 |
+main () |
|
23297 |
+{ |
|
23298 |
+int main(int argc, char **argv) { in_port_t pt; pt = 0; return pt; } |
|
23299 |
+ ; |
|
23300 |
+ return 0; |
|
23301 |
+} |
|
23296 | 23302 |
_ACEOF |
23297 |
-rm -f conftest$ac_exeext |
|
23298 |
-if { (ac_try="$ac_link" |
|
23303 |
+rm -f conftest.$ac_objext |
|
23304 |
+if { (ac_try="$ac_compile" |
|
23299 | 23305 |
case "(($ac_try" in |
23300 | 23306 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23301 | 23307 |
*) ac_try_echo=$ac_try;; |
23302 | 23308 |
esac |
23303 | 23309 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23304 |
- (eval "$ac_link") 2>&5 |
|
23305 |
- ac_status=$? |
|
23306 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23307 |
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
23308 |
- { (case "(($ac_try" in |
|
23309 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
23310 |
- *) ac_try_echo=$ac_try;; |
|
23311 |
-esac |
|
23312 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
23313 |
- (eval "$ac_try") 2>&5 |
|
23310 |
+ (eval "$ac_compile") 2>conftest.er1 |
|
23314 | 23311 |
ac_status=$? |
23312 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
23313 |
+ rm -f conftest.er1 |
|
23314 |
+ cat conftest.err >&5 |
|
23315 | 23315 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23316 |
- (exit $ac_status); }; }; then |
|
23316 |
+ (exit $ac_status); } && { |
|
23317 |
+ test -z "$ac_c_werror_flag" || |
|
23318 |
+ test ! -s conftest.err |
|
23319 |
+ } && test -s conftest.$ac_objext; then |
|
23320 |
+ |
|
23321 |
+ { echo "$as_me:$LINENO: result: yes" >&5 |
|
23322 |
+echo "${ECHO_T}yes" >&6; } |
|
23317 | 23323 |
|
23318 | 23324 |
cat >>confdefs.h <<\_ACEOF |
23319 | 23325 |
#define HAVE_IN_PORT_T 1 |
23320 | 23326 |
_ACEOF |
23321 | 23327 |
|
23328 |
+ |
|
23322 | 23329 |
else |
23323 |
- echo "$as_me: program exited with status $ac_status" >&5 |
|
23324 |
-echo "$as_me: failed program was:" >&5 |
|
23330 |
+ echo "$as_me: failed program was:" >&5 |
|
23325 | 23331 |
sed 's/^/| /' conftest.$ac_ext >&5 |
23326 | 23332 |
|
23327 |
-( exit $ac_status ) |
|
23328 |
-{ echo "$as_me:$LINENO: result: in_port_t is not defined" >&5 |
|
23329 |
-echo "${ECHO_T}in_port_t is not defined" >&6; } |
|
23330 |
-fi |
|
23331 |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
23333 |
+ { echo "$as_me:$LINENO: result: no" >&5 |
|
23334 |
+echo "${ECHO_T}no" >&6; } |
|
23332 | 23335 |
fi |
23333 | 23336 |
|
23337 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
23334 | 23338 |
|
23335 |
- |
|
23336 |
-if test "$cross_compiling" = yes; then |
|
23337 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
23338 |
-See \`config.log' for more details." >&5 |
|
23339 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
23340 |
-See \`config.log' for more details." >&2;} |
|
23341 |
- { (exit 1); exit 1; }; } |
|
23342 |
-else |
|
23343 |
- cat >conftest.$ac_ext <<_ACEOF |
|
23339 |
+{ echo "$as_me:$LINENO: checking for in_addr_t definition" >&5 |
|
23340 |
+echo $ECHO_N "checking for in_addr_t definition... $ECHO_C" >&6; } |
|
23341 |
+cat >conftest.$ac_ext <<_ACEOF |
|
23344 | 23342 |
/* confdefs.h. */ |
23345 | 23343 |
_ACEOF |
23346 | 23344 |
cat confdefs.h >>conftest.$ac_ext |
... | ... |
@@ -23349,47 +23394,50 @@ cat >>conftest.$ac_ext <<_ACEOF |
23349 | 23349 |
|
23350 | 23350 |
#include <sys/types.h> |
23351 | 23351 |
#include <netinet/in.h> |
23352 |
-int main(int argc, char **argv) { in_addr_t pt; pt = 0; return pt; } |
|
23353 | 23352 |
|
23353 |
+int |
|
23354 |
+main () |
|
23355 |
+{ |
|
23356 |
+int main(int argc, char **argv) { in_addr_t pt; pt = 0; return pt; } |
|
23357 |
+ ; |
|
23358 |
+ return 0; |
|
23359 |
+} |
|
23354 | 23360 |
_ACEOF |
23355 |
-rm -f conftest$ac_exeext |
|
23356 |
-if { (ac_try="$ac_link" |
|
23361 |
+rm -f conftest.$ac_objext |
|
23362 |
+if { (ac_try="$ac_compile" |
|
23357 | 23363 |
case "(($ac_try" in |
23358 | 23364 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23359 | 23365 |
*) ac_try_echo=$ac_try;; |
23360 | 23366 |
esac |
23361 | 23367 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23362 |
- (eval "$ac_link") 2>&5 |
|
23363 |
- ac_status=$? |
|
23364 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
23365 |
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
23366 |
- { (case "(($ac_try" in |
|
23367 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
23368 |
- *) ac_try_echo=$ac_try;; |
|
23369 |
-esac |
|
23370 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
23371 |
- (eval "$ac_try") 2>&5 |
|
23368 |
+ (eval "$ac_compile") 2>conftest.er1 |
|
23372 | 23369 |
ac_status=$? |
23370 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
23371 |
+ rm -f conftest.er1 |
|
23372 |
+ cat conftest.err >&5 |
|
23373 | 23373 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23374 |
- (exit $ac_status); }; }; then |
|
23374 |
+ (exit $ac_status); } && { |
|
23375 |
+ test -z "$ac_c_werror_flag" || |
|
23376 |
+ test ! -s conftest.err |
|
23377 |
+ } && test -s conftest.$ac_objext; then |
|
23378 |
+ |
|
23379 |
+ { echo "$as_me:$LINENO: result: yes" >&5 |
|
23380 |
+echo "${ECHO_T}yes" >&6; } |
|
23375 | 23381 |
|
23376 | 23382 |
cat >>confdefs.h <<\_ACEOF |
23377 | 23383 |
#define HAVE_IN_ADDR_T 1 |
23378 | 23384 |
_ACEOF |
23379 | 23385 |
|
23386 |
+ |
|
23380 | 23387 |
else |
23381 |
- echo "$as_me: program exited with status $ac_status" >&5 |
|
23382 |
-echo "$as_me: failed program was:" >&5 |
|
23388 |
+ echo "$as_me: failed program was:" >&5 |
|
23383 | 23389 |
sed 's/^/| /' conftest.$ac_ext >&5 |
23384 | 23390 |
|
23385 |
-( exit $ac_status ) |
|
23386 |
-{ echo "$as_me:$LINENO: result: in_addr_t is not defined" >&5 |
|
23387 |
-echo "${ECHO_T}in_addr_t is not defined" >&6; } |
|
23388 |
-fi |
|
23389 |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
23391 |
+ { echo "$as_me:$LINENO: result: no" >&5 |
|
23392 |
+echo "${ECHO_T}no" >&6; } |
|
23390 | 23393 |
fi |
23391 | 23394 |
|
23392 |
- |
|
23395 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
23393 | 23396 |
|
23394 | 23397 |
case "$target_os" in |
23395 | 23398 |
linux*) |
... | ... |
@@ -24422,14 +24470,7 @@ if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then |
24422 | 24422 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
24423 | 24423 |
else |
24424 | 24424 |
|
24425 |
- if test "$cross_compiling" = yes; then |
|
24426 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
24427 |
-See \`config.log' for more details." >&5 |
|
24428 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
24429 |
-See \`config.log' for more details." >&2;} |
|
24430 |
- { (exit 1); exit 1; }; } |
|
24431 |
-else |
|
24432 |
- cat >conftest.$ac_ext <<_ACEOF |
|
24425 |
+ cat >conftest.$ac_ext <<_ACEOF |
|
24433 | 24426 |
/* confdefs.h. */ |
24434 | 24427 |
_ACEOF |
24435 | 24428 |
cat confdefs.h >>conftest.$ac_ext |
... | ... |
@@ -24439,50 +24480,51 @@ cat >>conftest.$ac_ext <<_ACEOF |
24439 | 24439 |
#include <sys/types.h> |
24440 | 24440 |
#include <sys/socket.h> |
24441 | 24441 |
#include <sys/uio.h> |
24442 |
+ |
|
24443 |
+int |
|
24444 |
+main () |
|
24445 |
+{ |
|
24446 |
+ |
|
24442 | 24447 |
int main() { |
24443 | 24448 |
#ifdef msg_accrights |
24444 |
-exit(1); |
|
24449 |
+#error msg_accrights defined |
|
24445 | 24450 |
#endif |
24446 | 24451 |
struct msghdr m; |
24447 | 24452 |
m.msg_accrights = 0; |
24448 |
-exit(0); |
|
24453 |
+return 0; |
|
24449 | 24454 |
} |
24450 | 24455 |
|
24456 |
+ |
|
24457 |
+ ; |
|
24458 |
+ return 0; |
|
24459 |
+} |
|
24451 | 24460 |
_ACEOF |
24452 |
-rm -f conftest$ac_exeext |
|
24453 |
-if { (ac_try="$ac_link" |
|
24461 |
+rm -f conftest.$ac_objext |
|
24462 |
+if { (ac_try="$ac_compile" |
|
24454 | 24463 |
case "(($ac_try" in |
24455 | 24464 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24456 | 24465 |
*) ac_try_echo=$ac_try;; |
24457 | 24466 |
esac |
24458 | 24467 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24459 |
- (eval "$ac_link") 2>&5 |
|
24460 |
- ac_status=$? |
|
24461 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24462 |
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
24463 |
- { (case "(($ac_try" in |
|
24464 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
24465 |
- *) ac_try_echo=$ac_try;; |
|
24466 |
-esac |
|
24467 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
24468 |
- (eval "$ac_try") 2>&5 |
|
24468 |
+ (eval "$ac_compile") 2>conftest.er1 |
|
24469 | 24469 |
ac_status=$? |
24470 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
24471 |
+ rm -f conftest.er1 |
|
24472 |
+ cat conftest.err >&5 |
|
24470 | 24473 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24471 |
- (exit $ac_status); }; }; then |
|
24472 |
- ac_cv_have_accrights_in_msghdr="yes" |
|
24474 |
+ (exit $ac_status); } && { |
|
24475 |
+ test -z "$ac_c_werror_flag" || |
|
24476 |
+ test ! -s conftest.err |
|
24477 |
+ } && test -s conftest.$ac_objext; then |
|
24478 |
+ ac_cv_have_accrights_in_msghdr="yes" |
|
24473 | 24479 |
else |
24474 |
- echo "$as_me: program exited with status $ac_status" >&5 |
|
24475 |
-echo "$as_me: failed program was:" >&5 |
|
24480 |
+ echo "$as_me: failed program was:" >&5 |
|
24476 | 24481 |
sed 's/^/| /' conftest.$ac_ext >&5 |
24477 | 24482 |
|
24478 |
-( exit $ac_status ) |
|
24479 |
- ac_cv_have_accrights_in_msghdr="no" |
|
24480 |
- |
|
24483 |
+ ac_cv_have_accrights_in_msghdr="no" |
|
24481 | 24484 |
fi |
24482 |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
24483 |
-fi |
|
24484 |
- |
|
24485 | 24485 |
|
24486 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
24486 | 24487 |
|
24487 | 24488 |
fi |
24488 | 24489 |
{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 |
... | ... |
@@ -24501,14 +24543,7 @@ if test "${ac_cv_have_control_in_msghdr+set}" = set; then |
24501 | 24501 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
24502 | 24502 |
else |
24503 | 24503 |
|
24504 |
- if test "$cross_compiling" = yes; then |
|
24505 |
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
24506 |
-See \`config.log' for more details." >&5 |
|
24507 |
-echo "$as_me: error: cannot run test program while cross compiling |
|
24508 |
-See \`config.log' for more details." >&2;} |
|
24509 |
- { (exit 1); exit 1; }; } |
|
24510 |
-else |
|
24511 |
- cat >conftest.$ac_ext <<_ACEOF |
|
24504 |
+ cat >conftest.$ac_ext <<_ACEOF |
|
24512 | 24505 |
/* confdefs.h. */ |
24513 | 24506 |
_ACEOF |
24514 | 24507 |
cat confdefs.h >>conftest.$ac_ext |
... | ... |
@@ -24518,50 +24553,50 @@ cat >>conftest.$ac_ext <<_ACEOF |
24518 | 24518 |
#include <sys/types.h> |
24519 | 24519 |
#include <sys/socket.h> |
24520 | 24520 |
#include <sys/uio.h> |
24521 |
+ |
|
24522 |
+int |
|
24523 |
+main () |
|
24524 |
+{ |
|
24525 |
+ |
|
24521 | 24526 |
int main() { |
24522 | 24527 |
#ifdef msg_control |
24523 |
-exit(1); |
|
24528 |
+#error msg_control defined |
|
24524 | 24529 |
#endif |
24525 | 24530 |
struct msghdr m; |
24526 | 24531 |
m.msg_control = 0; |
24527 |
-exit(0); |
|
24532 |
+return 0; |
|
24528 | 24533 |
} |
24529 | 24534 |
|
24535 |
+ ; |
|
24536 |
+ return 0; |
|
24537 |
+} |
|
24530 | 24538 |
_ACEOF |
24531 |
-rm -f conftest$ac_exeext |
|
24532 |
-if { (ac_try="$ac_link" |
|
24539 |
+rm -f conftest.$ac_objext |
|
24540 |
+if { (ac_try="$ac_compile" |
|
24533 | 24541 |
case "(($ac_try" in |
24534 | 24542 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24535 | 24543 |
*) ac_try_echo=$ac_try;; |
24536 | 24544 |
esac |
24537 | 24545 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24538 |
- (eval "$ac_link") 2>&5 |
|
24539 |
- ac_status=$? |
|
24540 |
- echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
24541 |
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
24542 |
- { (case "(($ac_try" in |
|
24543 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
24544 |
- *) ac_try_echo=$ac_try;; |
|
24545 |
-esac |
|
24546 |
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
24547 |
- (eval "$ac_try") 2>&5 |
|
24546 |
+ (eval "$ac_compile") 2>conftest.er1 |
|
24548 | 24547 |
ac_status=$? |
24548 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
|
24549 |
+ rm -f conftest.er1 |
|
24550 |
+ cat conftest.err >&5 |
|
24549 | 24551 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24550 |
- (exit $ac_status); }; }; then |
|
24552 |
+ (exit $ac_status); } && { |
|
24553 |
+ test -z "$ac_c_werror_flag" || |
|
24554 |
+ test ! -s conftest.err |
|
24555 |
+ } && test -s conftest.$ac_objext; then |
|
24551 | 24556 |
ac_cv_have_control_in_msghdr="yes" |
24552 | 24557 |
else |
24553 |
- echo "$as_me: program exited with status $ac_status" >&5 |
|
24554 |
-echo "$as_me: failed program was:" >&5 |
|
24558 |
+ echo "$as_me: failed program was:" >&5 |
|
24555 | 24559 |
sed 's/^/| /' conftest.$ac_ext >&5 |
24556 | 24560 |
|
24557 |
-( exit $ac_status ) |
|
24558 |
- ac_cv_have_control_in_msghdr="no" |
|
24559 |
- |
|
24561 |
+ ac_cv_have_control_in_msghdr="no" |
|
24560 | 24562 |
fi |
24561 |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
24562 |
-fi |
|
24563 |
- |
|
24564 | 24563 |
|
24564 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
24565 | 24565 |
|
24566 | 24566 |
fi |
24567 | 24567 |
{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 |
... | ... |
@@ -26342,8 +26377,8 @@ cat >>confdefs.h <<_ACEOF |
26342 | 26342 |
_ACEOF |
26343 | 26343 |
|
26344 | 26344 |
|
26345 |
-{ echo "$as_me:$LINENO: checking if signed right shift is sign extended" >&5 |
|
26346 |
-echo $ECHO_N "checking if signed right shift is sign extended... $ECHO_C" >&6; } |
|
26345 |
+{ echo "$as_me:$LINENO: checking whether signed right shift is sign extended" >&5 |
|
26346 |
+echo $ECHO_N "checking whether signed right shift is sign extended... $ECHO_C" >&6; } |
|
26347 | 26347 |
if test "$cross_compiling" = yes; then |
26348 | 26348 |
have_signed_rightshift_extended=no |
26349 | 26349 |
else |
... | ... |
@@ -27954,3 +27989,21 @@ if test "$no_create" != yes; then |
27954 | 27954 |
$ac_cs_success || { (exit 1); exit 1; } |
27955 | 27955 |
fi |
27956 | 27956 |
|
27957 |
+ |
|
27958 |
+if test "x$cross_compiling" != "xno" || test "x$gcc_check" = "xno" || test "x$zlib_check" = "xno" ; then |
|
27959 |
+{ echo "$as_me:$LINENO: WARNING: |
|
27960 |
+****** WARNING: |
|
27961 |
+****** You are either cross compiling to a different host or |
|
27962 |
+****** you have manually disabled important configure checks. |
|
27963 |
+****** Please be aware that this build may be badly broken. |
|
27964 |
+****** DO NOT REPORT BUGS BASED ON THIS BUILD !!! |
|
27965 |
+" >&5 |
|
27966 |
+echo "$as_me: WARNING: |
|
27967 |
+****** WARNING: |
|
27968 |
+****** You are either cross compiling to a different host or |
|
27969 |
+****** you have manually disabled important configure checks. |
|
27970 |
+****** Please be aware that this build may be badly broken. |
|
27971 |
+****** DO NOT REPORT BUGS BASED ON THIS BUILD !!! |
|
27972 |
+" >&2;} |
|
27973 |
+fi |
|
27974 |
+ |
... | ... |
@@ -89,7 +89,7 @@ int main() |
89 | 89 |
abort (); |
90 | 90 |
} |
91 | 91 |
], [AC_MSG_RESULT([ok, bug not present])], |
92 |
-[AC_MSG_ERROR([your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603])]) |
|
92 |
+[AC_MSG_ERROR([your compiler has gcc PR27603 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) |
|
93 | 93 |
|
94 | 94 |
dnl Check if compiler produces invalid code on gcc PR28045 (affects upx.c) |
95 | 95 |
dnl testcase from gcc testsuite |
... | ... |
@@ -117,7 +117,7 @@ int main () |
117 | 117 |
return 0; |
118 | 118 |
} |
119 | 119 |
], [AC_MSG_RESULT([ok, bug not present])], |
120 |
-[AC_MSG_ERROR([your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045])]) |
|
120 |
+[AC_MSG_ERROR([your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) |
|
121 | 121 |
|
122 | 122 |
dnl Check if compiler produces invalid code on gcc PR26763-2 (affects upx.c) |
123 | 123 |
dnl testcase from gcc testsuite |
... | ... |
@@ -142,7 +142,7 @@ int main(void) |
142 | 142 |
return 0; |
143 | 143 |
} |
144 | 144 |
], [AC_MSG_RESULT([ok, bug not present])], |
145 |
-[AC_MSG_ERROR([your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763])]) |
|
145 |
+[AC_MSG_ERROR([your compiler has gcc PR26763-2 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763])],[AC_MSG_RESULT([cross-compiling, assumed ok])]) |
|
146 | 146 |
|
147 | 147 |
dnl Check if compiler produces invalid code on own testcase based on upx.c |
148 | 148 |
AC_MSG_CHECKING([for valid code generation of CLI_ISCONTAINED]) |
... | ... |
@@ -186,7 +186,7 @@ int main() |
186 | 186 |
return 0; |
187 | 187 |
} |
188 | 188 |
], [AC_MSG_RESULT([ok, bug not present])], |
189 |
-[AC_MSG_ERROR([your compiler has a bug that causes clamav 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670])]) |
|
189 |
+[AC_MSG_ERROR([your compiler has a bug that causes clamav 670, use a different compiler, see http://bugs.clamav.net/bugzilla/show_bug.cgi?id=670])], [AC_MSG_RESULT([cross-compiling, assumed ok])]) |
|
190 | 190 |
|
191 | 191 |
AC_CHECK_HEADERS(stdint.h unistd.h sys/int_types.h dlfcn.h inttypes.h sys/inttypes.h memory.h ndir.h stdlib.h strings.h string.h sys/mman.h sys/param.h sys/stat.h sys/types.h malloc.h poll.h limits.h sys/filio.h sys/uio.h termios.h iconv.h stdbool.h pwd.h grp.h) |
192 | 192 |
AC_CHECK_HEADER(syslog.h,AC_DEFINE(USE_SYSLOG,1,[use syslog]),) |
... | ... |
@@ -227,7 +227,10 @@ int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');} |
227 | 227 |
AC_MSG_RESULT(no) |
228 | 228 |
AC_DEFINE(BROKEN_SNPRINTF,1,[Define if your snprintf is busted]) |
229 | 229 |
AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor]) |
230 |
- ] |
|
230 |
+ ], |
|
231 |
+ [ |
|
232 |
+ AC_MSG_RESULT([cross-compiling, assumed ok]) |
|
233 |
+ ] |
|
231 | 234 |
) |
232 | 235 |
fi |
233 | 236 |
|
... | ... |
@@ -370,7 +373,25 @@ AC_ARG_ENABLE(clamuko, |
370 | 370 |
[ --disable-clamuko disable clamuko support (Linux, DragonFly and FreeBSD only)], |
371 | 371 |
want_clamuko=$enableval, want_clamuko="yes") |
372 | 372 |
|
373 |
-AC_FUNC_SETPGRP |
|
373 |
+dnl AC_FUNC_SETPGRP does not work when cross compiling |
|
374 |
+dnl Instead, assume we will have a prototype for setpgrp if cross compiling. |
|
375 |
+dnl testcase from gdb/configure.ac |
|
376 |
+if test "$cross_compiling" = no; then |
|
377 |
+ AC_FUNC_SETPGRP |
|
378 |
+else |
|
379 |
+ AC_CACHE_CHECK([whether setpgrp takes no argument], ac_cv_func_setpgrp_void, |
|
380 |
+ [AC_TRY_COMPILE([ |
|
381 |
+#include <unistd.h> |
|
382 |
+], [ |
|
383 |
+ if (setpgrp(1,1) == -1) |
|
384 |
+ exit (0); |
|
385 |
+ else |
|
386 |
+ exit (1); |
|
387 |
+], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes)]) |
|
388 |
+if test $ac_cv_func_setpgrp_void = yes; then |
|
389 |
+ AC_DEFINE(SETPGRP_VOID, 1) |
|
390 |
+fi |
|
391 |
+fi |
|
374 | 392 |
|
375 | 393 |
AC_ARG_ENABLE(milter, |
376 | 394 |
[ --enable-milter build clamav-milter], |
... | ... |
@@ -511,18 +532,30 @@ AC_SUBST(CFGDIR) |
511 | 511 |
AC_DEFINE_UNQUOTED(CONFDIR,"$cfg_dir",[where to look for the config file]) |
512 | 512 |
|
513 | 513 |
dnl check for in_port_t definition |
514 |
-AC_TRY_RUN([ |
|
514 |
+AC_MSG_CHECKING([whether in_port_t is defined]) |
|
515 |
+AC_TRY_COMPILE([ |
|
515 | 516 |
#include <sys/types.h> |
516 | 517 |
#include <netinet/in.h> |
517 |
-int main(int argc, char **argv) { in_port_t pt; pt = 0; return pt; } |
|
518 |
-], AC_DEFINE(HAVE_IN_PORT_T,1,[in_port_t is defined]), AC_MSG_RESULT(in_port_t is not defined)) |
|
518 |
+], |
|
519 |
+[int main(int argc, char **argv) { in_port_t pt; pt = 0; return pt; }], |
|
520 |
+[ |
|
521 |
+ AC_MSG_RESULT(yes) |
|
522 |
+ AC_DEFINE(HAVE_IN_PORT_T,1,[in_port_t is defined]) |
|
523 |
+], |
|
524 |
+AC_MSG_RESULT(no)) |
|
519 | 525 |
|
520 | 526 |
dnl check for in_addr_t definition |
521 |
-AC_TRY_RUN([ |
|
527 |
+AC_MSG_CHECKING([for in_addr_t definition]) |
|
528 |
+AC_TRY_COMPILE([ |
|
522 | 529 |
#include <sys/types.h> |
523 | 530 |
#include <netinet/in.h> |
524 |
-int main(int argc, char **argv) { in_addr_t pt; pt = 0; return pt; } |
|
525 |
-], AC_DEFINE(HAVE_IN_ADDR_T,1,[in_addr_t is defined]), AC_MSG_RESULT(in_addr_t is not defined)) |
|
531 |
+], |
|
532 |
+[int main(int argc, char **argv) { in_addr_t pt; pt = 0; return pt; }], |
|
533 |
+[ |
|
534 |
+ AC_MSG_RESULT(yes) |
|
535 |
+ AC_DEFINE(HAVE_IN_ADDR_T,1,[in_addr_t is defined]) |
|
536 |
+], |
|
537 |
+AC_MSG_RESULT(no)) |
|
526 | 538 |
|
527 | 539 |
case "$target_os" in |
528 | 540 |
linux*) |
... | ... |
@@ -814,23 +847,23 @@ dnl Submitted by Richard Lyons <frob-clamav@webcentral.com.au> |
814 | 814 |
AC_CHECK_FUNCS(recvmsg sendmsg) |
815 | 815 |
AC_CACHE_CHECK([for msg_accrights field in struct msghdr], |
816 | 816 |
ac_cv_have_accrights_in_msghdr, [ |
817 |
- AC_TRY_RUN( |
|
818 |
- [ |
|
817 |
+ AC_TRY_COMPILE( |
|
818 |
+[ |
|
819 | 819 |
#include <sys/types.h> |
820 | 820 |
#include <sys/socket.h> |
821 | 821 |
#include <sys/uio.h> |
822 |
+], |
|
823 |
+[ |
|
822 | 824 |
int main() { |
823 | 825 |
#ifdef msg_accrights |
824 |
-exit(1); |
|
826 |
+#error msg_accrights defined |
|
825 | 827 |
#endif |
826 | 828 |
struct msghdr m; |
827 | 829 |
m.msg_accrights = 0; |
828 |
-exit(0); |
|
830 |
+return 0; |
|
829 | 831 |
} |
830 |
- ], |
|
831 |
- [ ac_cv_have_accrights_in_msghdr="yes" ], |
|
832 |
- [ ac_cv_have_accrights_in_msghdr="no" ] |
|
833 |
- ) |
|
832 |
+] |
|
833 |
+, [ac_cv_have_accrights_in_msghdr="yes"],[ac_cv_have_accrights_in_msghdr="no"]) |
|
834 | 834 |
]) |
835 | 835 |
if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then |
836 | 836 |
AC_DEFINE(HAVE_ACCRIGHTS_IN_MSGHDR,1,[access rights in msghdr]) |
... | ... |
@@ -838,23 +871,22 @@ fi |
838 | 838 |
|
839 | 839 |
AC_CACHE_CHECK([for msg_control field in struct msghdr], |
840 | 840 |
ac_cv_have_control_in_msghdr, [ |
841 |
- AC_TRY_RUN( |
|
842 |
- [ |
|
841 |
+ AC_TRY_COMPILE( |
|
842 |
+[ |
|
843 | 843 |
#include <sys/types.h> |
844 | 844 |
#include <sys/socket.h> |
845 | 845 |
#include <sys/uio.h> |
846 |
+], |
|
847 |
+[ |
|
846 | 848 |
int main() { |
847 | 849 |
#ifdef msg_control |
848 |
-exit(1); |
|
850 |
+#error msg_control defined |
|
849 | 851 |
#endif |
850 | 852 |
struct msghdr m; |
851 | 853 |
m.msg_control = 0; |
852 |
-exit(0); |
|
854 |
+return 0; |
|
853 | 855 |
} |
854 |
- ], |
|
855 |
- [ ac_cv_have_control_in_msghdr="yes" ], |
|
856 |
- [ ac_cv_have_control_in_msghdr="no" ] |
|
857 |
- ) |
|
856 |
+], [ ac_cv_have_control_in_msghdr="yes" ], [ ac_cv_have_control_in_msghdr="no" ]) |
|
858 | 857 |
]) |
859 | 858 |
if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then |
860 | 859 |
AC_DEFINE(HAVE_CONTROL_IN_MSGHDR,1,[ancillary data style fd pass]) |
... | ... |
@@ -1248,7 +1280,7 @@ AC_MSG_RESULT($DEFAULT_FD_SETSIZE) |
1248 | 1248 |
AC_DEFINE_UNQUOTED(DEFAULT_FD_SETSIZE, $DEFAULT_FD_SETSIZE, "default FD_SETSIZE value") |
1249 | 1249 |
|
1250 | 1250 |
dnl Check signed right shift implementation |
1251 |
-AC_MSG_CHECKING(if signed right shift is sign extended) |
|
1251 |
+AC_MSG_CHECKING(whether signed right shift is sign extended) |
|
1252 | 1252 |
AC_TRY_RUN([int main(void){int a=-1;int b=a>>1;return(a!=b);}], |
1253 | 1253 |
[have_signed_rightshift_extended=yes], |
1254 | 1254 |
[have_signed_rightshift_extended=no], |
... | ... |
@@ -1288,3 +1320,14 @@ docs/man/freshclam.1 |
1288 | 1288 |
docs/man/freshclam.conf.5 |
1289 | 1289 |
docs/man/sigtool.1 |
1290 | 1290 |
]) |
1291 |
+ |
|
1292 |
+if test "x$cross_compiling" != "xno" || test "x$gcc_check" = "xno" || test "x$zlib_check" = "xno" ; then |
|
1293 |
+AC_MSG_WARN([ |
|
1294 |
+****** WARNING: |
|
1295 |
+****** You are either cross compiling to a different host or |
|
1296 |
+****** you have manually disabled important configure checks. |
|
1297 |
+****** Please be aware that this build may be badly broken. |
|
1298 |
+****** DO NOT REPORT BUGS BASED ON THIS BUILD !!! |
|
1299 |
+]) |
|
1300 |
+fi |
|
1301 |
+ |