0 | 0 |
#! /bin/sh
|
1 | 1 |
# Guess values for system-dependent variables and create Makefiles.
|
2 | |
# Generated by GNU Autoconf 2.63 for unbound 1.4.3.
|
|
2 |
# Generated by GNU Autoconf 2.63 for unbound 1.4.4.
|
3 | 3 |
#
|
4 | 4 |
# Report bugs to <unbound-bugs@nlnetlabs.nl>.
|
5 | 5 |
#
|
|
744 | 744 |
# Identity of this package.
|
745 | 745 |
PACKAGE_NAME='unbound'
|
746 | 746 |
PACKAGE_TARNAME='unbound'
|
747 | |
PACKAGE_VERSION='1.4.3'
|
748 | |
PACKAGE_STRING='unbound 1.4.3'
|
|
747 |
PACKAGE_VERSION='1.4.4'
|
|
748 |
PACKAGE_STRING='unbound 1.4.4'
|
749 | 749 |
PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
|
750 | 750 |
|
751 | 751 |
# Factoring default headers for most tests.
|
|
792 | 792 |
UB_ON_WINDOWS
|
793 | 793 |
CHECKLOCK_SRC
|
794 | 794 |
staticexe
|
795 | |
RUNTIME_PATH
|
796 | 795 |
HAVE_SSL
|
797 | 796 |
WITH_PYUNBOUND
|
798 | 797 |
WITH_PYTHONMODULE
|
|
810 | 809 |
PTHREAD_LIBS
|
811 | 810 |
PTHREAD_CC
|
812 | 811 |
acx_pthread_config
|
|
812 |
RUNTIME_PATH
|
813 | 813 |
LIBOBJS
|
814 | 814 |
OTOOL64
|
815 | 815 |
OTOOL
|
|
920 | 920 |
with_gnu_ld
|
921 | 921 |
enable_libtool_lock
|
922 | 922 |
enable_rpath
|
|
923 |
enable_largefile
|
923 | 924 |
with_pthreads
|
924 | 925 |
with_solaris_threads
|
925 | 926 |
with_pyunbound
|
|
933 | 934 |
enable_alloc_checks
|
934 | 935 |
enable_alloc_lite
|
935 | 936 |
enable_alloc_nonregional
|
936 | |
enable_largefile
|
937 | 937 |
with_ldns
|
938 | 938 |
with_ldns_builtin
|
939 | 939 |
'
|
|
1501 | 1501 |
# Omit some internal or obsolete options to make the list less imposing.
|
1502 | 1502 |
# This message is too long to be a string in the A/UX 3.1 sh.
|
1503 | 1503 |
cat <<_ACEOF
|
1504 | |
\`configure' configures unbound 1.4.3 to adapt to many kinds of systems.
|
|
1504 |
\`configure' configures unbound 1.4.4 to adapt to many kinds of systems.
|
1505 | 1505 |
|
1506 | 1506 |
Usage: $0 [OPTION]... [VAR=VALUE]...
|
1507 | 1507 |
|
|
1566 | 1566 |
|
1567 | 1567 |
if test -n "$ac_init_help"; then
|
1568 | 1568 |
case $ac_init_help in
|
1569 | |
short | recursive ) echo "Configuration of unbound 1.4.3:";;
|
|
1569 |
short | recursive ) echo "Configuration of unbound 1.4.4:";;
|
1570 | 1570 |
esac
|
1571 | 1571 |
cat <<\_ACEOF
|
1572 | 1572 |
|
|
1582 | 1582 |
optimize for fast installation [default=yes]
|
1583 | 1583 |
--disable-libtool-lock avoid locking (might break parallel builds)
|
1584 | 1584 |
--disable-rpath disable hardcoded rpath (default=enabled)
|
|
1585 |
--disable-largefile omit support for large files
|
1585 | 1586 |
--disable-sha2 Disable SHA256 and SHA512 RRSIG support
|
1586 | 1587 |
--enable-gost Enable GOST support, experimental
|
1587 | 1588 |
--enable-static-exe enable to compile executables statically against
|
|
1596 | 1597 |
enable nonregional allocs, slow but exposes regional
|
1597 | 1598 |
allocations to other memory purifiers, for debug
|
1598 | 1599 |
purposes
|
1599 | |
--disable-largefile omit support for large files
|
1600 | 1600 |
|
1601 | 1601 |
Optional Packages:
|
1602 | 1602 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
1718 | 1718 |
test -n "$ac_init_help" && exit $ac_status
|
1719 | 1719 |
if $ac_init_version; then
|
1720 | 1720 |
cat <<\_ACEOF
|
1721 | |
unbound configure 1.4.3
|
|
1721 |
unbound configure 1.4.4
|
1722 | 1722 |
generated by GNU Autoconf 2.63
|
1723 | 1723 |
|
1724 | 1724 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
|
1732 | 1732 |
This file contains any messages produced by compilers while
|
1733 | 1733 |
running configure, to aid debugging if configure makes a mistake.
|
1734 | 1734 |
|
1735 | |
It was created by unbound $as_me 1.4.3, which was
|
|
1735 |
It was created by unbound $as_me 1.4.4, which was
|
1736 | 1736 |
generated by GNU Autoconf 2.63. Invocation command line was
|
1737 | 1737 |
|
1738 | 1738 |
$ $0 $@
|
|
2102 | 2102 |
|
2103 | 2103 |
|
2104 | 2104 |
LIBUNBOUND_CURRENT=2
|
2105 | |
LIBUNBOUND_REVISION=3
|
|
2105 |
LIBUNBOUND_REVISION=4
|
2106 | 2106 |
LIBUNBOUND_AGE=0
|
2107 | 2107 |
# 1.0.0 had 0:12:0
|
2108 | 2108 |
# 1.0.1 had 0:13:0
|
|
2121 | 2121 |
# 1.4.1 had 2:1:0
|
2122 | 2122 |
# 1.4.2 had 2:2:0
|
2123 | 2123 |
# 1.4.3 had 2:3:0
|
|
2124 |
# 1.4.4 had 2:4:0
|
2124 | 2125 |
|
2125 | 2126 |
# Current -- the number of the binary API that we're implementing
|
2126 | 2127 |
# Revision -- which iteration of the implementation of the binary
|
|
7297 | 7298 |
else
|
7298 | 7299 |
lt_cv_nm_interface="BSD nm"
|
7299 | 7300 |
echo "int some_variable = 0;" > conftest.$ac_ext
|
7300 | |
(eval echo "\"\$as_me:7301: $ac_compile\"" >&5)
|
|
7301 |
(eval echo "\"\$as_me:7302: $ac_compile\"" >&5)
|
7301 | 7302 |
(eval "$ac_compile" 2>conftest.err)
|
7302 | 7303 |
cat conftest.err >&5
|
7303 | |
(eval echo "\"\$as_me:7304: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
|
7304 |
(eval echo "\"\$as_me:7305: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
7304 | 7305 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
7305 | 7306 |
cat conftest.err >&5
|
7306 | |
(eval echo "\"\$as_me:7307: output\"" >&5)
|
|
7307 |
(eval echo "\"\$as_me:7308: output\"" >&5)
|
7307 | 7308 |
cat conftest.out >&5
|
7308 | 7309 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
7309 | 7310 |
lt_cv_nm_interface="MS dumpbin"
|
|
8508 | 8509 |
;;
|
8509 | 8510 |
*-*-irix6*)
|
8510 | 8511 |
# Find out which ABI we are using.
|
8511 | |
echo '#line 8512 "configure"' > conftest.$ac_ext
|
|
8512 |
echo '#line 8513 "configure"' > conftest.$ac_ext
|
8512 | 8513 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
8513 | 8514 |
(eval $ac_compile) 2>&5
|
8514 | 8515 |
ac_status=$?
|
|
9875 | 9876 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
9876 | 9877 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
9877 | 9878 |
-e 's:$: $lt_compiler_flag:'`
|
9878 | |
(eval echo "\"\$as_me:9879: $lt_compile\"" >&5)
|
|
9879 |
(eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
|
9879 | 9880 |
(eval "$lt_compile" 2>conftest.err)
|
9880 | 9881 |
ac_status=$?
|
9881 | 9882 |
cat conftest.err >&5
|
9882 | |
echo "$as_me:9883: \$? = $ac_status" >&5
|
|
9883 |
echo "$as_me:9884: \$? = $ac_status" >&5
|
9883 | 9884 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
9884 | 9885 |
# The compiler can only warn and ignore the option if not recognized
|
9885 | 9886 |
# So say no if there are warnings other than the usual output.
|
|
10214 | 10215 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
10215 | 10216 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
10216 | 10217 |
-e 's:$: $lt_compiler_flag:'`
|
10217 | |
(eval echo "\"\$as_me:10218: $lt_compile\"" >&5)
|
|
10218 |
(eval echo "\"\$as_me:10219: $lt_compile\"" >&5)
|
10218 | 10219 |
(eval "$lt_compile" 2>conftest.err)
|
10219 | 10220 |
ac_status=$?
|
10220 | 10221 |
cat conftest.err >&5
|
10221 | |
echo "$as_me:10222: \$? = $ac_status" >&5
|
|
10222 |
echo "$as_me:10223: \$? = $ac_status" >&5
|
10222 | 10223 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
10223 | 10224 |
# The compiler can only warn and ignore the option if not recognized
|
10224 | 10225 |
# So say no if there are warnings other than the usual output.
|
|
10319 | 10320 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
10320 | 10321 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
10321 | 10322 |
-e 's:$: $lt_compiler_flag:'`
|
10322 | |
(eval echo "\"\$as_me:10323: $lt_compile\"" >&5)
|
|
10323 |
(eval echo "\"\$as_me:10324: $lt_compile\"" >&5)
|
10323 | 10324 |
(eval "$lt_compile" 2>out/conftest.err)
|
10324 | 10325 |
ac_status=$?
|
10325 | 10326 |
cat out/conftest.err >&5
|
10326 | |
echo "$as_me:10327: \$? = $ac_status" >&5
|
|
10327 |
echo "$as_me:10328: \$? = $ac_status" >&5
|
10327 | 10328 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
10328 | 10329 |
then
|
10329 | 10330 |
# The compiler can only warn and ignore the option if not recognized
|
|
10374 | 10375 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
10375 | 10376 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
10376 | 10377 |
-e 's:$: $lt_compiler_flag:'`
|
10377 | |
(eval echo "\"\$as_me:10378: $lt_compile\"" >&5)
|
|
10378 |
(eval echo "\"\$as_me:10379: $lt_compile\"" >&5)
|
10378 | 10379 |
(eval "$lt_compile" 2>out/conftest.err)
|
10379 | 10380 |
ac_status=$?
|
10380 | 10381 |
cat out/conftest.err >&5
|
10381 | |
echo "$as_me:10382: \$? = $ac_status" >&5
|
|
10382 |
echo "$as_me:10383: \$? = $ac_status" >&5
|
10382 | 10383 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
10383 | 10384 |
then
|
10384 | 10385 |
# The compiler can only warn and ignore the option if not recognized
|
|
13177 | 13178 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
13178 | 13179 |
lt_status=$lt_dlunknown
|
13179 | 13180 |
cat > conftest.$ac_ext <<_LT_EOF
|
13180 | |
#line 13181 "configure"
|
|
13181 |
#line 13182 "configure"
|
13181 | 13182 |
#include "confdefs.h"
|
13182 | 13183 |
|
13183 | 13184 |
#if HAVE_DLFCN_H
|
|
13273 | 13274 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
13274 | 13275 |
lt_status=$lt_dlunknown
|
13275 | 13276 |
cat > conftest.$ac_ext <<_LT_EOF
|
13276 | |
#line 13277 "configure"
|
|
13277 |
#line 13278 "configure"
|
13277 | 13278 |
#include "confdefs.h"
|
13278 | 13279 |
|
13279 | 13280 |
#if HAVE_DLFCN_H
|
|
15572 | 15573 |
fi
|
15573 | 15574 |
|
15574 | 15575 |
|
|
15576 |
|
|
15577 |
# check to see if libraries are needed for these functions.
|
|
15578 |
{ $as_echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
|
|
15579 |
$as_echo_n "checking for library containing inet_pton... " >&6; }
|
|
15580 |
if test "${ac_cv_search_inet_pton+set}" = set; then
|
|
15581 |
$as_echo_n "(cached) " >&6
|
|
15582 |
else
|
|
15583 |
ac_func_search_save_LIBS=$LIBS
|
|
15584 |
cat >conftest.$ac_ext <<_ACEOF
|
|
15585 |
/* confdefs.h. */
|
|
15586 |
_ACEOF
|
|
15587 |
cat confdefs.h >>conftest.$ac_ext
|
|
15588 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
15589 |
/* end confdefs.h. */
|
|
15590 |
|
|
15591 |
/* Override any GCC internal prototype to avoid an error.
|
|
15592 |
Use char because int might match the return type of a GCC
|
|
15593 |
builtin and then its argument prototype would still apply. */
|
|
15594 |
#ifdef __cplusplus
|
|
15595 |
extern "C"
|
|
15596 |
#endif
|
|
15597 |
char inet_pton ();
|
|
15598 |
int
|
|
15599 |
main ()
|
|
15600 |
{
|
|
15601 |
return inet_pton ();
|
|
15602 |
;
|
|
15603 |
return 0;
|
|
15604 |
}
|
|
15605 |
_ACEOF
|
|
15606 |
for ac_lib in '' nsl; do
|
|
15607 |
if test -z "$ac_lib"; then
|
|
15608 |
ac_res="none required"
|
|
15609 |
else
|
|
15610 |
ac_res=-l$ac_lib
|
|
15611 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
15612 |
fi
|
|
15613 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
15614 |
if { (ac_try="$ac_link"
|
|
15615 |
case "(($ac_try" in
|
|
15616 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
15617 |
*) ac_try_echo=$ac_try;;
|
|
15618 |
esac
|
|
15619 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
15620 |
$as_echo "$ac_try_echo") >&5
|
|
15621 |
(eval "$ac_link") 2>conftest.er1
|
|
15622 |
ac_status=$?
|
|
15623 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
15624 |
rm -f conftest.er1
|
|
15625 |
cat conftest.err >&5
|
|
15626 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
15627 |
(exit $ac_status); } && {
|
|
15628 |
test -z "$ac_c_werror_flag" ||
|
|
15629 |
test ! -s conftest.err
|
|
15630 |
} && test -s conftest$ac_exeext && {
|
|
15631 |
test "$cross_compiling" = yes ||
|
|
15632 |
$as_test_x conftest$ac_exeext
|
|
15633 |
}; then
|
|
15634 |
ac_cv_search_inet_pton=$ac_res
|
|
15635 |
else
|
|
15636 |
$as_echo "$as_me: failed program was:" >&5
|
|
15637 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
15638 |
|
|
15639 |
|
|
15640 |
fi
|
|
15641 |
|
|
15642 |
rm -rf conftest.dSYM
|
|
15643 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
15644 |
conftest$ac_exeext
|
|
15645 |
if test "${ac_cv_search_inet_pton+set}" = set; then
|
|
15646 |
break
|
|
15647 |
fi
|
|
15648 |
done
|
|
15649 |
if test "${ac_cv_search_inet_pton+set}" = set; then
|
|
15650 |
:
|
|
15651 |
else
|
|
15652 |
ac_cv_search_inet_pton=no
|
|
15653 |
fi
|
|
15654 |
rm conftest.$ac_ext
|
|
15655 |
LIBS=$ac_func_search_save_LIBS
|
|
15656 |
fi
|
|
15657 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
|
|
15658 |
$as_echo "$ac_cv_search_inet_pton" >&6; }
|
|
15659 |
ac_res=$ac_cv_search_inet_pton
|
|
15660 |
if test "$ac_res" != no; then
|
|
15661 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
15662 |
|
|
15663 |
fi
|
|
15664 |
|
|
15665 |
{ $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
|
|
15666 |
$as_echo_n "checking for library containing socket... " >&6; }
|
|
15667 |
if test "${ac_cv_search_socket+set}" = set; then
|
|
15668 |
$as_echo_n "(cached) " >&6
|
|
15669 |
else
|
|
15670 |
ac_func_search_save_LIBS=$LIBS
|
|
15671 |
cat >conftest.$ac_ext <<_ACEOF
|
|
15672 |
/* confdefs.h. */
|
|
15673 |
_ACEOF
|
|
15674 |
cat confdefs.h >>conftest.$ac_ext
|
|
15675 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
15676 |
/* end confdefs.h. */
|
|
15677 |
|
|
15678 |
/* Override any GCC internal prototype to avoid an error.
|
|
15679 |
Use char because int might match the return type of a GCC
|
|
15680 |
builtin and then its argument prototype would still apply. */
|
|
15681 |
#ifdef __cplusplus
|
|
15682 |
extern "C"
|
|
15683 |
#endif
|
|
15684 |
char socket ();
|
|
15685 |
int
|
|
15686 |
main ()
|
|
15687 |
{
|
|
15688 |
return socket ();
|
|
15689 |
;
|
|
15690 |
return 0;
|
|
15691 |
}
|
|
15692 |
_ACEOF
|
|
15693 |
for ac_lib in '' socket; do
|
|
15694 |
if test -z "$ac_lib"; then
|
|
15695 |
ac_res="none required"
|
|
15696 |
else
|
|
15697 |
ac_res=-l$ac_lib
|
|
15698 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
15699 |
fi
|
|
15700 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
15701 |
if { (ac_try="$ac_link"
|
|
15702 |
case "(($ac_try" in
|
|
15703 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
15704 |
*) ac_try_echo=$ac_try;;
|
|
15705 |
esac
|
|
15706 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
15707 |
$as_echo "$ac_try_echo") >&5
|
|
15708 |
(eval "$ac_link") 2>conftest.er1
|
|
15709 |
ac_status=$?
|
|
15710 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
15711 |
rm -f conftest.er1
|
|
15712 |
cat conftest.err >&5
|
|
15713 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
15714 |
(exit $ac_status); } && {
|
|
15715 |
test -z "$ac_c_werror_flag" ||
|
|
15716 |
test ! -s conftest.err
|
|
15717 |
} && test -s conftest$ac_exeext && {
|
|
15718 |
test "$cross_compiling" = yes ||
|
|
15719 |
$as_test_x conftest$ac_exeext
|
|
15720 |
}; then
|
|
15721 |
ac_cv_search_socket=$ac_res
|
|
15722 |
else
|
|
15723 |
$as_echo "$as_me: failed program was:" >&5
|
|
15724 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
15725 |
|
|
15726 |
|
|
15727 |
fi
|
|
15728 |
|
|
15729 |
rm -rf conftest.dSYM
|
|
15730 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
15731 |
conftest$ac_exeext
|
|
15732 |
if test "${ac_cv_search_socket+set}" = set; then
|
|
15733 |
break
|
|
15734 |
fi
|
|
15735 |
done
|
|
15736 |
if test "${ac_cv_search_socket+set}" = set; then
|
|
15737 |
:
|
|
15738 |
else
|
|
15739 |
ac_cv_search_socket=no
|
|
15740 |
fi
|
|
15741 |
rm conftest.$ac_ext
|
|
15742 |
LIBS=$ac_func_search_save_LIBS
|
|
15743 |
fi
|
|
15744 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
|
|
15745 |
$as_echo "$ac_cv_search_socket" >&6; }
|
|
15746 |
ac_res=$ac_cv_search_socket
|
|
15747 |
if test "$ac_res" != no; then
|
|
15748 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
15749 |
|
|
15750 |
fi
|
|
15751 |
|
|
15752 |
|
|
15753 |
# check some functions of the OS before linking libs (while still runnable).
|
|
15754 |
|
|
15755 |
for ac_header in unistd.h
|
|
15756 |
do
|
|
15757 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
15758 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
15759 |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
15760 |
$as_echo_n "checking for $ac_header... " >&6; }
|
|
15761 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
15762 |
$as_echo_n "(cached) " >&6
|
|
15763 |
fi
|
|
15764 |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
|
15765 |
$as_echo "$as_val"'`
|
|
15766 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
15767 |
$as_echo "$ac_res" >&6; }
|
|
15768 |
else
|
|
15769 |
# Is the header compilable?
|
|
15770 |
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
15771 |
$as_echo_n "checking $ac_header usability... " >&6; }
|
|
15772 |
cat >conftest.$ac_ext <<_ACEOF
|
|
15773 |
/* confdefs.h. */
|
|
15774 |
_ACEOF
|
|
15775 |
cat confdefs.h >>conftest.$ac_ext
|
|
15776 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
15777 |
/* end confdefs.h. */
|
|
15778 |
$ac_includes_default
|
|
15779 |
#include <$ac_header>
|
|
15780 |
_ACEOF
|
|
15781 |
rm -f conftest.$ac_objext
|
|
15782 |
if { (ac_try="$ac_compile"
|
|
15783 |
case "(($ac_try" in
|
|
15784 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
15785 |
*) ac_try_echo=$ac_try;;
|
|
15786 |
esac
|
|
15787 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
15788 |
$as_echo "$ac_try_echo") >&5
|
|
15789 |
(eval "$ac_compile") 2>conftest.er1
|
|
15790 |
ac_status=$?
|
|
15791 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
15792 |
rm -f conftest.er1
|
|
15793 |
cat conftest.err >&5
|
|
15794 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
15795 |
(exit $ac_status); } && {
|
|
15796 |
test -z "$ac_c_werror_flag" ||
|
|
15797 |
test ! -s conftest.err
|
|
15798 |
} && test -s conftest.$ac_objext; then
|
|
15799 |
ac_header_compiler=yes
|
|
15800 |
else
|
|
15801 |
$as_echo "$as_me: failed program was:" >&5
|
|
15802 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
15803 |
|
|
15804 |
ac_header_compiler=no
|
|
15805 |
fi
|
|
15806 |
|
|
15807 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
15808 |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
15809 |
$as_echo "$ac_header_compiler" >&6; }
|
|
15810 |
|
|
15811 |
# Is the header present?
|
|
15812 |
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
15813 |
$as_echo_n "checking $ac_header presence... " >&6; }
|
|
15814 |
cat >conftest.$ac_ext <<_ACEOF
|
|
15815 |
/* confdefs.h. */
|
|
15816 |
_ACEOF
|
|
15817 |
cat confdefs.h >>conftest.$ac_ext
|
|
15818 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
15819 |
/* end confdefs.h. */
|
|
15820 |
#include <$ac_header>
|
|
15821 |
_ACEOF
|
|
15822 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
15823 |
case "(($ac_try" in
|
|
15824 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
15825 |
*) ac_try_echo=$ac_try;;
|
|
15826 |
esac
|
|
15827 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
15828 |
$as_echo "$ac_try_echo") >&5
|
|
15829 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
15830 |
ac_status=$?
|
|
15831 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
15832 |
rm -f conftest.er1
|
|
15833 |
cat conftest.err >&5
|
|
15834 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
15835 |
(exit $ac_status); } >/dev/null && {
|
|
15836 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
15837 |
test ! -s conftest.err
|
|
15838 |
}; then
|
|
15839 |
ac_header_preproc=yes
|
|
15840 |
else
|
|
15841 |
$as_echo "$as_me: failed program was:" >&5
|
|
15842 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
15843 |
|
|
15844 |
ac_header_preproc=no
|
|
15845 |
fi
|
|
15846 |
|
|
15847 |
rm -f conftest.err conftest.$ac_ext
|
|
15848 |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
15849 |
$as_echo "$ac_header_preproc" >&6; }
|
|
15850 |
|
|
15851 |
# So? What about this header?
|
|
15852 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
15853 |
yes:no: )
|
|
15854 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
15855 |
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
15856 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
15857 |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
15858 |
ac_header_preproc=yes
|
|
15859 |
;;
|
|
15860 |
no:yes:* )
|
|
15861 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
15862 |
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
15863 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
15864 |
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
15865 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
15866 |
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
15867 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
15868 |
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
15869 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
15870 |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
15871 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
15872 |
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
15873 |
( cat <<\_ASBOX
|
|
15874 |
## ---------------------------------------- ##
|
|
15875 |
## Report this to unbound-bugs@nlnetlabs.nl ##
|
|
15876 |
## ---------------------------------------- ##
|
|
15877 |
_ASBOX
|
|
15878 |
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
15879 |
;;
|
|
15880 |
esac
|
|
15881 |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
15882 |
$as_echo_n "checking for $ac_header... " >&6; }
|
|
15883 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
15884 |
$as_echo_n "(cached) " >&6
|
|
15885 |
else
|
|
15886 |
eval "$as_ac_Header=\$ac_header_preproc"
|
|
15887 |
fi
|
|
15888 |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
|
15889 |
$as_echo "$as_val"'`
|
|
15890 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
15891 |
$as_echo "$ac_res" >&6; }
|
|
15892 |
|
|
15893 |
fi
|
|
15894 |
as_val=`eval 'as_val=${'$as_ac_Header'}
|
|
15895 |
$as_echo "$as_val"'`
|
|
15896 |
if test "x$as_val" = x""yes; then
|
|
15897 |
cat >>confdefs.h <<_ACEOF
|
|
15898 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
15899 |
_ACEOF
|
|
15900 |
|
|
15901 |
fi
|
|
15902 |
|
|
15903 |
done
|
|
15904 |
|
|
15905 |
{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
|
|
15906 |
$as_echo_n "checking for working chown... " >&6; }
|
|
15907 |
if test "${ac_cv_func_chown_works+set}" = set; then
|
|
15908 |
$as_echo_n "(cached) " >&6
|
|
15909 |
else
|
|
15910 |
if test "$cross_compiling" = yes; then
|
|
15911 |
ac_cv_func_chown_works=no
|
|
15912 |
else
|
|
15913 |
cat >conftest.$ac_ext <<_ACEOF
|
|
15914 |
/* confdefs.h. */
|
|
15915 |
_ACEOF
|
|
15916 |
cat confdefs.h >>conftest.$ac_ext
|
|
15917 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
15918 |
/* end confdefs.h. */
|
|
15919 |
$ac_includes_default
|
|
15920 |
#include <fcntl.h>
|
|
15921 |
|
|
15922 |
int
|
|
15923 |
main ()
|
|
15924 |
{
|
|
15925 |
char *f = "conftest.chown";
|
|
15926 |
struct stat before, after;
|
|
15927 |
|
|
15928 |
if (creat (f, 0600) < 0)
|
|
15929 |
return 1;
|
|
15930 |
if (stat (f, &before) < 0)
|
|
15931 |
return 1;
|
|
15932 |
if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
|
|
15933 |
return 1;
|
|
15934 |
if (stat (f, &after) < 0)
|
|
15935 |
return 1;
|
|
15936 |
return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
|
|
15937 |
|
|
15938 |
;
|
|
15939 |
return 0;
|
|
15940 |
}
|
|
15941 |
_ACEOF
|
|
15942 |
rm -f conftest$ac_exeext
|
|
15943 |
if { (ac_try="$ac_link"
|
|
15944 |
case "(($ac_try" in
|
|
15945 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
15946 |
*) ac_try_echo=$ac_try;;
|
|
15947 |
esac
|
|
15948 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
15949 |
$as_echo "$ac_try_echo") >&5
|
|
15950 |
(eval "$ac_link") 2>&5
|
|
15951 |
ac_status=$?
|
|
15952 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
15953 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
15954 |
{ (case "(($ac_try" in
|
|
15955 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
15956 |
*) ac_try_echo=$ac_try;;
|
|
15957 |
esac
|
|
15958 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
15959 |
$as_echo "$ac_try_echo") >&5
|
|
15960 |
(eval "$ac_try") 2>&5
|
|
15961 |
ac_status=$?
|
|
15962 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
15963 |
(exit $ac_status); }; }; then
|
|
15964 |
ac_cv_func_chown_works=yes
|
|
15965 |
else
|
|
15966 |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
|
15967 |
$as_echo "$as_me: failed program was:" >&5
|
|
15968 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
15969 |
|
|
15970 |
( exit $ac_status )
|
|
15971 |
ac_cv_func_chown_works=no
|
|
15972 |
fi
|
|
15973 |
rm -rf conftest.dSYM
|
|
15974 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
15975 |
fi
|
|
15976 |
|
|
15977 |
|
|
15978 |
rm -f conftest.chown
|
|
15979 |
|
|
15980 |
fi
|
|
15981 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
|
|
15982 |
$as_echo "$ac_cv_func_chown_works" >&6; }
|
|
15983 |
if test $ac_cv_func_chown_works = yes; then
|
|
15984 |
|
|
15985 |
cat >>confdefs.h <<\_ACEOF
|
|
15986 |
#define HAVE_CHOWN 1
|
|
15987 |
_ACEOF
|
|
15988 |
|
|
15989 |
fi
|
|
15990 |
|
|
15991 |
|
|
15992 |
for ac_header in vfork.h
|
|
15993 |
do
|
|
15994 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
15995 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
15996 |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
15997 |
$as_echo_n "checking for $ac_header... " >&6; }
|
|
15998 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
15999 |
$as_echo_n "(cached) " >&6
|
|
16000 |
fi
|
|
16001 |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
|
16002 |
$as_echo "$as_val"'`
|
|
16003 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
16004 |
$as_echo "$ac_res" >&6; }
|
|
16005 |
else
|
|
16006 |
# Is the header compilable?
|
|
16007 |
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
16008 |
$as_echo_n "checking $ac_header usability... " >&6; }
|
|
16009 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16010 |
/* confdefs.h. */
|
|
16011 |
_ACEOF
|
|
16012 |
cat confdefs.h >>conftest.$ac_ext
|
|
16013 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16014 |
/* end confdefs.h. */
|
|
16015 |
$ac_includes_default
|
|
16016 |
#include <$ac_header>
|
|
16017 |
_ACEOF
|
|
16018 |
rm -f conftest.$ac_objext
|
|
16019 |
if { (ac_try="$ac_compile"
|
|
16020 |
case "(($ac_try" in
|
|
16021 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16022 |
*) ac_try_echo=$ac_try;;
|
|
16023 |
esac
|
|
16024 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16025 |
$as_echo "$ac_try_echo") >&5
|
|
16026 |
(eval "$ac_compile") 2>conftest.er1
|
|
16027 |
ac_status=$?
|
|
16028 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16029 |
rm -f conftest.er1
|
|
16030 |
cat conftest.err >&5
|
|
16031 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16032 |
(exit $ac_status); } && {
|
|
16033 |
test -z "$ac_c_werror_flag" ||
|
|
16034 |
test ! -s conftest.err
|
|
16035 |
} && test -s conftest.$ac_objext; then
|
|
16036 |
ac_header_compiler=yes
|
|
16037 |
else
|
|
16038 |
$as_echo "$as_me: failed program was:" >&5
|
|
16039 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16040 |
|
|
16041 |
ac_header_compiler=no
|
|
16042 |
fi
|
|
16043 |
|
|
16044 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
16045 |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
16046 |
$as_echo "$ac_header_compiler" >&6; }
|
|
16047 |
|
|
16048 |
# Is the header present?
|
|
16049 |
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
16050 |
$as_echo_n "checking $ac_header presence... " >&6; }
|
|
16051 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16052 |
/* confdefs.h. */
|
|
16053 |
_ACEOF
|
|
16054 |
cat confdefs.h >>conftest.$ac_ext
|
|
16055 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16056 |
/* end confdefs.h. */
|
|
16057 |
#include <$ac_header>
|
|
16058 |
_ACEOF
|
|
16059 |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
|
16060 |
case "(($ac_try" in
|
|
16061 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16062 |
*) ac_try_echo=$ac_try;;
|
|
16063 |
esac
|
|
16064 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16065 |
$as_echo "$ac_try_echo") >&5
|
|
16066 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
|
16067 |
ac_status=$?
|
|
16068 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16069 |
rm -f conftest.er1
|
|
16070 |
cat conftest.err >&5
|
|
16071 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16072 |
(exit $ac_status); } >/dev/null && {
|
|
16073 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
|
16074 |
test ! -s conftest.err
|
|
16075 |
}; then
|
|
16076 |
ac_header_preproc=yes
|
|
16077 |
else
|
|
16078 |
$as_echo "$as_me: failed program was:" >&5
|
|
16079 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16080 |
|
|
16081 |
ac_header_preproc=no
|
|
16082 |
fi
|
|
16083 |
|
|
16084 |
rm -f conftest.err conftest.$ac_ext
|
|
16085 |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
16086 |
$as_echo "$ac_header_preproc" >&6; }
|
|
16087 |
|
|
16088 |
# So? What about this header?
|
|
16089 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
16090 |
yes:no: )
|
|
16091 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
16092 |
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
16093 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
16094 |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
16095 |
ac_header_preproc=yes
|
|
16096 |
;;
|
|
16097 |
no:yes:* )
|
|
16098 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
16099 |
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
16100 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
16101 |
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
16102 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
16103 |
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
16104 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
16105 |
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
16106 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
16107 |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
16108 |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
16109 |
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
16110 |
( cat <<\_ASBOX
|
|
16111 |
## ---------------------------------------- ##
|
|
16112 |
## Report this to unbound-bugs@nlnetlabs.nl ##
|
|
16113 |
## ---------------------------------------- ##
|
|
16114 |
_ASBOX
|
|
16115 |
) | sed "s/^/$as_me: WARNING: /" >&2
|
|
16116 |
;;
|
|
16117 |
esac
|
|
16118 |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
16119 |
$as_echo_n "checking for $ac_header... " >&6; }
|
|
16120 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
16121 |
$as_echo_n "(cached) " >&6
|
|
16122 |
else
|
|
16123 |
eval "$as_ac_Header=\$ac_header_preproc"
|
|
16124 |
fi
|
|
16125 |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
|
16126 |
$as_echo "$as_val"'`
|
|
16127 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
16128 |
$as_echo "$ac_res" >&6; }
|
|
16129 |
|
|
16130 |
fi
|
|
16131 |
as_val=`eval 'as_val=${'$as_ac_Header'}
|
|
16132 |
$as_echo "$as_val"'`
|
|
16133 |
if test "x$as_val" = x""yes; then
|
|
16134 |
cat >>confdefs.h <<_ACEOF
|
|
16135 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
16136 |
_ACEOF
|
|
16137 |
|
|
16138 |
fi
|
|
16139 |
|
|
16140 |
done
|
|
16141 |
|
|
16142 |
|
|
16143 |
|
|
16144 |
for ac_func in fork vfork
|
|
16145 |
do
|
|
16146 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
16147 |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
16148 |
$as_echo_n "checking for $ac_func... " >&6; }
|
|
16149 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
16150 |
$as_echo_n "(cached) " >&6
|
|
16151 |
else
|
|
16152 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16153 |
/* confdefs.h. */
|
|
16154 |
_ACEOF
|
|
16155 |
cat confdefs.h >>conftest.$ac_ext
|
|
16156 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16157 |
/* end confdefs.h. */
|
|
16158 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
16159 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
16160 |
#define $ac_func innocuous_$ac_func
|
|
16161 |
|
|
16162 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
16163 |
which can conflict with char $ac_func (); below.
|
|
16164 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
16165 |
<limits.h> exists even on freestanding compilers. */
|
|
16166 |
|
|
16167 |
#ifdef __STDC__
|
|
16168 |
# include <limits.h>
|
|
16169 |
#else
|
|
16170 |
# include <assert.h>
|
|
16171 |
#endif
|
|
16172 |
|
|
16173 |
#undef $ac_func
|
|
16174 |
|
|
16175 |
/* Override any GCC internal prototype to avoid an error.
|
|
16176 |
Use char because int might match the return type of a GCC
|
|
16177 |
builtin and then its argument prototype would still apply. */
|
|
16178 |
#ifdef __cplusplus
|
|
16179 |
extern "C"
|
|
16180 |
#endif
|
|
16181 |
char $ac_func ();
|
|
16182 |
/* The GNU C library defines this for functions which it implements
|
|
16183 |
to always fail with ENOSYS. Some functions are actually named
|
|
16184 |
something starting with __ and the normal name is an alias. */
|
|
16185 |
#if defined __stub_$ac_func || defined __stub___$ac_func
|
|
16186 |
choke me
|
|
16187 |
#endif
|
|
16188 |
|
|
16189 |
int
|
|
16190 |
main ()
|
|
16191 |
{
|
|
16192 |
return $ac_func ();
|
|
16193 |
;
|
|
16194 |
return 0;
|
|
16195 |
}
|
|
16196 |
_ACEOF
|
|
16197 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
16198 |
if { (ac_try="$ac_link"
|
|
16199 |
case "(($ac_try" in
|
|
16200 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16201 |
*) ac_try_echo=$ac_try;;
|
|
16202 |
esac
|
|
16203 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16204 |
$as_echo "$ac_try_echo") >&5
|
|
16205 |
(eval "$ac_link") 2>conftest.er1
|
|
16206 |
ac_status=$?
|
|
16207 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16208 |
rm -f conftest.er1
|
|
16209 |
cat conftest.err >&5
|
|
16210 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16211 |
(exit $ac_status); } && {
|
|
16212 |
test -z "$ac_c_werror_flag" ||
|
|
16213 |
test ! -s conftest.err
|
|
16214 |
} && test -s conftest$ac_exeext && {
|
|
16215 |
test "$cross_compiling" = yes ||
|
|
16216 |
$as_test_x conftest$ac_exeext
|
|
16217 |
}; then
|
|
16218 |
eval "$as_ac_var=yes"
|
|
16219 |
else
|
|
16220 |
$as_echo "$as_me: failed program was:" >&5
|
|
16221 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16222 |
|
|
16223 |
eval "$as_ac_var=no"
|
|
16224 |
fi
|
|
16225 |
|
|
16226 |
rm -rf conftest.dSYM
|
|
16227 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
16228 |
conftest$ac_exeext conftest.$ac_ext
|
|
16229 |
fi
|
|
16230 |
ac_res=`eval 'as_val=${'$as_ac_var'}
|
|
16231 |
$as_echo "$as_val"'`
|
|
16232 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
16233 |
$as_echo "$ac_res" >&6; }
|
|
16234 |
as_val=`eval 'as_val=${'$as_ac_var'}
|
|
16235 |
$as_echo "$as_val"'`
|
|
16236 |
if test "x$as_val" = x""yes; then
|
|
16237 |
cat >>confdefs.h <<_ACEOF
|
|
16238 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
16239 |
_ACEOF
|
|
16240 |
|
|
16241 |
fi
|
|
16242 |
done
|
|
16243 |
|
|
16244 |
if test "x$ac_cv_func_fork" = xyes; then
|
|
16245 |
{ $as_echo "$as_me:$LINENO: checking for working fork" >&5
|
|
16246 |
$as_echo_n "checking for working fork... " >&6; }
|
|
16247 |
if test "${ac_cv_func_fork_works+set}" = set; then
|
|
16248 |
$as_echo_n "(cached) " >&6
|
|
16249 |
else
|
|
16250 |
if test "$cross_compiling" = yes; then
|
|
16251 |
ac_cv_func_fork_works=cross
|
|
16252 |
else
|
|
16253 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16254 |
/* confdefs.h. */
|
|
16255 |
_ACEOF
|
|
16256 |
cat confdefs.h >>conftest.$ac_ext
|
|
16257 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16258 |
/* end confdefs.h. */
|
|
16259 |
$ac_includes_default
|
|
16260 |
int
|
|
16261 |
main ()
|
|
16262 |
{
|
|
16263 |
|
|
16264 |
/* By Ruediger Kuhlmann. */
|
|
16265 |
return fork () < 0;
|
|
16266 |
|
|
16267 |
;
|
|
16268 |
return 0;
|
|
16269 |
}
|
|
16270 |
_ACEOF
|
|
16271 |
rm -f conftest$ac_exeext
|
|
16272 |
if { (ac_try="$ac_link"
|
|
16273 |
case "(($ac_try" in
|
|
16274 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16275 |
*) ac_try_echo=$ac_try;;
|
|
16276 |
esac
|
|
16277 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16278 |
$as_echo "$ac_try_echo") >&5
|
|
16279 |
(eval "$ac_link") 2>&5
|
|
16280 |
ac_status=$?
|
|
16281 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16282 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
16283 |
{ (case "(($ac_try" in
|
|
16284 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16285 |
*) ac_try_echo=$ac_try;;
|
|
16286 |
esac
|
|
16287 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16288 |
$as_echo "$ac_try_echo") >&5
|
|
16289 |
(eval "$ac_try") 2>&5
|
|
16290 |
ac_status=$?
|
|
16291 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16292 |
(exit $ac_status); }; }; then
|
|
16293 |
ac_cv_func_fork_works=yes
|
|
16294 |
else
|
|
16295 |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
|
16296 |
$as_echo "$as_me: failed program was:" >&5
|
|
16297 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16298 |
|
|
16299 |
( exit $ac_status )
|
|
16300 |
ac_cv_func_fork_works=no
|
|
16301 |
fi
|
|
16302 |
rm -rf conftest.dSYM
|
|
16303 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
16304 |
fi
|
|
16305 |
|
|
16306 |
|
|
16307 |
fi
|
|
16308 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
|
|
16309 |
$as_echo "$ac_cv_func_fork_works" >&6; }
|
|
16310 |
|
|
16311 |
else
|
|
16312 |
ac_cv_func_fork_works=$ac_cv_func_fork
|
|
16313 |
fi
|
|
16314 |
if test "x$ac_cv_func_fork_works" = xcross; then
|
|
16315 |
case $host in
|
|
16316 |
*-*-amigaos* | *-*-msdosdjgpp*)
|
|
16317 |
# Override, as these systems have only a dummy fork() stub
|
|
16318 |
ac_cv_func_fork_works=no
|
|
16319 |
;;
|
|
16320 |
*)
|
|
16321 |
ac_cv_func_fork_works=yes
|
|
16322 |
;;
|
|
16323 |
esac
|
|
16324 |
{ $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
|
|
16325 |
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
|
|
16326 |
fi
|
|
16327 |
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
|
16328 |
if test "x$ac_cv_func_vfork" = xyes; then
|
|
16329 |
{ $as_echo "$as_me:$LINENO: checking for working vfork" >&5
|
|
16330 |
$as_echo_n "checking for working vfork... " >&6; }
|
|
16331 |
if test "${ac_cv_func_vfork_works+set}" = set; then
|
|
16332 |
$as_echo_n "(cached) " >&6
|
|
16333 |
else
|
|
16334 |
if test "$cross_compiling" = yes; then
|
|
16335 |
ac_cv_func_vfork_works=cross
|
|
16336 |
else
|
|
16337 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16338 |
/* confdefs.h. */
|
|
16339 |
_ACEOF
|
|
16340 |
cat confdefs.h >>conftest.$ac_ext
|
|
16341 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16342 |
/* end confdefs.h. */
|
|
16343 |
/* Thanks to Paul Eggert for this test. */
|
|
16344 |
$ac_includes_default
|
|
16345 |
#include <sys/wait.h>
|
|
16346 |
#ifdef HAVE_VFORK_H
|
|
16347 |
# include <vfork.h>
|
|
16348 |
#endif
|
|
16349 |
/* On some sparc systems, changes by the child to local and incoming
|
|
16350 |
argument registers are propagated back to the parent. The compiler
|
|
16351 |
is told about this with #include <vfork.h>, but some compilers
|
|
16352 |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
|
|
16353 |
static variable whose address is put into a register that is
|
|
16354 |
clobbered by the vfork. */
|
|
16355 |
static void
|
|
16356 |
#ifdef __cplusplus
|
|
16357 |
sparc_address_test (int arg)
|
|
16358 |
# else
|
|
16359 |
sparc_address_test (arg) int arg;
|
|
16360 |
#endif
|
|
16361 |
{
|
|
16362 |
static pid_t child;
|
|
16363 |
if (!child) {
|
|
16364 |
child = vfork ();
|
|
16365 |
if (child < 0) {
|
|
16366 |
perror ("vfork");
|
|
16367 |
_exit(2);
|
|
16368 |
}
|
|
16369 |
if (!child) {
|
|
16370 |
arg = getpid();
|
|
16371 |
write(-1, "", 0);
|
|
16372 |
_exit (arg);
|
|
16373 |
}
|
|
16374 |
}
|
|
16375 |
}
|
|
16376 |
|
|
16377 |
int
|
|
16378 |
main ()
|
|
16379 |
{
|
|
16380 |
pid_t parent = getpid ();
|
|
16381 |
pid_t child;
|
|
16382 |
|
|
16383 |
sparc_address_test (0);
|
|
16384 |
|
|
16385 |
child = vfork ();
|
|
16386 |
|
|
16387 |
if (child == 0) {
|
|
16388 |
/* Here is another test for sparc vfork register problems. This
|
|
16389 |
test uses lots of local variables, at least as many local
|
|
16390 |
variables as main has allocated so far including compiler
|
|
16391 |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
|
|
16392 |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
|
|
16393 |
reuse the register of parent for one of the local variables,
|
|
16394 |
since it will think that parent can't possibly be used any more
|
|
16395 |
in this routine. Assigning to the local variable will thus
|
|
16396 |
munge parent in the parent process. */
|
|
16397 |
pid_t
|
|
16398 |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
16399 |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
16400 |
/* Convince the compiler that p..p7 are live; otherwise, it might
|
|
16401 |
use the same hardware register for all 8 local variables. */
|
|
16402 |
if (p != p1 || p != p2 || p != p3 || p != p4
|
|
16403 |
|| p != p5 || p != p6 || p != p7)
|
|
16404 |
_exit(1);
|
|
16405 |
|
|
16406 |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
|
|
16407 |
from child file descriptors. If the child closes a descriptor
|
|
16408 |
before it execs or exits, this munges the parent's descriptor
|
|
16409 |
as well. Test for this by closing stdout in the child. */
|
|
16410 |
_exit(close(fileno(stdout)) != 0);
|
|
16411 |
} else {
|
|
16412 |
int status;
|
|
16413 |
struct stat st;
|
|
16414 |
|
|
16415 |
while (wait(&status) != child)
|
|
16416 |
;
|
|
16417 |
return (
|
|
16418 |
/* Was there some problem with vforking? */
|
|
16419 |
child < 0
|
|
16420 |
|
|
16421 |
/* Did the child fail? (This shouldn't happen.) */
|
|
16422 |
|| status
|
|
16423 |
|
|
16424 |
/* Did the vfork/compiler bug occur? */
|
|
16425 |
|| parent != getpid()
|
|
16426 |
|
|
16427 |
/* Did the file descriptor bug occur? */
|
|
16428 |
|| fstat(fileno(stdout), &st) != 0
|
|
16429 |
);
|
|
16430 |
}
|
|
16431 |
}
|
|
16432 |
_ACEOF
|
|
16433 |
rm -f conftest$ac_exeext
|
|
16434 |
if { (ac_try="$ac_link"
|
|
16435 |
case "(($ac_try" in
|
|
16436 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16437 |
*) ac_try_echo=$ac_try;;
|
|
16438 |
esac
|
|
16439 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16440 |
$as_echo "$ac_try_echo") >&5
|
|
16441 |
(eval "$ac_link") 2>&5
|
|
16442 |
ac_status=$?
|
|
16443 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16444 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
16445 |
{ (case "(($ac_try" in
|
|
16446 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16447 |
*) ac_try_echo=$ac_try;;
|
|
16448 |
esac
|
|
16449 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16450 |
$as_echo "$ac_try_echo") >&5
|
|
16451 |
(eval "$ac_try") 2>&5
|
|
16452 |
ac_status=$?
|
|
16453 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16454 |
(exit $ac_status); }; }; then
|
|
16455 |
ac_cv_func_vfork_works=yes
|
|
16456 |
else
|
|
16457 |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
|
16458 |
$as_echo "$as_me: failed program was:" >&5
|
|
16459 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16460 |
|
|
16461 |
( exit $ac_status )
|
|
16462 |
ac_cv_func_vfork_works=no
|
|
16463 |
fi
|
|
16464 |
rm -rf conftest.dSYM
|
|
16465 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
16466 |
fi
|
|
16467 |
|
|
16468 |
|
|
16469 |
fi
|
|
16470 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
|
|
16471 |
$as_echo "$ac_cv_func_vfork_works" >&6; }
|
|
16472 |
|
|
16473 |
fi;
|
|
16474 |
if test "x$ac_cv_func_fork_works" = xcross; then
|
|
16475 |
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
|
16476 |
{ $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
|
|
16477 |
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
|
|
16478 |
fi
|
|
16479 |
|
|
16480 |
if test "x$ac_cv_func_vfork_works" = xyes; then
|
|
16481 |
|
|
16482 |
cat >>confdefs.h <<\_ACEOF
|
|
16483 |
#define HAVE_WORKING_VFORK 1
|
|
16484 |
_ACEOF
|
|
16485 |
|
|
16486 |
else
|
|
16487 |
|
|
16488 |
cat >>confdefs.h <<\_ACEOF
|
|
16489 |
#define vfork fork
|
|
16490 |
_ACEOF
|
|
16491 |
|
|
16492 |
fi
|
|
16493 |
if test "x$ac_cv_func_fork_works" = xyes; then
|
|
16494 |
|
|
16495 |
cat >>confdefs.h <<\_ACEOF
|
|
16496 |
#define HAVE_WORKING_FORK 1
|
|
16497 |
_ACEOF
|
|
16498 |
|
|
16499 |
fi
|
|
16500 |
|
|
16501 |
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
|
16502 |
$as_echo_n "checking return type of signal handlers... " >&6; }
|
|
16503 |
if test "${ac_cv_type_signal+set}" = set; then
|
|
16504 |
$as_echo_n "(cached) " >&6
|
|
16505 |
else
|
|
16506 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16507 |
/* confdefs.h. */
|
|
16508 |
_ACEOF
|
|
16509 |
cat confdefs.h >>conftest.$ac_ext
|
|
16510 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16511 |
/* end confdefs.h. */
|
|
16512 |
#include <sys/types.h>
|
|
16513 |
#include <signal.h>
|
|
16514 |
|
|
16515 |
int
|
|
16516 |
main ()
|
|
16517 |
{
|
|
16518 |
return *(signal (0, 0)) (0) == 1;
|
|
16519 |
;
|
|
16520 |
return 0;
|
|
16521 |
}
|
|
16522 |
_ACEOF
|
|
16523 |
rm -f conftest.$ac_objext
|
|
16524 |
if { (ac_try="$ac_compile"
|
|
16525 |
case "(($ac_try" in
|
|
16526 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16527 |
*) ac_try_echo=$ac_try;;
|
|
16528 |
esac
|
|
16529 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16530 |
$as_echo "$ac_try_echo") >&5
|
|
16531 |
(eval "$ac_compile") 2>conftest.er1
|
|
16532 |
ac_status=$?
|
|
16533 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16534 |
rm -f conftest.er1
|
|
16535 |
cat conftest.err >&5
|
|
16536 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16537 |
(exit $ac_status); } && {
|
|
16538 |
test -z "$ac_c_werror_flag" ||
|
|
16539 |
test ! -s conftest.err
|
|
16540 |
} && test -s conftest.$ac_objext; then
|
|
16541 |
ac_cv_type_signal=int
|
|
16542 |
else
|
|
16543 |
$as_echo "$as_me: failed program was:" >&5
|
|
16544 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16545 |
|
|
16546 |
ac_cv_type_signal=void
|
|
16547 |
fi
|
|
16548 |
|
|
16549 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
16550 |
fi
|
|
16551 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
|
16552 |
$as_echo "$ac_cv_type_signal" >&6; }
|
|
16553 |
|
|
16554 |
cat >>confdefs.h <<_ACEOF
|
|
16555 |
#define RETSIGTYPE $ac_cv_type_signal
|
|
16556 |
_ACEOF
|
|
16557 |
|
|
16558 |
|
|
16559 |
{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
|
|
16560 |
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
|
|
16561 |
if test "${ac_cv_sys_largefile_source+set}" = set; then
|
|
16562 |
$as_echo_n "(cached) " >&6
|
|
16563 |
else
|
|
16564 |
while :; do
|
|
16565 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16566 |
/* confdefs.h. */
|
|
16567 |
_ACEOF
|
|
16568 |
cat confdefs.h >>conftest.$ac_ext
|
|
16569 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16570 |
/* end confdefs.h. */
|
|
16571 |
#include <sys/types.h> /* for off_t */
|
|
16572 |
#include <stdio.h>
|
|
16573 |
int
|
|
16574 |
main ()
|
|
16575 |
{
|
|
16576 |
int (*fp) (FILE *, off_t, int) = fseeko;
|
|
16577 |
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
|
|
16578 |
;
|
|
16579 |
return 0;
|
|
16580 |
}
|
|
16581 |
_ACEOF
|
|
16582 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
16583 |
if { (ac_try="$ac_link"
|
|
16584 |
case "(($ac_try" in
|
|
16585 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16586 |
*) ac_try_echo=$ac_try;;
|
|
16587 |
esac
|
|
16588 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16589 |
$as_echo "$ac_try_echo") >&5
|
|
16590 |
(eval "$ac_link") 2>conftest.er1
|
|
16591 |
ac_status=$?
|
|
16592 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16593 |
rm -f conftest.er1
|
|
16594 |
cat conftest.err >&5
|
|
16595 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16596 |
(exit $ac_status); } && {
|
|
16597 |
test -z "$ac_c_werror_flag" ||
|
|
16598 |
test ! -s conftest.err
|
|
16599 |
} && test -s conftest$ac_exeext && {
|
|
16600 |
test "$cross_compiling" = yes ||
|
|
16601 |
$as_test_x conftest$ac_exeext
|
|
16602 |
}; then
|
|
16603 |
ac_cv_sys_largefile_source=no; break
|
|
16604 |
else
|
|
16605 |
$as_echo "$as_me: failed program was:" >&5
|
|
16606 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16607 |
|
|
16608 |
|
|
16609 |
fi
|
|
16610 |
|
|
16611 |
rm -rf conftest.dSYM
|
|
16612 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
16613 |
conftest$ac_exeext conftest.$ac_ext
|
|
16614 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16615 |
/* confdefs.h. */
|
|
16616 |
_ACEOF
|
|
16617 |
cat confdefs.h >>conftest.$ac_ext
|
|
16618 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16619 |
/* end confdefs.h. */
|
|
16620 |
#define _LARGEFILE_SOURCE 1
|
|
16621 |
#include <sys/types.h> /* for off_t */
|
|
16622 |
#include <stdio.h>
|
|
16623 |
int
|
|
16624 |
main ()
|
|
16625 |
{
|
|
16626 |
int (*fp) (FILE *, off_t, int) = fseeko;
|
|
16627 |
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
|
|
16628 |
;
|
|
16629 |
return 0;
|
|
16630 |
}
|
|
16631 |
_ACEOF
|
|
16632 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
16633 |
if { (ac_try="$ac_link"
|
|
16634 |
case "(($ac_try" in
|
|
16635 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16636 |
*) ac_try_echo=$ac_try;;
|
|
16637 |
esac
|
|
16638 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16639 |
$as_echo "$ac_try_echo") >&5
|
|
16640 |
(eval "$ac_link") 2>conftest.er1
|
|
16641 |
ac_status=$?
|
|
16642 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16643 |
rm -f conftest.er1
|
|
16644 |
cat conftest.err >&5
|
|
16645 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16646 |
(exit $ac_status); } && {
|
|
16647 |
test -z "$ac_c_werror_flag" ||
|
|
16648 |
test ! -s conftest.err
|
|
16649 |
} && test -s conftest$ac_exeext && {
|
|
16650 |
test "$cross_compiling" = yes ||
|
|
16651 |
$as_test_x conftest$ac_exeext
|
|
16652 |
}; then
|
|
16653 |
ac_cv_sys_largefile_source=1; break
|
|
16654 |
else
|
|
16655 |
$as_echo "$as_me: failed program was:" >&5
|
|
16656 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16657 |
|
|
16658 |
|
|
16659 |
fi
|
|
16660 |
|
|
16661 |
rm -rf conftest.dSYM
|
|
16662 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
16663 |
conftest$ac_exeext conftest.$ac_ext
|
|
16664 |
ac_cv_sys_largefile_source=unknown
|
|
16665 |
break
|
|
16666 |
done
|
|
16667 |
fi
|
|
16668 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
|
|
16669 |
$as_echo "$ac_cv_sys_largefile_source" >&6; }
|
|
16670 |
case $ac_cv_sys_largefile_source in #(
|
|
16671 |
no | unknown) ;;
|
|
16672 |
*)
|
|
16673 |
cat >>confdefs.h <<_ACEOF
|
|
16674 |
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
|
|
16675 |
_ACEOF
|
|
16676 |
;;
|
|
16677 |
esac
|
|
16678 |
rm -rf conftest*
|
|
16679 |
|
|
16680 |
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
|
|
16681 |
# in glibc 2.1.3, but that breaks too many other things.
|
|
16682 |
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
|
|
16683 |
if test $ac_cv_sys_largefile_source != unknown; then
|
|
16684 |
|
|
16685 |
cat >>confdefs.h <<\_ACEOF
|
|
16686 |
#define HAVE_FSEEKO 1
|
|
16687 |
_ACEOF
|
|
16688 |
|
|
16689 |
fi
|
|
16690 |
|
|
16691 |
|
|
16692 |
# Check whether --enable-largefile was given.
|
|
16693 |
if test "${enable_largefile+set}" = set; then
|
|
16694 |
enableval=$enable_largefile;
|
|
16695 |
fi
|
|
16696 |
|
|
16697 |
if test "$enable_largefile" != no; then
|
|
16698 |
|
|
16699 |
{ $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
|
|
16700 |
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
|
16701 |
if test "${ac_cv_sys_largefile_CC+set}" = set; then
|
|
16702 |
$as_echo_n "(cached) " >&6
|
|
16703 |
else
|
|
16704 |
ac_cv_sys_largefile_CC=no
|
|
16705 |
if test "$GCC" != yes; then
|
|
16706 |
ac_save_CC=$CC
|
|
16707 |
while :; do
|
|
16708 |
# IRIX 6.2 and later do not support large files by default,
|
|
16709 |
# so use the C compiler's -n32 option if that helps.
|
|
16710 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16711 |
/* confdefs.h. */
|
|
16712 |
_ACEOF
|
|
16713 |
cat confdefs.h >>conftest.$ac_ext
|
|
16714 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16715 |
/* end confdefs.h. */
|
|
16716 |
#include <sys/types.h>
|
|
16717 |
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
16718 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
16719 |
since some C++ compilers masquerading as C compilers
|
|
16720 |
incorrectly reject 9223372036854775807. */
|
|
16721 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
16722 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
16723 |
&& LARGE_OFF_T % 2147483647 == 1)
|
|
16724 |
? 1 : -1];
|
|
16725 |
int
|
|
16726 |
main ()
|
|
16727 |
{
|
|
16728 |
|
|
16729 |
;
|
|
16730 |
return 0;
|
|
16731 |
}
|
|
16732 |
_ACEOF
|
|
16733 |
rm -f conftest.$ac_objext
|
|
16734 |
if { (ac_try="$ac_compile"
|
|
16735 |
case "(($ac_try" in
|
|
16736 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16737 |
*) ac_try_echo=$ac_try;;
|
|
16738 |
esac
|
|
16739 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16740 |
$as_echo "$ac_try_echo") >&5
|
|
16741 |
(eval "$ac_compile") 2>conftest.er1
|
|
16742 |
ac_status=$?
|
|
16743 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16744 |
rm -f conftest.er1
|
|
16745 |
cat conftest.err >&5
|
|
16746 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16747 |
(exit $ac_status); } && {
|
|
16748 |
test -z "$ac_c_werror_flag" ||
|
|
16749 |
test ! -s conftest.err
|
|
16750 |
} && test -s conftest.$ac_objext; then
|
|
16751 |
break
|
|
16752 |
else
|
|
16753 |
$as_echo "$as_me: failed program was:" >&5
|
|
16754 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16755 |
|
|
16756 |
|
|
16757 |
fi
|
|
16758 |
|
|
16759 |
rm -f core conftest.err conftest.$ac_objext
|
|
16760 |
CC="$CC -n32"
|
|
16761 |
rm -f conftest.$ac_objext
|
|
16762 |
if { (ac_try="$ac_compile"
|
|
16763 |
case "(($ac_try" in
|
|
16764 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16765 |
*) ac_try_echo=$ac_try;;
|
|
16766 |
esac
|
|
16767 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16768 |
$as_echo "$ac_try_echo") >&5
|
|
16769 |
(eval "$ac_compile") 2>conftest.er1
|
|
16770 |
ac_status=$?
|
|
16771 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16772 |
rm -f conftest.er1
|
|
16773 |
cat conftest.err >&5
|
|
16774 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16775 |
(exit $ac_status); } && {
|
|
16776 |
test -z "$ac_c_werror_flag" ||
|
|
16777 |
test ! -s conftest.err
|
|
16778 |
} && test -s conftest.$ac_objext; then
|
|
16779 |
ac_cv_sys_largefile_CC=' -n32'; break
|
|
16780 |
else
|
|
16781 |
$as_echo "$as_me: failed program was:" >&5
|
|
16782 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16783 |
|
|
16784 |
|
|
16785 |
fi
|
|
16786 |
|
|
16787 |
rm -f core conftest.err conftest.$ac_objext
|
|
16788 |
break
|
|
16789 |
done
|
|
16790 |
CC=$ac_save_CC
|
|
16791 |
rm -f conftest.$ac_ext
|
|
16792 |
fi
|
|
16793 |
fi
|
|
16794 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
|
|
16795 |
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
|
16796 |
if test "$ac_cv_sys_largefile_CC" != no; then
|
|
16797 |
CC=$CC$ac_cv_sys_largefile_CC
|
|
16798 |
fi
|
|
16799 |
|
|
16800 |
{ $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
|
16801 |
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
|
16802 |
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
|
|
16803 |
$as_echo_n "(cached) " >&6
|
|
16804 |
else
|
|
16805 |
while :; do
|
|
16806 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16807 |
/* confdefs.h. */
|
|
16808 |
_ACEOF
|
|
16809 |
cat confdefs.h >>conftest.$ac_ext
|
|
16810 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16811 |
/* end confdefs.h. */
|
|
16812 |
#include <sys/types.h>
|
|
16813 |
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
16814 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
16815 |
since some C++ compilers masquerading as C compilers
|
|
16816 |
incorrectly reject 9223372036854775807. */
|
|
16817 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
16818 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
16819 |
&& LARGE_OFF_T % 2147483647 == 1)
|
|
16820 |
? 1 : -1];
|
|
16821 |
int
|
|
16822 |
main ()
|
|
16823 |
{
|
|
16824 |
|
|
16825 |
;
|
|
16826 |
return 0;
|
|
16827 |
}
|
|
16828 |
_ACEOF
|
|
16829 |
rm -f conftest.$ac_objext
|
|
16830 |
if { (ac_try="$ac_compile"
|
|
16831 |
case "(($ac_try" in
|
|
16832 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16833 |
*) ac_try_echo=$ac_try;;
|
|
16834 |
esac
|
|
16835 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16836 |
$as_echo "$ac_try_echo") >&5
|
|
16837 |
(eval "$ac_compile") 2>conftest.er1
|
|
16838 |
ac_status=$?
|
|
16839 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16840 |
rm -f conftest.er1
|
|
16841 |
cat conftest.err >&5
|
|
16842 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16843 |
(exit $ac_status); } && {
|
|
16844 |
test -z "$ac_c_werror_flag" ||
|
|
16845 |
test ! -s conftest.err
|
|
16846 |
} && test -s conftest.$ac_objext; then
|
|
16847 |
ac_cv_sys_file_offset_bits=no; break
|
|
16848 |
else
|
|
16849 |
$as_echo "$as_me: failed program was:" >&5
|
|
16850 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16851 |
|
|
16852 |
|
|
16853 |
fi
|
|
16854 |
|
|
16855 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
16856 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16857 |
/* confdefs.h. */
|
|
16858 |
_ACEOF
|
|
16859 |
cat confdefs.h >>conftest.$ac_ext
|
|
16860 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16861 |
/* end confdefs.h. */
|
|
16862 |
#define _FILE_OFFSET_BITS 64
|
|
16863 |
#include <sys/types.h>
|
|
16864 |
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
16865 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
16866 |
since some C++ compilers masquerading as C compilers
|
|
16867 |
incorrectly reject 9223372036854775807. */
|
|
16868 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
16869 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
16870 |
&& LARGE_OFF_T % 2147483647 == 1)
|
|
16871 |
? 1 : -1];
|
|
16872 |
int
|
|
16873 |
main ()
|
|
16874 |
{
|
|
16875 |
|
|
16876 |
;
|
|
16877 |
return 0;
|
|
16878 |
}
|
|
16879 |
_ACEOF
|
|
16880 |
rm -f conftest.$ac_objext
|
|
16881 |
if { (ac_try="$ac_compile"
|
|
16882 |
case "(($ac_try" in
|
|
16883 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16884 |
*) ac_try_echo=$ac_try;;
|
|
16885 |
esac
|
|
16886 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16887 |
$as_echo "$ac_try_echo") >&5
|
|
16888 |
(eval "$ac_compile") 2>conftest.er1
|
|
16889 |
ac_status=$?
|
|
16890 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16891 |
rm -f conftest.er1
|
|
16892 |
cat conftest.err >&5
|
|
16893 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16894 |
(exit $ac_status); } && {
|
|
16895 |
test -z "$ac_c_werror_flag" ||
|
|
16896 |
test ! -s conftest.err
|
|
16897 |
} && test -s conftest.$ac_objext; then
|
|
16898 |
ac_cv_sys_file_offset_bits=64; break
|
|
16899 |
else
|
|
16900 |
$as_echo "$as_me: failed program was:" >&5
|
|
16901 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16902 |
|
|
16903 |
|
|
16904 |
fi
|
|
16905 |
|
|
16906 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
16907 |
ac_cv_sys_file_offset_bits=unknown
|
|
16908 |
break
|
|
16909 |
done
|
|
16910 |
fi
|
|
16911 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
|
|
16912 |
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
|
16913 |
case $ac_cv_sys_file_offset_bits in #(
|
|
16914 |
no | unknown) ;;
|
|
16915 |
*)
|
|
16916 |
cat >>confdefs.h <<_ACEOF
|
|
16917 |
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
|
16918 |
_ACEOF
|
|
16919 |
;;
|
|
16920 |
esac
|
|
16921 |
rm -rf conftest*
|
|
16922 |
if test $ac_cv_sys_file_offset_bits = unknown; then
|
|
16923 |
{ $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
|
|
16924 |
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
|
16925 |
if test "${ac_cv_sys_large_files+set}" = set; then
|
|
16926 |
$as_echo_n "(cached) " >&6
|
|
16927 |
else
|
|
16928 |
while :; do
|
|
16929 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16930 |
/* confdefs.h. */
|
|
16931 |
_ACEOF
|
|
16932 |
cat confdefs.h >>conftest.$ac_ext
|
|
16933 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16934 |
/* end confdefs.h. */
|
|
16935 |
#include <sys/types.h>
|
|
16936 |
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
16937 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
16938 |
since some C++ compilers masquerading as C compilers
|
|
16939 |
incorrectly reject 9223372036854775807. */
|
|
16940 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
16941 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
16942 |
&& LARGE_OFF_T % 2147483647 == 1)
|
|
16943 |
? 1 : -1];
|
|
16944 |
int
|
|
16945 |
main ()
|
|
16946 |
{
|
|
16947 |
|
|
16948 |
;
|
|
16949 |
return 0;
|
|
16950 |
}
|
|
16951 |
_ACEOF
|
|
16952 |
rm -f conftest.$ac_objext
|
|
16953 |
if { (ac_try="$ac_compile"
|
|
16954 |
case "(($ac_try" in
|
|
16955 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
16956 |
*) ac_try_echo=$ac_try;;
|
|
16957 |
esac
|
|
16958 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
16959 |
$as_echo "$ac_try_echo") >&5
|
|
16960 |
(eval "$ac_compile") 2>conftest.er1
|
|
16961 |
ac_status=$?
|
|
16962 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
16963 |
rm -f conftest.er1
|
|
16964 |
cat conftest.err >&5
|
|
16965 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
16966 |
(exit $ac_status); } && {
|
|
16967 |
test -z "$ac_c_werror_flag" ||
|
|
16968 |
test ! -s conftest.err
|
|
16969 |
} && test -s conftest.$ac_objext; then
|
|
16970 |
ac_cv_sys_large_files=no; break
|
|
16971 |
else
|
|
16972 |
$as_echo "$as_me: failed program was:" >&5
|
|
16973 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
16974 |
|
|
16975 |
|
|
16976 |
fi
|
|
16977 |
|
|
16978 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
16979 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16980 |
/* confdefs.h. */
|
|
16981 |
_ACEOF
|
|
16982 |
cat confdefs.h >>conftest.$ac_ext
|
|
16983 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
16984 |
/* end confdefs.h. */
|
|
16985 |
#define _LARGE_FILES 1
|
|
16986 |
#include <sys/types.h>
|
|
16987 |
/* Check that off_t can represent 2**63 - 1 correctly.
|
|
16988 |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
16989 |
since some C++ compilers masquerading as C compilers
|
|
16990 |
incorrectly reject 9223372036854775807. */
|
|
16991 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
16992 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
16993 |
&& LARGE_OFF_T % 2147483647 == 1)
|
|
16994 |
? 1 : -1];
|
|
16995 |
int
|
|
16996 |
main ()
|
|
16997 |
{
|
|
16998 |
|
|
16999 |
;
|
|
17000 |
return 0;
|
|
17001 |
}
|
|
17002 |
_ACEOF
|
|
17003 |
rm -f conftest.$ac_objext
|
|
17004 |
if { (ac_try="$ac_compile"
|
|
17005 |
case "(($ac_try" in
|
|
17006 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
17007 |
*) ac_try_echo=$ac_try;;
|
|
17008 |
esac
|
|
17009 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
17010 |
$as_echo "$ac_try_echo") >&5
|
|
17011 |
(eval "$ac_compile") 2>conftest.er1
|
|
17012 |
ac_status=$?
|
|
17013 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
17014 |
rm -f conftest.er1
|
|
17015 |
cat conftest.err >&5
|
|
17016 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
17017 |
(exit $ac_status); } && {
|
|
17018 |
test -z "$ac_c_werror_flag" ||
|
|
17019 |
test ! -s conftest.err
|
|
17020 |
} && test -s conftest.$ac_objext; then
|
|
17021 |
ac_cv_sys_large_files=1; break
|
|
17022 |
else
|
|
17023 |
$as_echo "$as_me: failed program was:" >&5
|
|
17024 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
17025 |
|
|
17026 |
|
|
17027 |
fi
|
|
17028 |
|
|
17029 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
17030 |
ac_cv_sys_large_files=unknown
|
|
17031 |
break
|
|
17032 |
done
|
|
17033 |
fi
|
|
17034 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
|
|
17035 |
$as_echo "$ac_cv_sys_large_files" >&6; }
|
|
17036 |
case $ac_cv_sys_large_files in #(
|
|
17037 |
no | unknown) ;;
|
|
17038 |
*)
|
|
17039 |
cat >>confdefs.h <<_ACEOF
|
|
17040 |
#define _LARGE_FILES $ac_cv_sys_large_files
|
|
17041 |
_ACEOF
|
|
17042 |
;;
|
|
17043 |
esac
|
|
17044 |
rm -rf conftest*
|
|
17045 |
fi
|
|
17046 |
fi
|
|
17047 |
|
|
17048 |
|
|
17049 |
|
|
17050 |
|
|
17051 |
{ $as_echo "$as_me:$LINENO: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
|
|
17052 |
$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
|
|
17053 |
cache=_D_LARGEFILE_SOURCE_1
|
|
17054 |
if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
17055 |
$as_echo_n "(cached) " >&6
|
|
17056 |
else
|
|
17057 |
|
|
17058 |
echo '
|
|
17059 |
#include <stdio.h>
|
|
17060 |
int test() {
|
|
17061 |
int a = fseeko(stdin, 0, 0);
|
|
17062 |
return a;
|
|
17063 |
}
|
|
17064 |
' > conftest.c
|
|
17065 |
echo 'void f(){}' >>conftest.c
|
|
17066 |
if test -z "`$CC $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
|
|
17067 |
eval "cv_prog_cc_flag_needed_$cache=no"
|
|
17068 |
else
|
|
17069 |
|
|
17070 |
if test -z "`$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
|
|
17071 |
eval "cv_prog_cc_flag_needed_$cache=yes"
|
|
17072 |
else
|
|
17073 |
eval "cv_prog_cc_flag_needed_$cache=fail"
|
|
17074 |
#echo 'Test with flag fails too!'
|
|
17075 |
#cat conftest.c
|
|
17076 |
#echo "$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
|
|
17077 |
#echo `$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
|
|
17078 |
#exit 1
|
|
17079 |
fi
|
|
17080 |
|
|
17081 |
fi
|
|
17082 |
rm -f conftest conftest.c conftest.o
|
|
17083 |
|
|
17084 |
fi
|
|
17085 |
|
|
17086 |
if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
|
|
17087 |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
17088 |
$as_echo "yes" >&6; }
|
|
17089 |
:
|
|
17090 |
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
|
|
17091 |
else
|
|
17092 |
if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
|
|
17093 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
17094 |
$as_echo "no" >&6; }
|
|
17095 |
#echo 'Test with flag is no!'
|
|
17096 |
#cat conftest.c
|
|
17097 |
#echo "$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
|
|
17098 |
#echo `$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
|
|
17099 |
#exit 1
|
|
17100 |
:
|
|
17101 |
|
|
17102 |
else
|
|
17103 |
{ $as_echo "$as_me:$LINENO: result: failed" >&5
|
|
17104 |
$as_echo "failed" >&6; }
|
|
17105 |
:
|
|
17106 |
|
|
17107 |
fi
|
|
17108 |
fi
|
|
17109 |
|
|
17110 |
|
|
17111 |
|
|
17112 |
{ $as_echo "$as_me:$LINENO: checking if nonblocking sockets work" >&5
|
|
17113 |
$as_echo_n "checking if nonblocking sockets work... " >&6; }
|
|
17114 |
if echo $target | grep mingw32 >/dev/null; then
|
|
17115 |
{ $as_echo "$as_me:$LINENO: result: no (windows)" >&5
|
|
17116 |
$as_echo "no (windows)" >&6; }
|
|
17117 |
|
|
17118 |
cat >>confdefs.h <<\_ACEOF
|
|
17119 |
#define NONBLOCKING_IS_BROKEN 1
|
|
17120 |
_ACEOF
|
|
17121 |
|
|
17122 |
else
|
|
17123 |
if test "$cross_compiling" = yes; then
|
|
17124 |
|
|
17125 |
{ $as_echo "$as_me:$LINENO: result: crosscompile(yes)" >&5
|
|
17126 |
$as_echo "crosscompile(yes)" >&6; }
|
|
17127 |
|
|
17128 |
else
|
|
17129 |
cat >conftest.$ac_ext <<_ACEOF
|
|
17130 |
/* confdefs.h. */
|
|
17131 |
_ACEOF
|
|
17132 |
cat confdefs.h >>conftest.$ac_ext
|
|
17133 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
17134 |
/* end confdefs.h. */
|
|
17135 |
|
|
17136 |
#include <stdio.h>
|
|
17137 |
#include <string.h>
|
|
17138 |
#include <stdlib.h>
|
|
17139 |
#include <fcntl.h>
|
|
17140 |
#include <errno.h>
|
|
17141 |
#ifdef HAVE_SYS_TYPES_H
|
|
17142 |
#include <sys/types.h>
|
|
17143 |
#endif
|
|
17144 |
#ifdef HAVE_SYS_SOCKET_H
|
|
17145 |
#include <sys/socket.h>
|
|
17146 |
#endif
|
|
17147 |
#ifdef HAVE_NETINET_IN_H
|
|
17148 |
#include <netinet/in.h>
|
|
17149 |
#endif
|
|
17150 |
#ifdef HAVE_ARPA_INET_H
|
|
17151 |
#include <arpa/inet.h>
|
|
17152 |
#endif
|
|
17153 |
#ifdef HAVE_UNISTD_H
|
|
17154 |
#include <unistd.h>
|
|
17155 |
#endif
|
|
17156 |
#ifdef HAVE_TIME_H
|
|
17157 |
#include <time.h>
|
|
17158 |
#endif
|
|
17159 |
|
|
17160 |
int
|
|
17161 |
main ()
|
|
17162 |
{
|
|
17163 |
|
|
17164 |
int port;
|
|
17165 |
int sfd, cfd;
|
|
17166 |
int num = 10;
|
|
17167 |
int i, p;
|
|
17168 |
struct sockaddr_in a;
|
|
17169 |
/* test if select and nonblocking reads work well together */
|
|
17170 |
/* open port.
|
|
17171 |
fork child to send 10 messages.
|
|
17172 |
select to read.
|
|
17173 |
then try to nonblocking read the 10 messages
|
|
17174 |
then, nonblocking read must give EAGAIN
|
|
17175 |
*/
|
|
17176 |
|
|
17177 |
port = 12345 + (time(0)%32);
|
|
17178 |
sfd = socket(PF_INET, SOCK_DGRAM, 0);
|
|
17179 |
if(sfd == -1) {
|
|
17180 |
perror("socket");
|
|
17181 |
return 1;
|
|
17182 |
}
|
|
17183 |
memset(&a, 0, sizeof(a));
|
|
17184 |
a.sin_family = AF_INET;
|
|
17185 |
a.sin_port = htons(port);
|
|
17186 |
a.sin_addr.s_addr = inet_addr("127.0.0.1");
|
|
17187 |
if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
|
|
17188 |
perror("bind");
|
|
17189 |
return 1;
|
|
17190 |
}
|
|
17191 |
if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
|
|
17192 |
perror("fcntl");
|
|
17193 |
return 1;
|
|
17194 |
}
|
|
17195 |
|
|
17196 |
cfd = socket(PF_INET, SOCK_DGRAM, 0);
|
|
17197 |
if(cfd == -1) {
|
|
17198 |
perror("client socket");
|
|
17199 |
return 1;
|
|
17200 |
}
|
|
17201 |
a.sin_port = 0;
|
|
17202 |
if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
|
|
17203 |
perror("client bind");
|
|
17204 |
return 1;
|
|
17205 |
}
|
|
17206 |
a.sin_port = htons(port);
|
|
17207 |
|
|
17208 |
/* no handler, causes exit in 10 seconds */
|
|
17209 |
alarm(10);
|
|
17210 |
|
|
17211 |
/* send and receive on the socket */
|
|
17212 |
if((p=fork()) == 0) {
|
|
17213 |
for(i=0; i<num; i++) {
|
|
17214 |
if(sendto(cfd, &i, sizeof(i), 0,
|
|
17215 |
(struct sockaddr*)&a, sizeof(a)) < 0) {
|
|
17216 |
perror("sendto");
|
|
17217 |
return 1;
|
|
17218 |
}
|
|
17219 |
}
|
|
17220 |
} else {
|
|
17221 |
/* parent */
|
|
17222 |
fd_set rset;
|
|
17223 |
int x;
|
|
17224 |
if(p == -1) {
|
|
17225 |
perror("fork");
|
|
17226 |
return 1;
|
|
17227 |
}
|
|
17228 |
FD_ZERO(&rset);
|
|
17229 |
FD_SET(sfd, &rset);
|
|
17230 |
if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
|
|
17231 |
perror("select");
|
|
17232 |
return 1;
|
|
17233 |
}
|
|
17234 |
i = 0;
|
|
17235 |
while(i < num) {
|
|
17236 |
if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
|
|
17237 |
if(errno == EAGAIN)
|
|
17238 |
continue;
|
|
17239 |
perror("recv");
|
|
17240 |
return 1;
|
|
17241 |
}
|
|
17242 |
i++;
|
|
17243 |
}
|
|
17244 |
/* now we want to get EAGAIN: nonblocking goodness */
|
|
17245 |
errno = 0;
|
|
17246 |
recv(sfd, &x, sizeof(x), 0);
|
|
17247 |
if(errno != EAGAIN) {
|
|
17248 |
perror("trying to recv again");
|
|
17249 |
return 1;
|
|
17250 |
}
|
|
17251 |
/* EAGAIN encountered */
|
|
17252 |
}
|
|
17253 |
|
|
17254 |
close(sfd);
|
|
17255 |
close(cfd);
|
|
17256 |
|
|
17257 |
;
|
|
17258 |
return 0;
|
|
17259 |
}
|
|
17260 |
_ACEOF
|
|
17261 |
rm -f conftest$ac_exeext
|
|
17262 |
if { (ac_try="$ac_link"
|
|
17263 |
case "(($ac_try" in
|
|
17264 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
17265 |
*) ac_try_echo=$ac_try;;
|
|
17266 |
esac
|
|
17267 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
17268 |
$as_echo "$ac_try_echo") >&5
|
|
17269 |
(eval "$ac_link") 2>&5
|
|
17270 |
ac_status=$?
|
|
17271 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
17272 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
17273 |
{ (case "(($ac_try" in
|
|
17274 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
17275 |
*) ac_try_echo=$ac_try;;
|
|
17276 |
esac
|
|
17277 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
17278 |
$as_echo "$ac_try_echo") >&5
|
|
17279 |
(eval "$ac_try") 2>&5
|
|
17280 |
ac_status=$?
|
|
17281 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
17282 |
(exit $ac_status); }; }; then
|
|
17283 |
|
|
17284 |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
17285 |
$as_echo "yes" >&6; }
|
|
17286 |
|
|
17287 |
else
|
|
17288 |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
|
17289 |
$as_echo "$as_me: failed program was:" >&5
|
|
17290 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
17291 |
|
|
17292 |
( exit $ac_status )
|
|
17293 |
|
|
17294 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
17295 |
$as_echo "no" >&6; }
|
|
17296 |
|
|
17297 |
cat >>confdefs.h <<\_ACEOF
|
|
17298 |
#define NONBLOCKING_IS_BROKEN 1
|
|
17299 |
_ACEOF
|
|
17300 |
|
|
17301 |
|
|
17302 |
fi
|
|
17303 |
rm -rf conftest.dSYM
|
|
17304 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
17305 |
fi
|
|
17306 |
|
|
17307 |
|
|
17308 |
fi
|
|
17309 |
|
|
17310 |
|
|
17311 |
{ $as_echo "$as_me:$LINENO: checking whether mkdir has one arg" >&5
|
|
17312 |
$as_echo_n "checking whether mkdir has one arg... " >&6; }
|
|
17313 |
cat >conftest.$ac_ext <<_ACEOF
|
|
17314 |
/* confdefs.h. */
|
|
17315 |
_ACEOF
|
|
17316 |
cat confdefs.h >>conftest.$ac_ext
|
|
17317 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
17318 |
/* end confdefs.h. */
|
|
17319 |
|
|
17320 |
#include <stdio.h>
|
|
17321 |
#include <unistd.h>
|
|
17322 |
#ifdef HAVE_WINSOCK2_H
|
|
17323 |
#include <winsock2.h>
|
|
17324 |
#endif
|
|
17325 |
#ifdef HAVE_SYS_STAT_H
|
|
17326 |
#include <sys/stat.h>
|
|
17327 |
#endif
|
|
17328 |
|
|
17329 |
int
|
|
17330 |
main ()
|
|
17331 |
{
|
|
17332 |
|
|
17333 |
(void)mkdir("directory");
|
|
17334 |
|
|
17335 |
;
|
|
17336 |
return 0;
|
|
17337 |
}
|
|
17338 |
_ACEOF
|
|
17339 |
rm -f conftest.$ac_objext
|
|
17340 |
if { (ac_try="$ac_compile"
|
|
17341 |
case "(($ac_try" in
|
|
17342 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
17343 |
*) ac_try_echo=$ac_try;;
|
|
17344 |
esac
|
|
17345 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
17346 |
$as_echo "$ac_try_echo") >&5
|
|
17347 |
(eval "$ac_compile") 2>conftest.er1
|
|
17348 |
ac_status=$?
|
|
17349 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
17350 |
rm -f conftest.er1
|
|
17351 |
cat conftest.err >&5
|
|
17352 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
17353 |
(exit $ac_status); } && {
|
|
17354 |
test -z "$ac_c_werror_flag" ||
|
|
17355 |
test ! -s conftest.err
|
|
17356 |
} && test -s conftest.$ac_objext; then
|
|
17357 |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
17358 |
$as_echo "yes" >&6; }
|
|
17359 |
|
|
17360 |
cat >>confdefs.h <<\_ACEOF
|
|
17361 |
#define MKDIR_HAS_ONE_ARG 1
|
|
17362 |
_ACEOF
|
|
17363 |
|
|
17364 |
|
|
17365 |
else
|
|
17366 |
$as_echo "$as_me: failed program was:" >&5
|
|
17367 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
17368 |
|
|
17369 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
17370 |
$as_echo "no" >&6; }
|
|
17371 |
|
|
17372 |
fi
|
|
17373 |
|
|
17374 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
17375 |
|
|
17376 |
|
15575 | 17377 |
# check for thread library.
|
15576 | 17378 |
# check this first, so that the pthread lib does not get linked in via
|
15577 | 17379 |
# libssl or libpython, and thus distorts the tests, and we end up using
|
|
16557 | 18359 |
|
16558 | 18360 |
# Check for Python
|
16559 | 18361 |
ub_have_python=no
|
16560 | |
|
|
18362 |
ac_save_LIBS="$LIBS"
|
16561 | 18363 |
#
|
16562 | 18364 |
# Allow the use of a (user set) custom python version
|
16563 | 18365 |
#
|
|
18214 | 20016 |
if test "x$ac_cv_func_EVP_PKEY_set_type_str" = x""yes; then
|
18215 | 20017 |
:
|
18216 | 20018 |
else
|
18217 | |
{ { $as_echo "$as_me:$LINENO: error: OpenSSL >= 1.0.0 is needed for GOST support" >&5
|
18218 | |
$as_echo "$as_me: error: OpenSSL >= 1.0.0 is needed for GOST support" >&2;}
|
|
20019 |
{ { $as_echo "$as_me:$LINENO: error: OpenSSL >= 1.0.0 is needed for GOST support, upgrade openssl or rerun with --disable-gost" >&5
|
|
20020 |
$as_echo "$as_me: error: OpenSSL >= 1.0.0 is needed for GOST support, upgrade openssl or rerun with --disable-gost" >&2;}
|
18219 | 20021 |
{ (exit 1); exit 1; }; }
|
18220 | 20022 |
fi
|
18221 | 20023 |
|
|
18228 | 20030 |
no|*)
|
18229 | 20031 |
;;
|
18230 | 20032 |
esac
|
18231 | |
|
18232 | |
# check to see if libraries are needed for these functions.
|
18233 | |
{ $as_echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
|
18234 | |
$as_echo_n "checking for library containing inet_pton... " >&6; }
|
18235 | |
if test "${ac_cv_search_inet_pton+set}" = set; then
|
18236 | |
$as_echo_n "(cached) " >&6
|
18237 | |
else
|
18238 | |
ac_func_search_save_LIBS=$LIBS
|
18239 | |
cat >conftest.$ac_ext <<_ACEOF
|
18240 | |
/* confdefs.h. */
|
18241 | |
_ACEOF
|
18242 | |
cat confdefs.h >>conftest.$ac_ext
|
18243 | |
cat >>conftest.$ac_ext <<_ACEOF
|
18244 | |
/* end confdefs.h. */
|
18245 | |
|
18246 | |
/* Override any GCC internal prototype to avoid an error.
|
18247 | |
Use char because int might match the return type of a GCC
|
18248 | |
builtin and then its argument prototype would still apply. */
|
18249 | |
#ifdef __cplusplus
|
18250 | |
extern "C"
|
18251 | |
#endif
|
18252 | |
char inet_pton ();
|
18253 | |
int
|
18254 | |
main ()
|
18255 | |
{
|
18256 | |
return inet_pton ();
|
18257 | |
;
|
18258 | |
return 0;
|
18259 | |
}
|
18260 | |
_ACEOF
|
18261 | |
for ac_lib in '' nsl; do
|
18262 | |
if test -z "$ac_lib"; then
|
18263 | |
ac_res="none required"
|
18264 | |
else
|
18265 | |
ac_res=-l$ac_lib
|
18266 | |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
18267 | |
fi
|
18268 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
18269 | |
if { (ac_try="$ac_link"
|
18270 | |
case "(($ac_try" in
|
18271 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
18272 | |
*) ac_try_echo=$ac_try;;
|
18273 | |
esac
|
18274 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
18275 | |
$as_echo "$ac_try_echo") >&5
|
18276 | |
(eval "$ac_link") 2>conftest.er1
|
18277 | |
ac_status=$?
|
18278 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
18279 | |
rm -f conftest.er1
|
18280 | |
cat conftest.err >&5
|
18281 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
18282 | |
(exit $ac_status); } && {
|
18283 | |
test -z "$ac_c_werror_flag" ||
|
18284 | |
test ! -s conftest.err
|
18285 | |
} && test -s conftest$ac_exeext && {
|
18286 | |
test "$cross_compiling" = yes ||
|
18287 | |
$as_test_x conftest$ac_exeext
|
18288 | |
}; then
|
18289 | |
ac_cv_search_inet_pton=$ac_res
|
18290 | |
else
|
18291 | |
$as_echo "$as_me: failed program was:" >&5
|
18292 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
18293 | |
|
18294 | |
|
18295 | |
fi
|
18296 | |
|
18297 | |
rm -rf conftest.dSYM
|
18298 | |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
18299 | |
conftest$ac_exeext
|
18300 | |
if test "${ac_cv_search_inet_pton+set}" = set; then
|
18301 | |
break
|
18302 | |
fi
|
18303 | |
done
|
18304 | |
if test "${ac_cv_search_inet_pton+set}" = set; then
|
18305 | |
:
|
18306 | |
else
|
18307 | |
ac_cv_search_inet_pton=no
|
18308 | |
fi
|
18309 | |
rm conftest.$ac_ext
|
18310 | |
LIBS=$ac_func_search_save_LIBS
|
18311 | |
fi
|
18312 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
|
18313 | |
$as_echo "$ac_cv_search_inet_pton" >&6; }
|
18314 | |
ac_res=$ac_cv_search_inet_pton
|
18315 | |
if test "$ac_res" != no; then
|
18316 | |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
18317 | |
|
18318 | |
fi
|
18319 | |
|
18320 | |
{ $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
|
18321 | |
$as_echo_n "checking for library containing socket... " >&6; }
|
18322 | |
if test "${ac_cv_search_socket+set}" = set; then
|
18323 | |
$as_echo_n "(cached) " >&6
|
18324 | |
else
|
18325 | |
ac_func_search_save_LIBS=$LIBS
|
18326 | |
cat >conftest.$ac_ext <<_ACEOF
|
18327 | |
/* confdefs.h. */
|
18328 | |
_ACEOF
|
18329 | |
cat confdefs.h >>conftest.$ac_ext
|
18330 | |
cat >>conftest.$ac_ext <<_ACEOF
|
18331 | |
/* end confdefs.h. */
|
18332 | |
|
18333 | |
/* Override any GCC internal prototype to avoid an error.
|
18334 | |
Use char because int might match the return type of a GCC
|
18335 | |
builtin and then its argument prototype would still apply. */
|
18336 | |
#ifdef __cplusplus
|
18337 | |
extern "C"
|
18338 | |
#endif
|
18339 | |
char socket ();
|
18340 | |
int
|
18341 | |
main ()
|
18342 | |
{
|
18343 | |
return socket ();
|
18344 | |
;
|
18345 | |
return 0;
|
18346 | |
}
|
18347 | |
_ACEOF
|
18348 | |
for ac_lib in '' socket; do
|
18349 | |
if test -z "$ac_lib"; then
|
18350 | |
ac_res="none required"
|
18351 | |
else
|
18352 | |
ac_res=-l$ac_lib
|
18353 | |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
18354 | |
fi
|
18355 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
18356 | |
if { (ac_try="$ac_link"
|
18357 | |
case "(($ac_try" in
|
18358 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
18359 | |
*) ac_try_echo=$ac_try;;
|
18360 | |
esac
|
18361 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
18362 | |
$as_echo "$ac_try_echo") >&5
|
18363 | |
(eval "$ac_link") 2>conftest.er1
|
18364 | |
ac_status=$?
|
18365 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
18366 | |
rm -f conftest.er1
|
18367 | |
cat conftest.err >&5
|
18368 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
18369 | |
(exit $ac_status); } && {
|
18370 | |
test -z "$ac_c_werror_flag" ||
|
18371 | |
test ! -s conftest.err
|
18372 | |
} && test -s conftest$ac_exeext && {
|
18373 | |
test "$cross_compiling" = yes ||
|
18374 | |
$as_test_x conftest$ac_exeext
|
18375 | |
}; then
|
18376 | |
ac_cv_search_socket=$ac_res
|
18377 | |
else
|
18378 | |
$as_echo "$as_me: failed program was:" >&5
|
18379 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
18380 | |
|
18381 | |
|
18382 | |
fi
|
18383 | |
|
18384 | |
rm -rf conftest.dSYM
|
18385 | |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
18386 | |
conftest$ac_exeext
|
18387 | |
if test "${ac_cv_search_socket+set}" = set; then
|
18388 | |
break
|
18389 | |
fi
|
18390 | |
done
|
18391 | |
if test "${ac_cv_search_socket+set}" = set; then
|
18392 | |
:
|
18393 | |
else
|
18394 | |
ac_cv_search_socket=no
|
18395 | |
fi
|
18396 | |
rm conftest.$ac_ext
|
18397 | |
LIBS=$ac_func_search_save_LIBS
|
18398 | |
fi
|
18399 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
|
18400 | |
$as_echo "$ac_cv_search_socket" >&6; }
|
18401 | |
ac_res=$ac_cv_search_socket
|
18402 | |
if test "$ac_res" != no; then
|
18403 | |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
18404 | |
|
18405 | |
fi
|
18406 | |
|
18407 | |
|
18408 | |
|
18409 | 20033 |
|
18410 | 20034 |
# check for libevent
|
18411 | 20035 |
|
|
19560 | 21184 |
fi
|
19561 | 21185 |
|
19562 | 21186 |
|
19563 | |
for ac_header in unistd.h
|
|
21187 |
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
|
|
21188 |
$as_echo_n "checking for getaddrinfo... " >&6; }
|
|
21189 |
ac_cv_func_getaddrinfo=no
|
|
21190 |
cat >conftest.$ac_ext <<_ACEOF
|
|
21191 |
|
|
21192 |
#ifdef __cplusplus
|
|
21193 |
extern "C"
|
|
21194 |
{
|
|
21195 |
#endif
|
|
21196 |
char* getaddrinfo();
|
|
21197 |
char* (*f) () = getaddrinfo;
|
|
21198 |
#ifdef __cplusplus
|
|
21199 |
}
|
|
21200 |
#endif
|
|
21201 |
int main() {
|
|
21202 |
;
|
|
21203 |
return 0;
|
|
21204 |
}
|
|
21205 |
|
|
21206 |
_ACEOF
|
|
21207 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
21208 |
if { (ac_try="$ac_link"
|
|
21209 |
case "(($ac_try" in
|
|
21210 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
21211 |
*) ac_try_echo=$ac_try;;
|
|
21212 |
esac
|
|
21213 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
21214 |
$as_echo "$ac_try_echo") >&5
|
|
21215 |
(eval "$ac_link") 2>conftest.er1
|
|
21216 |
ac_status=$?
|
|
21217 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
21218 |
rm -f conftest.er1
|
|
21219 |
cat conftest.err >&5
|
|
21220 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
21221 |
(exit $ac_status); } && {
|
|
21222 |
test -z "$ac_c_werror_flag" ||
|
|
21223 |
test ! -s conftest.err
|
|
21224 |
} && test -s conftest$ac_exeext && {
|
|
21225 |
test "$cross_compiling" = yes ||
|
|
21226 |
$as_test_x conftest$ac_exeext
|
|
21227 |
}; then
|
|
21228 |
ac_cv_func_getaddrinfo="yes"
|
|
21229 |
else
|
|
21230 |
$as_echo "$as_me: failed program was:" >&5
|
|
21231 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
21232 |
|
|
21233 |
ORIGLIBS="$LIBS"
|
|
21234 |
LIBS="$LIBS -lws2_32"
|
|
21235 |
cat >conftest.$ac_ext <<_ACEOF
|
|
21236 |
/* confdefs.h. */
|
|
21237 |
_ACEOF
|
|
21238 |
cat confdefs.h >>conftest.$ac_ext
|
|
21239 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
21240 |
/* end confdefs.h. */
|
|
21241 |
|
|
21242 |
#ifdef HAVE_WS2TCPIP_H
|
|
21243 |
#include <ws2tcpip.h>
|
|
21244 |
#endif
|
|
21245 |
|
|
21246 |
int
|
|
21247 |
main ()
|
|
21248 |
{
|
|
21249 |
|
|
21250 |
(void)getaddrinfo(NULL, NULL, NULL, NULL);
|
|
21251 |
|
|
21252 |
|
|
21253 |
;
|
|
21254 |
return 0;
|
|
21255 |
}
|
|
21256 |
_ACEOF
|
|
21257 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
21258 |
if { (ac_try="$ac_link"
|
|
21259 |
case "(($ac_try" in
|
|
21260 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
21261 |
*) ac_try_echo=$ac_try;;
|
|
21262 |
esac
|
|
21263 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
21264 |
$as_echo "$ac_try_echo") >&5
|
|
21265 |
(eval "$ac_link") 2>conftest.er1
|
|
21266 |
ac_status=$?
|
|
21267 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
21268 |
rm -f conftest.er1
|
|
21269 |
cat conftest.err >&5
|
|
21270 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
21271 |
(exit $ac_status); } && {
|
|
21272 |
test -z "$ac_c_werror_flag" ||
|
|
21273 |
test ! -s conftest.err
|
|
21274 |
} && test -s conftest$ac_exeext && {
|
|
21275 |
test "$cross_compiling" = yes ||
|
|
21276 |
$as_test_x conftest$ac_exeext
|
|
21277 |
}; then
|
|
21278 |
|
|
21279 |
ac_cv_func_getaddrinfo="yes"
|
|
21280 |
|
|
21281 |
cat >>confdefs.h <<\_ACEOF
|
|
21282 |
#define USE_WINSOCK 1
|
|
21283 |
_ACEOF
|
|
21284 |
|
|
21285 |
USE_WINSOCK="1"
|
|
21286 |
|
|
21287 |
else
|
|
21288 |
$as_echo "$as_me: failed program was:" >&5
|
|
21289 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
21290 |
|
|
21291 |
|
|
21292 |
ac_cv_func_getaddrinfo="no"
|
|
21293 |
LIBS="$ORIGLIBS"
|
|
21294 |
|
|
21295 |
fi
|
|
21296 |
|
|
21297 |
rm -rf conftest.dSYM
|
|
21298 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
21299 |
conftest$ac_exeext conftest.$ac_ext
|
|
21300 |
|
|
21301 |
fi
|
|
21302 |
|
|
21303 |
rm -rf conftest.dSYM
|
|
21304 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
21305 |
conftest$ac_exeext conftest.$ac_ext
|
|
21306 |
|
|
21307 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
|
|
21308 |
$as_echo "$ac_cv_func_getaddrinfo" >&6; }
|
|
21309 |
if test $ac_cv_func_getaddrinfo = yes; then
|
|
21310 |
|
|
21311 |
cat >>confdefs.h <<\_ACEOF
|
|
21312 |
#define HAVE_GETADDRINFO 1
|
|
21313 |
_ACEOF
|
|
21314 |
|
|
21315 |
fi
|
|
21316 |
|
|
21317 |
if test "$USE_WINSOCK" = 1; then
|
|
21318 |
|
|
21319 |
cat >>confdefs.h <<\_ACEOF
|
|
21320 |
#define UB_ON_WINDOWS 1
|
|
21321 |
_ACEOF
|
|
21322 |
|
|
21323 |
UB_ON_WINDOWS=yes
|
|
21324 |
|
|
21325 |
|
|
21326 |
for ac_header in iphlpapi.h
|
19564 | 21327 |
do
|
19565 | 21328 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
19566 | |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
19567 | |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
21329 |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
19568 | 21330 |
$as_echo_n "checking for $ac_header... " >&6; }
|
19569 | 21331 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
19570 | 21332 |
$as_echo_n "(cached) " >&6
|
19571 | |
fi
|
19572 | |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
19573 | |
$as_echo "$as_val"'`
|
19574 | |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
19575 | |
$as_echo "$ac_res" >&6; }
|
19576 | |
else
|
19577 | |
# Is the header compilable?
|
19578 | |
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
19579 | |
$as_echo_n "checking $ac_header usability... " >&6; }
|
19580 | |
cat >conftest.$ac_ext <<_ACEOF
|
|
21333 |
else
|
|
21334 |
cat >conftest.$ac_ext <<_ACEOF
|
19581 | 21335 |
/* confdefs.h. */
|
19582 | 21336 |
_ACEOF
|
19583 | 21337 |
cat confdefs.h >>conftest.$ac_ext
|
19584 | 21338 |
cat >>conftest.$ac_ext <<_ACEOF
|
19585 | 21339 |
/* end confdefs.h. */
|
19586 | 21340 |
$ac_includes_default
|
|
21341 |
#include <windows.h>
|
|
21342 |
|
|
21343 |
|
19587 | 21344 |
#include <$ac_header>
|
19588 | 21345 |
_ACEOF
|
19589 | 21346 |
rm -f conftest.$ac_objext
|
|
19604 | 21361 |
test -z "$ac_c_werror_flag" ||
|
19605 | 21362 |
test ! -s conftest.err
|
19606 | 21363 |
} && test -s conftest.$ac_objext; then
|
19607 | |
ac_header_compiler=yes
|
|
21364 |
eval "$as_ac_Header=yes"
|
19608 | 21365 |
else
|
19609 | 21366 |
$as_echo "$as_me: failed program was:" >&5
|
19610 | 21367 |
sed 's/^/| /' conftest.$ac_ext >&5
|
19611 | 21368 |
|
19612 | |
ac_header_compiler=no
|
|
21369 |
eval "$as_ac_Header=no"
|
19613 | 21370 |
fi
|
19614 | 21371 |
|
19615 | 21372 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19616 | |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
19617 | |
$as_echo "$ac_header_compiler" >&6; }
|
19618 | |
|
19619 | |
# Is the header present?
|
19620 | |
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
19621 | |
$as_echo_n "checking $ac_header presence... " >&6; }
|
19622 | |
cat >conftest.$ac_ext <<_ACEOF
|
19623 | |
/* confdefs.h. */
|
19624 | |
_ACEOF
|
19625 | |
cat confdefs.h >>conftest.$ac_ext
|
19626 | |
cat >>conftest.$ac_ext <<_ACEOF
|
19627 | |
/* end confdefs.h. */
|
19628 | |
#include <$ac_header>
|
19629 | |
_ACEOF
|
19630 | |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
19631 | |
case "(($ac_try" in
|
19632 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19633 | |
*) ac_try_echo=$ac_try;;
|
19634 | |
esac
|
19635 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
19636 | |
$as_echo "$ac_try_echo") >&5
|
19637 | |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
19638 | |
ac_status=$?
|
19639 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
19640 | |
rm -f conftest.er1
|
19641 | |
cat conftest.err >&5
|
19642 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19643 | |
(exit $ac_status); } >/dev/null && {
|
19644 | |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
19645 | |
test ! -s conftest.err
|
19646 | |
}; then
|
19647 | |
ac_header_preproc=yes
|
19648 | |
else
|
19649 | |
$as_echo "$as_me: failed program was:" >&5
|
19650 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
19651 | |
|
19652 | |
ac_header_preproc=no
|
19653 | |
fi
|
19654 | |
|
19655 | |
rm -f conftest.err conftest.$ac_ext
|
19656 | |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
19657 | |
$as_echo "$ac_header_preproc" >&6; }
|
19658 | |
|
19659 | |
# So? What about this header?
|
19660 | |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
19661 | |
yes:no: )
|
19662 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
19663 | |
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
19664 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
19665 | |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
19666 | |
ac_header_preproc=yes
|
19667 | |
;;
|
19668 | |
no:yes:* )
|
19669 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
19670 | |
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
19671 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
19672 | |
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
19673 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
19674 | |
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
19675 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
19676 | |
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
19677 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
19678 | |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
19679 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
19680 | |
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
19681 | |
( cat <<\_ASBOX
|
19682 | |
## ---------------------------------------- ##
|
19683 | |
## Report this to unbound-bugs@nlnetlabs.nl ##
|
19684 | |
## ---------------------------------------- ##
|
19685 | |
_ASBOX
|
19686 | |
) | sed "s/^/$as_me: WARNING: /" >&2
|
19687 | |
;;
|
19688 | |
esac
|
19689 | |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
19690 | |
$as_echo_n "checking for $ac_header... " >&6; }
|
19691 | |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
19692 | |
$as_echo_n "(cached) " >&6
|
19693 | |
else
|
19694 | |
eval "$as_ac_Header=\$ac_header_preproc"
|
19695 | 21373 |
fi
|
19696 | 21374 |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
19697 | 21375 |
$as_echo "$as_val"'`
|
19698 | 21376 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
19699 | 21377 |
$as_echo "$ac_res" >&6; }
|
19700 | |
|
19701 | |
fi
|
19702 | 21378 |
as_val=`eval 'as_val=${'$as_ac_Header'}
|
19703 | 21379 |
$as_echo "$as_val"'`
|
19704 | 21380 |
if test "x$as_val" = x""yes; then
|
|
19710 | 21386 |
|
19711 | 21387 |
done
|
19712 | 21388 |
|
19713 | |
{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
|
19714 | |
$as_echo_n "checking for working chown... " >&6; }
|
19715 | |
if test "${ac_cv_func_chown_works+set}" = set; then
|
|
21389 |
if test -n "$ac_tool_prefix"; then
|
|
21390 |
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
|
|
21391 |
set dummy ${ac_tool_prefix}windres; ac_word=$2
|
|
21392 |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
21393 |
$as_echo_n "checking for $ac_word... " >&6; }
|
|
21394 |
if test "${ac_cv_prog_WINDRES+set}" = set; then
|
19716 | 21395 |
$as_echo_n "(cached) " >&6
|
19717 | 21396 |
else
|
19718 | |
if test "$cross_compiling" = yes; then
|
19719 | |
ac_cv_func_chown_works=no
|
19720 | |
else
|
19721 | |
cat >conftest.$ac_ext <<_ACEOF
|
|
21397 |
if test -n "$WINDRES"; then
|
|
21398 |
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
|
|
21399 |
else
|
|
21400 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
21401 |
for as_dir in $PATH
|
|
21402 |
do
|
|
21403 |
IFS=$as_save_IFS
|
|
21404 |
test -z "$as_dir" && as_dir=.
|
|
21405 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
21406 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
21407 |
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
|
|
21408 |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
21409 |
break 2
|
|
21410 |
fi
|
|
21411 |
done
|
|
21412 |
done
|
|
21413 |
IFS=$as_save_IFS
|
|
21414 |
|
|
21415 |
fi
|
|
21416 |
fi
|
|
21417 |
WINDRES=$ac_cv_prog_WINDRES
|
|
21418 |
if test -n "$WINDRES"; then
|
|
21419 |
{ $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
|
|
21420 |
$as_echo "$WINDRES" >&6; }
|
|
21421 |
else
|
|
21422 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
21423 |
$as_echo "no" >&6; }
|
|
21424 |
fi
|
|
21425 |
|
|
21426 |
|
|
21427 |
fi
|
|
21428 |
if test -z "$ac_cv_prog_WINDRES"; then
|
|
21429 |
ac_ct_WINDRES=$WINDRES
|
|
21430 |
# Extract the first word of "windres", so it can be a program name with args.
|
|
21431 |
set dummy windres; ac_word=$2
|
|
21432 |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
21433 |
$as_echo_n "checking for $ac_word... " >&6; }
|
|
21434 |
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
|
|
21435 |
$as_echo_n "(cached) " >&6
|
|
21436 |
else
|
|
21437 |
if test -n "$ac_ct_WINDRES"; then
|
|
21438 |
ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
|
|
21439 |
else
|
|
21440 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
21441 |
for as_dir in $PATH
|
|
21442 |
do
|
|
21443 |
IFS=$as_save_IFS
|
|
21444 |
test -z "$as_dir" && as_dir=.
|
|
21445 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
21446 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
|
21447 |
ac_cv_prog_ac_ct_WINDRES="windres"
|
|
21448 |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
21449 |
break 2
|
|
21450 |
fi
|
|
21451 |
done
|
|
21452 |
done
|
|
21453 |
IFS=$as_save_IFS
|
|
21454 |
|
|
21455 |
fi
|
|
21456 |
fi
|
|
21457 |
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
|
|
21458 |
if test -n "$ac_ct_WINDRES"; then
|
|
21459 |
{ $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
|
|
21460 |
$as_echo "$ac_ct_WINDRES" >&6; }
|
|
21461 |
else
|
|
21462 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
21463 |
$as_echo "no" >&6; }
|
|
21464 |
fi
|
|
21465 |
|
|
21466 |
if test "x$ac_ct_WINDRES" = x; then
|
|
21467 |
WINDRES=""
|
|
21468 |
else
|
|
21469 |
case $cross_compiling:$ac_tool_warned in
|
|
21470 |
yes:)
|
|
21471 |
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
21472 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
21473 |
ac_tool_warned=yes ;;
|
|
21474 |
esac
|
|
21475 |
WINDRES=$ac_ct_WINDRES
|
|
21476 |
fi
|
|
21477 |
else
|
|
21478 |
WINDRES="$ac_cv_prog_WINDRES"
|
|
21479 |
fi
|
|
21480 |
|
|
21481 |
LIBS="$LIBS -liphlpapi"
|
|
21482 |
fi
|
|
21483 |
if test $ac_cv_func_getaddrinfo = no; then
|
|
21484 |
case " $LIBOBJS " in
|
|
21485 |
*" fake-rfc2553.$ac_objext "* ) ;;
|
|
21486 |
*) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
|
|
21487 |
;;
|
|
21488 |
esac
|
|
21489 |
|
|
21490 |
fi
|
|
21491 |
# check after getaddrinfo for its libraries
|
|
21492 |
|
|
21493 |
# check ioctlsocket
|
|
21494 |
{ $as_echo "$as_me:$LINENO: checking for ioctlsocket" >&5
|
|
21495 |
$as_echo_n "checking for ioctlsocket... " >&6; }
|
|
21496 |
cat >conftest.$ac_ext <<_ACEOF
|
19722 | 21497 |
/* confdefs.h. */
|
19723 | 21498 |
_ACEOF
|
19724 | 21499 |
cat confdefs.h >>conftest.$ac_ext
|
19725 | 21500 |
cat >>conftest.$ac_ext <<_ACEOF
|
19726 | 21501 |
/* end confdefs.h. */
|
19727 | |
$ac_includes_default
|
19728 | |
#include <fcntl.h>
|
|
21502 |
|
|
21503 |
#ifdef HAVE_WINSOCK2_H
|
|
21504 |
#include <winsock2.h>
|
|
21505 |
#endif
|
19729 | 21506 |
|
19730 | 21507 |
int
|
19731 | 21508 |
main ()
|
19732 | 21509 |
{
|
19733 | |
char *f = "conftest.chown";
|
19734 | |
struct stat before, after;
|
19735 | |
|
19736 | |
if (creat (f, 0600) < 0)
|
19737 | |
return 1;
|
19738 | |
if (stat (f, &before) < 0)
|
19739 | |
return 1;
|
19740 | |
if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
|
19741 | |
return 1;
|
19742 | |
if (stat (f, &after) < 0)
|
19743 | |
return 1;
|
19744 | |
return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
|
|
21510 |
|
|
21511 |
(void)ioctlsocket(0, 0, NULL);
|
19745 | 21512 |
|
19746 | 21513 |
;
|
19747 | 21514 |
return 0;
|
19748 | 21515 |
}
|
19749 | 21516 |
_ACEOF
|
19750 | |
rm -f conftest$ac_exeext
|
|
21517 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
19751 | 21518 |
if { (ac_try="$ac_link"
|
19752 | 21519 |
case "(($ac_try" in
|
19753 | 21520 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
19755 | 21522 |
esac
|
19756 | 21523 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
19757 | 21524 |
$as_echo "$ac_try_echo") >&5
|
19758 | |
(eval "$ac_link") 2>&5
|
19759 | |
ac_status=$?
|
19760 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19761 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
19762 | |
{ (case "(($ac_try" in
|
19763 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19764 | |
*) ac_try_echo=$ac_try;;
|
19765 | |
esac
|
19766 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
19767 | |
$as_echo "$ac_try_echo") >&5
|
19768 | |
(eval "$ac_try") 2>&5
|
19769 | |
ac_status=$?
|
19770 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19771 | |
(exit $ac_status); }; }; then
|
19772 | |
ac_cv_func_chown_works=yes
|
19773 | |
else
|
19774 | |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
19775 | |
$as_echo "$as_me: failed program was:" >&5
|
19776 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
19777 | |
|
19778 | |
( exit $ac_status )
|
19779 | |
ac_cv_func_chown_works=no
|
19780 | |
fi
|
19781 | |
rm -rf conftest.dSYM
|
19782 | |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
19783 | |
fi
|
19784 | |
|
19785 | |
|
19786 | |
rm -f conftest.chown
|
19787 | |
|
19788 | |
fi
|
19789 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
|
19790 | |
$as_echo "$ac_cv_func_chown_works" >&6; }
|
19791 | |
if test $ac_cv_func_chown_works = yes; then
|
19792 | |
|
19793 | |
cat >>confdefs.h <<\_ACEOF
|
19794 | |
#define HAVE_CHOWN 1
|
19795 | |
_ACEOF
|
19796 | |
|
19797 | |
fi
|
19798 | |
|
19799 | |
|
19800 | |
for ac_header in vfork.h
|
19801 | |
do
|
19802 | |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
19803 | |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
19804 | |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
19805 | |
$as_echo_n "checking for $ac_header... " >&6; }
|
19806 | |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
19807 | |
$as_echo_n "(cached) " >&6
|
19808 | |
fi
|
19809 | |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
19810 | |
$as_echo "$as_val"'`
|
19811 | |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
19812 | |
$as_echo "$ac_res" >&6; }
|
19813 | |
else
|
19814 | |
# Is the header compilable?
|
19815 | |
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
19816 | |
$as_echo_n "checking $ac_header usability... " >&6; }
|
19817 | |
cat >conftest.$ac_ext <<_ACEOF
|
19818 | |
/* confdefs.h. */
|
19819 | |
_ACEOF
|
19820 | |
cat confdefs.h >>conftest.$ac_ext
|
19821 | |
cat >>conftest.$ac_ext <<_ACEOF
|
19822 | |
/* end confdefs.h. */
|
19823 | |
$ac_includes_default
|
19824 | |
#include <$ac_header>
|
19825 | |
_ACEOF
|
19826 | |
rm -f conftest.$ac_objext
|
19827 | |
if { (ac_try="$ac_compile"
|
19828 | |
case "(($ac_try" in
|
19829 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19830 | |
*) ac_try_echo=$ac_try;;
|
19831 | |
esac
|
19832 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
19833 | |
$as_echo "$ac_try_echo") >&5
|
19834 | |
(eval "$ac_compile") 2>conftest.er1
|
|
21525 |
(eval "$ac_link") 2>conftest.er1
|
19835 | 21526 |
ac_status=$?
|
19836 | 21527 |
grep -v '^ *+' conftest.er1 >conftest.err
|
19837 | 21528 |
rm -f conftest.er1
|
|
19840 | 21531 |
(exit $ac_status); } && {
|
19841 | 21532 |
test -z "$ac_c_werror_flag" ||
|
19842 | 21533 |
test ! -s conftest.err
|
19843 | |
} && test -s conftest.$ac_objext; then
|
19844 | |
ac_header_compiler=yes
|
|
21534 |
} && test -s conftest$ac_exeext && {
|
|
21535 |
test "$cross_compiling" = yes ||
|
|
21536 |
$as_test_x conftest$ac_exeext
|
|
21537 |
}; then
|
|
21538 |
|
|
21539 |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
21540 |
$as_echo "yes" >&6; }
|
|
21541 |
|
|
21542 |
cat >>confdefs.h <<\_ACEOF
|
|
21543 |
#define HAVE_IOCTLSOCKET 1
|
|
21544 |
_ACEOF
|
|
21545 |
|
|
21546 |
|
19845 | 21547 |
else
|
19846 | 21548 |
$as_echo "$as_me: failed program was:" >&5
|
19847 | 21549 |
sed 's/^/| /' conftest.$ac_ext >&5
|
19848 | 21550 |
|
19849 | |
ac_header_compiler=no
|
19850 | |
fi
|
19851 | |
|
19852 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
19853 | |
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
19854 | |
$as_echo "$ac_header_compiler" >&6; }
|
19855 | |
|
19856 | |
# Is the header present?
|
19857 | |
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
19858 | |
$as_echo_n "checking $ac_header presence... " >&6; }
|
19859 | |
cat >conftest.$ac_ext <<_ACEOF
|
19860 | |
/* confdefs.h. */
|
19861 | |
_ACEOF
|
19862 | |
cat confdefs.h >>conftest.$ac_ext
|
19863 | |
cat >>conftest.$ac_ext <<_ACEOF
|
19864 | |
/* end confdefs.h. */
|
19865 | |
#include <$ac_header>
|
19866 | |
_ACEOF
|
19867 | |
if { (ac_try="$ac_cpp conftest.$ac_ext"
|
19868 | |
case "(($ac_try" in
|
19869 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
19870 | |
*) ac_try_echo=$ac_try;;
|
19871 | |
esac
|
19872 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
19873 | |
$as_echo "$ac_try_echo") >&5
|
19874 | |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
19875 | |
ac_status=$?
|
19876 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
19877 | |
rm -f conftest.er1
|
19878 | |
cat conftest.err >&5
|
19879 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19880 | |
(exit $ac_status); } >/dev/null && {
|
19881 | |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
19882 | |
test ! -s conftest.err
|
19883 | |
}; then
|
19884 | |
ac_header_preproc=yes
|
19885 | |
else
|
19886 | |
$as_echo "$as_me: failed program was:" >&5
|
19887 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
19888 | |
|
19889 | |
ac_header_preproc=no
|
19890 | |
fi
|
19891 | |
|
19892 | |
rm -f conftest.err conftest.$ac_ext
|
19893 | |
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
19894 | |
$as_echo "$ac_header_preproc" >&6; }
|
19895 | |
|
19896 | |
# So? What about this header?
|
19897 | |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
19898 | |
yes:no: )
|
19899 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
19900 | |
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
19901 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
19902 | |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
19903 | |
ac_header_preproc=yes
|
19904 | |
;;
|
19905 | |
no:yes:* )
|
19906 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
19907 | |
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
19908 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
19909 | |
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
19910 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
19911 | |
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
19912 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
19913 | |
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
19914 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
19915 | |
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
19916 | |
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
19917 | |
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
19918 | |
( cat <<\_ASBOX
|
19919 | |
## ---------------------------------------- ##
|
19920 | |
## Report this to unbound-bugs@nlnetlabs.nl ##
|
19921 | |
## ---------------------------------------- ##
|
19922 | |
_ASBOX
|
19923 | |
) | sed "s/^/$as_me: WARNING: /" >&2
|
19924 | |
;;
|
19925 | |
esac
|
19926 | |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
19927 | |
$as_echo_n "checking for $ac_header... " >&6; }
|
19928 | |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
19929 | |
$as_echo_n "(cached) " >&6
|
19930 | |
else
|
19931 | |
eval "$as_ac_Header=\$ac_header_preproc"
|
19932 | |
fi
|
19933 | |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
19934 | |
$as_echo "$as_val"'`
|
19935 | |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
19936 | |
$as_echo "$ac_res" >&6; }
|
19937 | |
|
19938 | |
fi
|
19939 | |
as_val=`eval 'as_val=${'$as_ac_Header'}
|
19940 | |
$as_echo "$as_val"'`
|
19941 | |
if test "x$as_val" = x""yes; then
|
19942 | |
cat >>confdefs.h <<_ACEOF
|
19943 | |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
19944 | |
_ACEOF
|
19945 | |
|
19946 | |
fi
|
19947 | |
|
19948 | |
done
|
19949 | |
|
19950 | |
|
19951 | |
|
19952 | |
for ac_func in fork vfork
|
|
21551 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
21552 |
$as_echo "no" >&6; }
|
|
21553 |
fi
|
|
21554 |
|
|
21555 |
rm -rf conftest.dSYM
|
|
21556 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
21557 |
conftest$ac_exeext conftest.$ac_ext
|
|
21558 |
|
|
21559 |
|
|
21560 |
# see if daemon(3) exists, and if it is deprecated.
|
|
21561 |
|
|
21562 |
for ac_func in daemon
|
19953 | 21563 |
do
|
19954 | 21564 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
19955 | 21565 |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
20049 | 21659 |
fi
|
20050 | 21660 |
done
|
20051 | 21661 |
|
20052 | |
if test "x$ac_cv_func_fork" = xyes; then
|
20053 | |
{ $as_echo "$as_me:$LINENO: checking for working fork" >&5
|
20054 | |
$as_echo_n "checking for working fork... " >&6; }
|
20055 | |
if test "${ac_cv_func_fork_works+set}" = set; then
|
|
21662 |
if test $ac_cv_func_daemon = yes; then
|
|
21663 |
|
|
21664 |
|
|
21665 |
{ $as_echo "$as_me:$LINENO: checking if daemon is deprecated" >&5
|
|
21666 |
$as_echo_n "checking if daemon is deprecated... " >&6; }
|
|
21667 |
cache=`echo daemon | sed 'y%.=/+-%___p_%'`
|
|
21668 |
if { as_var=cv_cc_deprecated_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
|
20056 | 21669 |
$as_echo_n "(cached) " >&6
|
20057 | 21670 |
else
|
20058 | |
if test "$cross_compiling" = yes; then
|
20059 | |
ac_cv_func_fork_works=cross
|
20060 | |
else
|
20061 | |
cat >conftest.$ac_ext <<_ACEOF
|
|
21671 |
|
|
21672 |
echo '
|
|
21673 |
#include <stdlib.h>
|
|
21674 |
' >conftest.c
|
|
21675 |
echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
|
|
21676 |
if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
|
|
21677 |
eval "cv_cc_deprecated_$cache=no"
|
|
21678 |
else
|
|
21679 |
eval "cv_cc_deprecated_$cache=yes"
|
|
21680 |
fi
|
|
21681 |
rm -f conftest conftest.o conftest.c
|
|
21682 |
|
|
21683 |
fi
|
|
21684 |
|
|
21685 |
if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
|
|
21686 |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
|
21687 |
$as_echo "yes" >&6; }
|
|
21688 |
|
|
21689 |
cat >>confdefs.h <<_ACEOF
|
|
21690 |
#define DEPRECATED_DAEMON 1
|
|
21691 |
_ACEOF
|
|
21692 |
|
|
21693 |
:
|
|
21694 |
|
|
21695 |
else
|
|
21696 |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
|
21697 |
$as_echo "no" >&6; }
|
|
21698 |
:
|
|
21699 |
|
|
21700 |
fi
|
|
21701 |
|
|
21702 |
fi
|
|
21703 |
|
|
21704 |
{ $as_echo "$as_me:$LINENO: checking for library containing setusercontext" >&5
|
|
21705 |
$as_echo_n "checking for library containing setusercontext... " >&6; }
|
|
21706 |
if test "${ac_cv_search_setusercontext+set}" = set; then
|
|
21707 |
$as_echo_n "(cached) " >&6
|
|
21708 |
else
|
|
21709 |
ac_func_search_save_LIBS=$LIBS
|
|
21710 |
cat >conftest.$ac_ext <<_ACEOF
|
20062 | 21711 |
/* confdefs.h. */
|
20063 | 21712 |
_ACEOF
|
20064 | 21713 |
cat confdefs.h >>conftest.$ac_ext
|
20065 | 21714 |
cat >>conftest.$ac_ext <<_ACEOF
|
20066 | 21715 |
/* end confdefs.h. */
|
20067 | |
$ac_includes_default
|
|
21716 |
|
|
21717 |
/* Override any GCC internal prototype to avoid an error.
|
|
21718 |
Use char because int might match the return type of a GCC
|
|
21719 |
builtin and then its argument prototype would still apply. */
|
|
21720 |
#ifdef __cplusplus
|
|
21721 |
extern "C"
|
|
21722 |
#endif
|
|
21723 |
char setusercontext ();
|
20068 | 21724 |
int
|
20069 | 21725 |
main ()
|
20070 | 21726 |
{
|
20071 | |
|
20072 | |
/* By Ruediger Kuhlmann. */
|
20073 | |
return fork () < 0;
|
20074 | |
|
|
21727 |
return setusercontext ();
|
20075 | 21728 |
;
|
20076 | 21729 |
return 0;
|
20077 | 21730 |
}
|
20078 | 21731 |
_ACEOF
|
20079 | |
rm -f conftest$ac_exeext
|
20080 | |
if { (ac_try="$ac_link"
|
20081 | |
case "(($ac_try" in
|
20082 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20083 | |
*) ac_try_echo=$ac_try;;
|
20084 | |
esac
|
20085 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20086 | |
$as_echo "$ac_try_echo") >&5
|
20087 | |
(eval "$ac_link") 2>&5
|
20088 | |
ac_status=$?
|
20089 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20090 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
20091 | |
{ (case "(($ac_try" in
|
20092 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20093 | |
*) ac_try_echo=$ac_try;;
|
20094 | |
esac
|
20095 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20096 | |
$as_echo "$ac_try_echo") >&5
|
20097 | |
(eval "$ac_try") 2>&5
|
20098 | |
ac_status=$?
|
20099 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20100 | |
(exit $ac_status); }; }; then
|
20101 | |
ac_cv_func_fork_works=yes
|
20102 | |
else
|
20103 | |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
20104 | |
$as_echo "$as_me: failed program was:" >&5
|
20105 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20106 | |
|
20107 | |
( exit $ac_status )
|
20108 | |
ac_cv_func_fork_works=no
|
20109 | |
fi
|
20110 | |
rm -rf conftest.dSYM
|
20111 | |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
20112 | |
fi
|
20113 | |
|
20114 | |
|
20115 | |
fi
|
20116 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
|
20117 | |
$as_echo "$ac_cv_func_fork_works" >&6; }
|
20118 | |
|
20119 | |
else
|
20120 | |
ac_cv_func_fork_works=$ac_cv_func_fork
|
20121 | |
fi
|
20122 | |
if test "x$ac_cv_func_fork_works" = xcross; then
|
20123 | |
case $host in
|
20124 | |
*-*-amigaos* | *-*-msdosdjgpp*)
|
20125 | |
# Override, as these systems have only a dummy fork() stub
|
20126 | |
ac_cv_func_fork_works=no
|
20127 | |
;;
|
20128 | |
*)
|
20129 | |
ac_cv_func_fork_works=yes
|
20130 | |
;;
|
20131 | |
esac
|
20132 | |
{ $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
|
20133 | |
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
|
20134 | |
fi
|
20135 | |
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
20136 | |
if test "x$ac_cv_func_vfork" = xyes; then
|
20137 | |
{ $as_echo "$as_me:$LINENO: checking for working vfork" >&5
|
20138 | |
$as_echo_n "checking for working vfork... " >&6; }
|
20139 | |
if test "${ac_cv_func_vfork_works+set}" = set; then
|
20140 | |
$as_echo_n "(cached) " >&6
|
20141 | |
else
|
20142 | |
if test "$cross_compiling" = yes; then
|
20143 | |
ac_cv_func_vfork_works=cross
|
20144 | |
else
|
20145 | |
cat >conftest.$ac_ext <<_ACEOF
|
20146 | |
/* confdefs.h. */
|
20147 | |
_ACEOF
|
20148 | |
cat confdefs.h >>conftest.$ac_ext
|
20149 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20150 | |
/* end confdefs.h. */
|
20151 | |
/* Thanks to Paul Eggert for this test. */
|
20152 | |
$ac_includes_default
|
20153 | |
#include <sys/wait.h>
|
20154 | |
#ifdef HAVE_VFORK_H
|
20155 | |
# include <vfork.h>
|
20156 | |
#endif
|
20157 | |
/* On some sparc systems, changes by the child to local and incoming
|
20158 | |
argument registers are propagated back to the parent. The compiler
|
20159 | |
is told about this with #include <vfork.h>, but some compilers
|
20160 | |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
|
20161 | |
static variable whose address is put into a register that is
|
20162 | |
clobbered by the vfork. */
|
20163 | |
static void
|
20164 | |
#ifdef __cplusplus
|
20165 | |
sparc_address_test (int arg)
|
20166 | |
# else
|
20167 | |
sparc_address_test (arg) int arg;
|
20168 | |
#endif
|
20169 | |
{
|
20170 | |
static pid_t child;
|
20171 | |
if (!child) {
|
20172 | |
child = vfork ();
|
20173 | |
if (child < 0) {
|
20174 | |
perror ("vfork");
|
20175 | |
_exit(2);
|
20176 | |
}
|
20177 | |
if (!child) {
|
20178 | |
arg = getpid();
|
20179 | |
write(-1, "", 0);
|
20180 | |
_exit (arg);
|
20181 | |
}
|
20182 | |
}
|
20183 | |
}
|
20184 | |
|
20185 | |
int
|
20186 | |
main ()
|
20187 | |
{
|
20188 | |
pid_t parent = getpid ();
|
20189 | |
pid_t child;
|
20190 | |
|
20191 | |
sparc_address_test (0);
|
20192 | |
|
20193 | |
child = vfork ();
|
20194 | |
|
20195 | |
if (child == 0) {
|
20196 | |
/* Here is another test for sparc vfork register problems. This
|
20197 | |
test uses lots of local variables, at least as many local
|
20198 | |
variables as main has allocated so far including compiler
|
20199 | |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
|
20200 | |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
|
20201 | |
reuse the register of parent for one of the local variables,
|
20202 | |
since it will think that parent can't possibly be used any more
|
20203 | |
in this routine. Assigning to the local variable will thus
|
20204 | |
munge parent in the parent process. */
|
20205 | |
pid_t
|
20206 | |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
20207 | |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
20208 | |
/* Convince the compiler that p..p7 are live; otherwise, it might
|
20209 | |
use the same hardware register for all 8 local variables. */
|
20210 | |
if (p != p1 || p != p2 || p != p3 || p != p4
|
20211 | |
|| p != p5 || p != p6 || p != p7)
|
20212 | |
_exit(1);
|
20213 | |
|
20214 | |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
|
20215 | |
from child file descriptors. If the child closes a descriptor
|
20216 | |
before it execs or exits, this munges the parent's descriptor
|
20217 | |
as well. Test for this by closing stdout in the child. */
|
20218 | |
_exit(close(fileno(stdout)) != 0);
|
20219 | |
} else {
|
20220 | |
int status;
|
20221 | |
struct stat st;
|
20222 | |
|
20223 | |
while (wait(&status) != child)
|
20224 | |
;
|
20225 | |
return (
|
20226 | |
/* Was there some problem with vforking? */
|
20227 | |
child < 0
|
20228 | |
|
20229 | |
/* Did the child fail? (This shouldn't happen.) */
|
20230 | |
|| status
|
20231 | |
|
20232 | |
/* Did the vfork/compiler bug occur? */
|
20233 | |
|| parent != getpid()
|
20234 | |
|
20235 | |
/* Did the file descriptor bug occur? */
|
20236 | |
|| fstat(fileno(stdout), &st) != 0
|
20237 | |
);
|
20238 | |
}
|
20239 | |
}
|
20240 | |
_ACEOF
|
20241 | |
rm -f conftest$ac_exeext
|
20242 | |
if { (ac_try="$ac_link"
|
20243 | |
case "(($ac_try" in
|
20244 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20245 | |
*) ac_try_echo=$ac_try;;
|
20246 | |
esac
|
20247 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20248 | |
$as_echo "$ac_try_echo") >&5
|
20249 | |
(eval "$ac_link") 2>&5
|
20250 | |
ac_status=$?
|
20251 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20252 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
20253 | |
{ (case "(($ac_try" in
|
20254 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20255 | |
*) ac_try_echo=$ac_try;;
|
20256 | |
esac
|
20257 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20258 | |
$as_echo "$ac_try_echo") >&5
|
20259 | |
(eval "$ac_try") 2>&5
|
20260 | |
ac_status=$?
|
20261 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20262 | |
(exit $ac_status); }; }; then
|
20263 | |
ac_cv_func_vfork_works=yes
|
20264 | |
else
|
20265 | |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
20266 | |
$as_echo "$as_me: failed program was:" >&5
|
20267 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20268 | |
|
20269 | |
( exit $ac_status )
|
20270 | |
ac_cv_func_vfork_works=no
|
20271 | |
fi
|
20272 | |
rm -rf conftest.dSYM
|
20273 | |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
20274 | |
fi
|
20275 | |
|
20276 | |
|
20277 | |
fi
|
20278 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
|
20279 | |
$as_echo "$ac_cv_func_vfork_works" >&6; }
|
20280 | |
|
20281 | |
fi;
|
20282 | |
if test "x$ac_cv_func_fork_works" = xcross; then
|
20283 | |
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
20284 | |
{ $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
|
20285 | |
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
|
20286 | |
fi
|
20287 | |
|
20288 | |
if test "x$ac_cv_func_vfork_works" = xyes; then
|
20289 | |
|
20290 | |
cat >>confdefs.h <<\_ACEOF
|
20291 | |
#define HAVE_WORKING_VFORK 1
|
20292 | |
_ACEOF
|
20293 | |
|
20294 | |
else
|
20295 | |
|
20296 | |
cat >>confdefs.h <<\_ACEOF
|
20297 | |
#define vfork fork
|
20298 | |
_ACEOF
|
20299 | |
|
20300 | |
fi
|
20301 | |
if test "x$ac_cv_func_fork_works" = xyes; then
|
20302 | |
|
20303 | |
cat >>confdefs.h <<\_ACEOF
|
20304 | |
#define HAVE_WORKING_FORK 1
|
20305 | |
_ACEOF
|
20306 | |
|
20307 | |
fi
|
20308 | |
|
20309 | |
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
20310 | |
$as_echo_n "checking return type of signal handlers... " >&6; }
|
20311 | |
if test "${ac_cv_type_signal+set}" = set; then
|
20312 | |
$as_echo_n "(cached) " >&6
|
20313 | |
else
|
20314 | |
cat >conftest.$ac_ext <<_ACEOF
|
20315 | |
/* confdefs.h. */
|
20316 | |
_ACEOF
|
20317 | |
cat confdefs.h >>conftest.$ac_ext
|
20318 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20319 | |
/* end confdefs.h. */
|
20320 | |
#include <sys/types.h>
|
20321 | |
#include <signal.h>
|
20322 | |
|
20323 | |
int
|
20324 | |
main ()
|
20325 | |
{
|
20326 | |
return *(signal (0, 0)) (0) == 1;
|
20327 | |
;
|
20328 | |
return 0;
|
20329 | |
}
|
20330 | |
_ACEOF
|
20331 | |
rm -f conftest.$ac_objext
|
20332 | |
if { (ac_try="$ac_compile"
|
20333 | |
case "(($ac_try" in
|
20334 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20335 | |
*) ac_try_echo=$ac_try;;
|
20336 | |
esac
|
20337 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20338 | |
$as_echo "$ac_try_echo") >&5
|
20339 | |
(eval "$ac_compile") 2>conftest.er1
|
20340 | |
ac_status=$?
|
20341 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20342 | |
rm -f conftest.er1
|
20343 | |
cat conftest.err >&5
|
20344 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20345 | |
(exit $ac_status); } && {
|
20346 | |
test -z "$ac_c_werror_flag" ||
|
20347 | |
test ! -s conftest.err
|
20348 | |
} && test -s conftest.$ac_objext; then
|
20349 | |
ac_cv_type_signal=int
|
20350 | |
else
|
20351 | |
$as_echo "$as_me: failed program was:" >&5
|
20352 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20353 | |
|
20354 | |
ac_cv_type_signal=void
|
20355 | |
fi
|
20356 | |
|
20357 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20358 | |
fi
|
20359 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
20360 | |
$as_echo "$ac_cv_type_signal" >&6; }
|
20361 | |
|
20362 | |
cat >>confdefs.h <<_ACEOF
|
20363 | |
#define RETSIGTYPE $ac_cv_type_signal
|
20364 | |
_ACEOF
|
20365 | |
|
20366 | |
|
20367 | |
{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
|
20368 | |
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
|
20369 | |
if test "${ac_cv_sys_largefile_source+set}" = set; then
|
20370 | |
$as_echo_n "(cached) " >&6
|
20371 | |
else
|
20372 | |
while :; do
|
20373 | |
cat >conftest.$ac_ext <<_ACEOF
|
20374 | |
/* confdefs.h. */
|
20375 | |
_ACEOF
|
20376 | |
cat confdefs.h >>conftest.$ac_ext
|
20377 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20378 | |
/* end confdefs.h. */
|
20379 | |
#include <sys/types.h> /* for off_t */
|
20380 | |
#include <stdio.h>
|
20381 | |
int
|
20382 | |
main ()
|
20383 | |
{
|
20384 | |
int (*fp) (FILE *, off_t, int) = fseeko;
|
20385 | |
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
|
20386 | |
;
|
20387 | |
return 0;
|
20388 | |
}
|
20389 | |
_ACEOF
|
20390 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
21732 |
for ac_lib in '' util; do
|
|
21733 |
if test -z "$ac_lib"; then
|
|
21734 |
ac_res="none required"
|
|
21735 |
else
|
|
21736 |
ac_res=-l$ac_lib
|
|
21737 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
21738 |
fi
|
|
21739 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20391 | 21740 |
if { (ac_try="$ac_link"
|
20392 | 21741 |
case "(($ac_try" in
|
20393 | 21742 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
20408 | 21757 |
test "$cross_compiling" = yes ||
|
20409 | 21758 |
$as_test_x conftest$ac_exeext
|
20410 | 21759 |
}; then
|
20411 | |
ac_cv_sys_largefile_source=no; break
|
|
21760 |
ac_cv_search_setusercontext=$ac_res
|
20412 | 21761 |
else
|
20413 | 21762 |
$as_echo "$as_me: failed program was:" >&5
|
20414 | 21763 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
20418 | 21767 |
|
20419 | 21768 |
rm -rf conftest.dSYM
|
20420 | 21769 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20421 | |
conftest$ac_exeext conftest.$ac_ext
|
20422 | |
cat >conftest.$ac_ext <<_ACEOF
|
20423 | |
/* confdefs.h. */
|
20424 | |
_ACEOF
|
20425 | |
cat confdefs.h >>conftest.$ac_ext
|
20426 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20427 | |
/* end confdefs.h. */
|
20428 | |
#define _LARGEFILE_SOURCE 1
|
20429 | |
#include <sys/types.h> /* for off_t */
|
20430 | |
#include <stdio.h>
|
20431 | |
int
|
20432 | |
main ()
|
20433 | |
{
|
20434 | |
int (*fp) (FILE *, off_t, int) = fseeko;
|
20435 | |
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
|
20436 | |
;
|
20437 | |
return 0;
|
20438 | |
}
|
20439 | |
_ACEOF
|
20440 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20441 | |
if { (ac_try="$ac_link"
|
20442 | |
case "(($ac_try" in
|
20443 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20444 | |
*) ac_try_echo=$ac_try;;
|
20445 | |
esac
|
20446 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20447 | |
$as_echo "$ac_try_echo") >&5
|
20448 | |
(eval "$ac_link") 2>conftest.er1
|
20449 | |
ac_status=$?
|
20450 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20451 | |
rm -f conftest.er1
|
20452 | |
cat conftest.err >&5
|
20453 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20454 | |
(exit $ac_status); } && {
|
20455 | |
test -z "$ac_c_werror_flag" ||
|
20456 | |
test ! -s conftest.err
|
20457 | |
} && test -s conftest$ac_exeext && {
|
20458 | |
test "$cross_compiling" = yes ||
|
20459 | |
$as_test_x conftest$ac_exeext
|
20460 | |
}; then
|
20461 | |
ac_cv_sys_largefile_source=1; break
|
20462 | |
else
|
20463 | |
$as_echo "$as_me: failed program was:" >&5
|
20464 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20465 | |
|
20466 | |
|
20467 | |
fi
|
20468 | |
|
20469 | |
rm -rf conftest.dSYM
|
20470 | |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
20471 | |
conftest$ac_exeext conftest.$ac_ext
|
20472 | |
ac_cv_sys_largefile_source=unknown
|
|
21770 |
conftest$ac_exeext
|
|
21771 |
if test "${ac_cv_search_setusercontext+set}" = set; then
|
20473 | 21772 |
break
|
|
21773 |
fi
|
20474 | 21774 |
done
|
20475 | |
fi
|
20476 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
|
20477 | |
$as_echo "$ac_cv_sys_largefile_source" >&6; }
|
20478 | |
case $ac_cv_sys_largefile_source in #(
|
20479 | |
no | unknown) ;;
|
20480 | |
*)
|
20481 | |
cat >>confdefs.h <<_ACEOF
|
20482 | |
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
|
20483 | |
_ACEOF
|
20484 | |
;;
|
20485 | |
esac
|
20486 | |
rm -rf conftest*
|
20487 | |
|
20488 | |
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
|
20489 | |
# in glibc 2.1.3, but that breaks too many other things.
|
20490 | |
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
|
20491 | |
if test $ac_cv_sys_largefile_source != unknown; then
|
20492 | |
|
20493 | |
cat >>confdefs.h <<\_ACEOF
|
20494 | |
#define HAVE_FSEEKO 1
|
20495 | |
_ACEOF
|
20496 | |
|
20497 | |
fi
|
20498 | |
|
20499 | |
|
20500 | |
# Check whether --enable-largefile was given.
|
20501 | |
if test "${enable_largefile+set}" = set; then
|
20502 | |
enableval=$enable_largefile;
|
20503 | |
fi
|
20504 | |
|
20505 | |
if test "$enable_largefile" != no; then
|
20506 | |
|
20507 | |
{ $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
|
20508 | |
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
20509 | |
if test "${ac_cv_sys_largefile_CC+set}" = set; then
|
20510 | |
$as_echo_n "(cached) " >&6
|
20511 | |
else
|
20512 | |
ac_cv_sys_largefile_CC=no
|
20513 | |
if test "$GCC" != yes; then
|
20514 | |
ac_save_CC=$CC
|
20515 | |
while :; do
|
20516 | |
# IRIX 6.2 and later do not support large files by default,
|
20517 | |
# so use the C compiler's -n32 option if that helps.
|
20518 | |
cat >conftest.$ac_ext <<_ACEOF
|
20519 | |
/* confdefs.h. */
|
20520 | |
_ACEOF
|
20521 | |
cat confdefs.h >>conftest.$ac_ext
|
20522 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20523 | |
/* end confdefs.h. */
|
20524 | |
#include <sys/types.h>
|
20525 | |
/* Check that off_t can represent 2**63 - 1 correctly.
|
20526 | |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
20527 | |
since some C++ compilers masquerading as C compilers
|
20528 | |
incorrectly reject 9223372036854775807. */
|
20529 | |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
20530 | |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
20531 | |
&& LARGE_OFF_T % 2147483647 == 1)
|
20532 | |
? 1 : -1];
|
20533 | |
int
|
20534 | |
main ()
|
20535 | |
{
|
20536 | |
|
20537 | |
;
|
20538 | |
return 0;
|
20539 | |
}
|
20540 | |
_ACEOF
|
20541 | |
rm -f conftest.$ac_objext
|
20542 | |
if { (ac_try="$ac_compile"
|
20543 | |
case "(($ac_try" in
|
20544 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20545 | |
*) ac_try_echo=$ac_try;;
|
20546 | |
esac
|
20547 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20548 | |
$as_echo "$ac_try_echo") >&5
|
20549 | |
(eval "$ac_compile") 2>conftest.er1
|
20550 | |
ac_status=$?
|
20551 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20552 | |
rm -f conftest.er1
|
20553 | |
cat conftest.err >&5
|
20554 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20555 | |
(exit $ac_status); } && {
|
20556 | |
test -z "$ac_c_werror_flag" ||
|
20557 | |
test ! -s conftest.err
|
20558 | |
} && test -s conftest.$ac_objext; then
|
20559 | |
break
|
20560 | |
else
|
20561 | |
$as_echo "$as_me: failed program was:" >&5
|
20562 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20563 | |
|
20564 | |
|
20565 | |
fi
|
20566 | |
|
20567 | |
rm -f core conftest.err conftest.$ac_objext
|
20568 | |
CC="$CC -n32"
|
20569 | |
rm -f conftest.$ac_objext
|
20570 | |
if { (ac_try="$ac_compile"
|
20571 | |
case "(($ac_try" in
|
20572 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20573 | |
*) ac_try_echo=$ac_try;;
|
20574 | |
esac
|
20575 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20576 | |
$as_echo "$ac_try_echo") >&5
|
20577 | |
(eval "$ac_compile") 2>conftest.er1
|
20578 | |
ac_status=$?
|
20579 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20580 | |
rm -f conftest.er1
|
20581 | |
cat conftest.err >&5
|
20582 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20583 | |
(exit $ac_status); } && {
|
20584 | |
test -z "$ac_c_werror_flag" ||
|
20585 | |
test ! -s conftest.err
|
20586 | |
} && test -s conftest.$ac_objext; then
|
20587 | |
ac_cv_sys_largefile_CC=' -n32'; break
|
20588 | |
else
|
20589 | |
$as_echo "$as_me: failed program was:" >&5
|
20590 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20591 | |
|
20592 | |
|
20593 | |
fi
|
20594 | |
|
20595 | |
rm -f core conftest.err conftest.$ac_objext
|
20596 | |
break
|
20597 | |
done
|
20598 | |
CC=$ac_save_CC
|
20599 | |
rm -f conftest.$ac_ext
|
20600 | |
fi
|
20601 | |
fi
|
20602 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
|
20603 | |
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
20604 | |
if test "$ac_cv_sys_largefile_CC" != no; then
|
20605 | |
CC=$CC$ac_cv_sys_largefile_CC
|
20606 | |
fi
|
20607 | |
|
20608 | |
{ $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
20609 | |
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
20610 | |
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
|
20611 | |
$as_echo_n "(cached) " >&6
|
20612 | |
else
|
20613 | |
while :; do
|
20614 | |
cat >conftest.$ac_ext <<_ACEOF
|
20615 | |
/* confdefs.h. */
|
20616 | |
_ACEOF
|
20617 | |
cat confdefs.h >>conftest.$ac_ext
|
20618 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20619 | |
/* end confdefs.h. */
|
20620 | |
#include <sys/types.h>
|
20621 | |
/* Check that off_t can represent 2**63 - 1 correctly.
|
20622 | |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
20623 | |
since some C++ compilers masquerading as C compilers
|
20624 | |
incorrectly reject 9223372036854775807. */
|
20625 | |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
20626 | |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
20627 | |
&& LARGE_OFF_T % 2147483647 == 1)
|
20628 | |
? 1 : -1];
|
20629 | |
int
|
20630 | |
main ()
|
20631 | |
{
|
20632 | |
|
20633 | |
;
|
20634 | |
return 0;
|
20635 | |
}
|
20636 | |
_ACEOF
|
20637 | |
rm -f conftest.$ac_objext
|
20638 | |
if { (ac_try="$ac_compile"
|
20639 | |
case "(($ac_try" in
|
20640 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20641 | |
*) ac_try_echo=$ac_try;;
|
20642 | |
esac
|
20643 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20644 | |
$as_echo "$ac_try_echo") >&5
|
20645 | |
(eval "$ac_compile") 2>conftest.er1
|
20646 | |
ac_status=$?
|
20647 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20648 | |
rm -f conftest.er1
|
20649 | |
cat conftest.err >&5
|
20650 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20651 | |
(exit $ac_status); } && {
|
20652 | |
test -z "$ac_c_werror_flag" ||
|
20653 | |
test ! -s conftest.err
|
20654 | |
} && test -s conftest.$ac_objext; then
|
20655 | |
ac_cv_sys_file_offset_bits=no; break
|
20656 | |
else
|
20657 | |
$as_echo "$as_me: failed program was:" >&5
|
20658 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20659 | |
|
20660 | |
|
20661 | |
fi
|
20662 | |
|
20663 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20664 | |
cat >conftest.$ac_ext <<_ACEOF
|
20665 | |
/* confdefs.h. */
|
20666 | |
_ACEOF
|
20667 | |
cat confdefs.h >>conftest.$ac_ext
|
20668 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20669 | |
/* end confdefs.h. */
|
20670 | |
#define _FILE_OFFSET_BITS 64
|
20671 | |
#include <sys/types.h>
|
20672 | |
/* Check that off_t can represent 2**63 - 1 correctly.
|
20673 | |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
20674 | |
since some C++ compilers masquerading as C compilers
|
20675 | |
incorrectly reject 9223372036854775807. */
|
20676 | |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
20677 | |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
20678 | |
&& LARGE_OFF_T % 2147483647 == 1)
|
20679 | |
? 1 : -1];
|
20680 | |
int
|
20681 | |
main ()
|
20682 | |
{
|
20683 | |
|
20684 | |
;
|
20685 | |
return 0;
|
20686 | |
}
|
20687 | |
_ACEOF
|
20688 | |
rm -f conftest.$ac_objext
|
20689 | |
if { (ac_try="$ac_compile"
|
20690 | |
case "(($ac_try" in
|
20691 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20692 | |
*) ac_try_echo=$ac_try;;
|
20693 | |
esac
|
20694 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20695 | |
$as_echo "$ac_try_echo") >&5
|
20696 | |
(eval "$ac_compile") 2>conftest.er1
|
20697 | |
ac_status=$?
|
20698 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20699 | |
rm -f conftest.er1
|
20700 | |
cat conftest.err >&5
|
20701 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20702 | |
(exit $ac_status); } && {
|
20703 | |
test -z "$ac_c_werror_flag" ||
|
20704 | |
test ! -s conftest.err
|
20705 | |
} && test -s conftest.$ac_objext; then
|
20706 | |
ac_cv_sys_file_offset_bits=64; break
|
20707 | |
else
|
20708 | |
$as_echo "$as_me: failed program was:" >&5
|
20709 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20710 | |
|
20711 | |
|
20712 | |
fi
|
20713 | |
|
20714 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20715 | |
ac_cv_sys_file_offset_bits=unknown
|
20716 | |
break
|
20717 | |
done
|
20718 | |
fi
|
20719 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
|
20720 | |
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
20721 | |
case $ac_cv_sys_file_offset_bits in #(
|
20722 | |
no | unknown) ;;
|
20723 | |
*)
|
20724 | |
cat >>confdefs.h <<_ACEOF
|
20725 | |
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
20726 | |
_ACEOF
|
20727 | |
;;
|
20728 | |
esac
|
20729 | |
rm -rf conftest*
|
20730 | |
if test $ac_cv_sys_file_offset_bits = unknown; then
|
20731 | |
{ $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
|
20732 | |
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
20733 | |
if test "${ac_cv_sys_large_files+set}" = set; then
|
20734 | |
$as_echo_n "(cached) " >&6
|
20735 | |
else
|
20736 | |
while :; do
|
20737 | |
cat >conftest.$ac_ext <<_ACEOF
|
20738 | |
/* confdefs.h. */
|
20739 | |
_ACEOF
|
20740 | |
cat confdefs.h >>conftest.$ac_ext
|
20741 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20742 | |
/* end confdefs.h. */
|
20743 | |
#include <sys/types.h>
|
20744 | |
/* Check that off_t can represent 2**63 - 1 correctly.
|
20745 | |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
20746 | |
since some C++ compilers masquerading as C compilers
|
20747 | |
incorrectly reject 9223372036854775807. */
|
20748 | |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
20749 | |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
20750 | |
&& LARGE_OFF_T % 2147483647 == 1)
|
20751 | |
? 1 : -1];
|
20752 | |
int
|
20753 | |
main ()
|
20754 | |
{
|
20755 | |
|
20756 | |
;
|
20757 | |
return 0;
|
20758 | |
}
|
20759 | |
_ACEOF
|
20760 | |
rm -f conftest.$ac_objext
|
20761 | |
if { (ac_try="$ac_compile"
|
20762 | |
case "(($ac_try" in
|
20763 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20764 | |
*) ac_try_echo=$ac_try;;
|
20765 | |
esac
|
20766 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20767 | |
$as_echo "$ac_try_echo") >&5
|
20768 | |
(eval "$ac_compile") 2>conftest.er1
|
20769 | |
ac_status=$?
|
20770 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20771 | |
rm -f conftest.er1
|
20772 | |
cat conftest.err >&5
|
20773 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20774 | |
(exit $ac_status); } && {
|
20775 | |
test -z "$ac_c_werror_flag" ||
|
20776 | |
test ! -s conftest.err
|
20777 | |
} && test -s conftest.$ac_objext; then
|
20778 | |
ac_cv_sys_large_files=no; break
|
20779 | |
else
|
20780 | |
$as_echo "$as_me: failed program was:" >&5
|
20781 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20782 | |
|
20783 | |
|
20784 | |
fi
|
20785 | |
|
20786 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20787 | |
cat >conftest.$ac_ext <<_ACEOF
|
20788 | |
/* confdefs.h. */
|
20789 | |
_ACEOF
|
20790 | |
cat confdefs.h >>conftest.$ac_ext
|
20791 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20792 | |
/* end confdefs.h. */
|
20793 | |
#define _LARGE_FILES 1
|
20794 | |
#include <sys/types.h>
|
20795 | |
/* Check that off_t can represent 2**63 - 1 correctly.
|
20796 | |
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
20797 | |
since some C++ compilers masquerading as C compilers
|
20798 | |
incorrectly reject 9223372036854775807. */
|
20799 | |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
20800 | |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
20801 | |
&& LARGE_OFF_T % 2147483647 == 1)
|
20802 | |
? 1 : -1];
|
20803 | |
int
|
20804 | |
main ()
|
20805 | |
{
|
20806 | |
|
20807 | |
;
|
20808 | |
return 0;
|
20809 | |
}
|
20810 | |
_ACEOF
|
20811 | |
rm -f conftest.$ac_objext
|
20812 | |
if { (ac_try="$ac_compile"
|
20813 | |
case "(($ac_try" in
|
20814 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20815 | |
*) ac_try_echo=$ac_try;;
|
20816 | |
esac
|
20817 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20818 | |
$as_echo "$ac_try_echo") >&5
|
20819 | |
(eval "$ac_compile") 2>conftest.er1
|
20820 | |
ac_status=$?
|
20821 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20822 | |
rm -f conftest.er1
|
20823 | |
cat conftest.err >&5
|
20824 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20825 | |
(exit $ac_status); } && {
|
20826 | |
test -z "$ac_c_werror_flag" ||
|
20827 | |
test ! -s conftest.err
|
20828 | |
} && test -s conftest.$ac_objext; then
|
20829 | |
ac_cv_sys_large_files=1; break
|
20830 | |
else
|
20831 | |
$as_echo "$as_me: failed program was:" >&5
|
20832 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20833 | |
|
20834 | |
|
20835 | |
fi
|
20836 | |
|
20837 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
20838 | |
ac_cv_sys_large_files=unknown
|
20839 | |
break
|
20840 | |
done
|
20841 | |
fi
|
20842 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
|
20843 | |
$as_echo "$ac_cv_sys_large_files" >&6; }
|
20844 | |
case $ac_cv_sys_large_files in #(
|
20845 | |
no | unknown) ;;
|
20846 | |
*)
|
20847 | |
cat >>confdefs.h <<_ACEOF
|
20848 | |
#define _LARGE_FILES $ac_cv_sys_large_files
|
20849 | |
_ACEOF
|
20850 | |
;;
|
20851 | |
esac
|
20852 | |
rm -rf conftest*
|
20853 | |
fi
|
20854 | |
fi
|
20855 | |
|
20856 | |
|
20857 | |
|
20858 | |
|
20859 | |
{ $as_echo "$as_me:$LINENO: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
|
20860 | |
$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
|
20861 | |
cache=_D_LARGEFILE_SOURCE_1
|
20862 | |
if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
|
20863 | |
$as_echo_n "(cached) " >&6
|
20864 | |
else
|
20865 | |
|
20866 | |
echo '
|
20867 | |
#include <stdio.h>
|
20868 | |
int test() {
|
20869 | |
int a = fseeko(stdin, 0, 0);
|
20870 | |
return a;
|
20871 | |
}
|
20872 | |
' > conftest.c
|
20873 | |
echo 'void f(){}' >>conftest.c
|
20874 | |
if test -z "`$CC $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
|
20875 | |
eval "cv_prog_cc_flag_needed_$cache=no"
|
20876 | |
else
|
20877 | |
|
20878 | |
if test -z "`$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
|
20879 | |
eval "cv_prog_cc_flag_needed_$cache=yes"
|
20880 | |
else
|
20881 | |
eval "cv_prog_cc_flag_needed_$cache=fail"
|
20882 | |
#echo 'Test with flag fails too!'
|
20883 | |
#cat conftest.c
|
20884 | |
#echo "$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
|
20885 | |
#echo `$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
|
20886 | |
#exit 1
|
20887 | |
fi
|
20888 | |
|
20889 | |
fi
|
20890 | |
rm -f conftest conftest.c conftest.o
|
20891 | |
|
20892 | |
fi
|
20893 | |
|
20894 | |
if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
|
20895 | |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
20896 | |
$as_echo "yes" >&6; }
|
20897 | |
:
|
20898 | |
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
|
20899 | |
else
|
20900 | |
if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
|
20901 | |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
20902 | |
$as_echo "no" >&6; }
|
20903 | |
#echo 'Test with flag is no!'
|
20904 | |
#cat conftest.c
|
20905 | |
#echo "$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
|
20906 | |
#echo `$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
|
20907 | |
#exit 1
|
20908 | |
:
|
20909 | |
|
20910 | |
else
|
20911 | |
{ $as_echo "$as_me:$LINENO: result: failed" >&5
|
20912 | |
$as_echo "failed" >&6; }
|
20913 | |
:
|
20914 | |
|
20915 | |
fi
|
20916 | |
fi
|
20917 | |
|
20918 | |
|
20919 | |
|
20920 | |
|
20921 | |
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
|
20922 | |
$as_echo_n "checking for getaddrinfo... " >&6; }
|
20923 | |
ac_cv_func_getaddrinfo=no
|
20924 | |
cat >conftest.$ac_ext <<_ACEOF
|
20925 | |
|
20926 | |
#ifdef __cplusplus
|
20927 | |
extern "C"
|
20928 | |
{
|
20929 | |
#endif
|
20930 | |
char* getaddrinfo();
|
20931 | |
char* (*f) () = getaddrinfo;
|
20932 | |
#ifdef __cplusplus
|
20933 | |
}
|
20934 | |
#endif
|
20935 | |
int main() {
|
20936 | |
;
|
20937 | |
return 0;
|
20938 | |
}
|
20939 | |
|
20940 | |
_ACEOF
|
20941 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20942 | |
if { (ac_try="$ac_link"
|
20943 | |
case "(($ac_try" in
|
20944 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20945 | |
*) ac_try_echo=$ac_try;;
|
20946 | |
esac
|
20947 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20948 | |
$as_echo "$ac_try_echo") >&5
|
20949 | |
(eval "$ac_link") 2>conftest.er1
|
20950 | |
ac_status=$?
|
20951 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20952 | |
rm -f conftest.er1
|
20953 | |
cat conftest.err >&5
|
20954 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20955 | |
(exit $ac_status); } && {
|
20956 | |
test -z "$ac_c_werror_flag" ||
|
20957 | |
test ! -s conftest.err
|
20958 | |
} && test -s conftest$ac_exeext && {
|
20959 | |
test "$cross_compiling" = yes ||
|
20960 | |
$as_test_x conftest$ac_exeext
|
20961 | |
}; then
|
20962 | |
ac_cv_func_getaddrinfo="yes"
|
20963 | |
else
|
20964 | |
$as_echo "$as_me: failed program was:" >&5
|
20965 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20966 | |
|
20967 | |
ORIGLIBS="$LIBS"
|
20968 | |
LIBS="$LIBS -lws2_32"
|
20969 | |
cat >conftest.$ac_ext <<_ACEOF
|
20970 | |
/* confdefs.h. */
|
20971 | |
_ACEOF
|
20972 | |
cat confdefs.h >>conftest.$ac_ext
|
20973 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20974 | |
/* end confdefs.h. */
|
20975 | |
|
20976 | |
#ifdef HAVE_WS2TCPIP_H
|
20977 | |
#include <ws2tcpip.h>
|
20978 | |
#endif
|
20979 | |
|
20980 | |
int
|
20981 | |
main ()
|
20982 | |
{
|
20983 | |
|
20984 | |
(void)getaddrinfo(NULL, NULL, NULL, NULL);
|
20985 | |
|
20986 | |
|
20987 | |
;
|
20988 | |
return 0;
|
20989 | |
}
|
20990 | |
_ACEOF
|
20991 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20992 | |
if { (ac_try="$ac_link"
|
20993 | |
case "(($ac_try" in
|
20994 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
20995 | |
*) ac_try_echo=$ac_try;;
|
20996 | |
esac
|
20997 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
20998 | |
$as_echo "$ac_try_echo") >&5
|
20999 | |
(eval "$ac_link") 2>conftest.er1
|
21000 | |
ac_status=$?
|
21001 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
21002 | |
rm -f conftest.er1
|
21003 | |
cat conftest.err >&5
|
21004 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21005 | |
(exit $ac_status); } && {
|
21006 | |
test -z "$ac_c_werror_flag" ||
|
21007 | |
test ! -s conftest.err
|
21008 | |
} && test -s conftest$ac_exeext && {
|
21009 | |
test "$cross_compiling" = yes ||
|
21010 | |
$as_test_x conftest$ac_exeext
|
21011 | |
}; then
|
21012 | |
|
21013 | |
ac_cv_func_getaddrinfo="yes"
|
21014 | |
|
21015 | |
cat >>confdefs.h <<\_ACEOF
|
21016 | |
#define USE_WINSOCK 1
|
21017 | |
_ACEOF
|
21018 | |
|
21019 | |
USE_WINSOCK="1"
|
21020 | |
|
21021 | |
else
|
21022 | |
$as_echo "$as_me: failed program was:" >&5
|
21023 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
21024 | |
|
21025 | |
|
21026 | |
ac_cv_func_getaddrinfo="no"
|
21027 | |
LIBS="$ORIGLIBS"
|
21028 | |
|
21029 | |
fi
|
21030 | |
|
21031 | |
rm -rf conftest.dSYM
|
21032 | |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
21033 | |
conftest$ac_exeext conftest.$ac_ext
|
21034 | |
|
21035 | |
fi
|
21036 | |
|
21037 | |
rm -rf conftest.dSYM
|
21038 | |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
21039 | |
conftest$ac_exeext conftest.$ac_ext
|
21040 | |
|
21041 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
|
21042 | |
$as_echo "$ac_cv_func_getaddrinfo" >&6; }
|
21043 | |
if test $ac_cv_func_getaddrinfo = yes; then
|
21044 | |
|
21045 | |
cat >>confdefs.h <<\_ACEOF
|
21046 | |
#define HAVE_GETADDRINFO 1
|
21047 | |
_ACEOF
|
21048 | |
|
21049 | |
fi
|
21050 | |
|
21051 | |
if test "$USE_WINSOCK" = 1; then
|
21052 | |
|
21053 | |
cat >>confdefs.h <<\_ACEOF
|
21054 | |
#define UB_ON_WINDOWS 1
|
21055 | |
_ACEOF
|
21056 | |
|
21057 | |
UB_ON_WINDOWS=yes
|
21058 | |
|
21059 | |
|
21060 | |
for ac_header in iphlpapi.h
|
21061 | |
do
|
21062 | |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
21063 | |
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
|
21064 | |
$as_echo_n "checking for $ac_header... " >&6; }
|
21065 | |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
21066 | |
$as_echo_n "(cached) " >&6
|
21067 | |
else
|
21068 | |
cat >conftest.$ac_ext <<_ACEOF
|
21069 | |
/* confdefs.h. */
|
21070 | |
_ACEOF
|
21071 | |
cat confdefs.h >>conftest.$ac_ext
|
21072 | |
cat >>conftest.$ac_ext <<_ACEOF
|
21073 | |
/* end confdefs.h. */
|
21074 | |
$ac_includes_default
|
21075 | |
#include <windows.h>
|
21076 | |
|
21077 | |
|
21078 | |
#include <$ac_header>
|
21079 | |
_ACEOF
|
21080 | |
rm -f conftest.$ac_objext
|
21081 | |
if { (ac_try="$ac_compile"
|
21082 | |
case "(($ac_try" in
|
21083 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21084 | |
*) ac_try_echo=$ac_try;;
|
21085 | |
esac
|
21086 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
21087 | |
$as_echo "$ac_try_echo") >&5
|
21088 | |
(eval "$ac_compile") 2>conftest.er1
|
21089 | |
ac_status=$?
|
21090 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
21091 | |
rm -f conftest.er1
|
21092 | |
cat conftest.err >&5
|
21093 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21094 | |
(exit $ac_status); } && {
|
21095 | |
test -z "$ac_c_werror_flag" ||
|
21096 | |
test ! -s conftest.err
|
21097 | |
} && test -s conftest.$ac_objext; then
|
21098 | |
eval "$as_ac_Header=yes"
|
21099 | |
else
|
21100 | |
$as_echo "$as_me: failed program was:" >&5
|
21101 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
21102 | |
|
21103 | |
eval "$as_ac_Header=no"
|
21104 | |
fi
|
21105 | |
|
21106 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21107 | |
fi
|
21108 | |
ac_res=`eval 'as_val=${'$as_ac_Header'}
|
21109 | |
$as_echo "$as_val"'`
|
21110 | |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
21111 | |
$as_echo "$ac_res" >&6; }
|
21112 | |
as_val=`eval 'as_val=${'$as_ac_Header'}
|
21113 | |
$as_echo "$as_val"'`
|
21114 | |
if test "x$as_val" = x""yes; then
|
21115 | |
cat >>confdefs.h <<_ACEOF
|
21116 | |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
21117 | |
_ACEOF
|
21118 | |
|
21119 | |
fi
|
21120 | |
|
21121 | |
done
|
21122 | |
|
21123 | |
if test -n "$ac_tool_prefix"; then
|
21124 | |
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
|
21125 | |
set dummy ${ac_tool_prefix}windres; ac_word=$2
|
21126 | |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
21127 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
21128 | |
if test "${ac_cv_prog_WINDRES+set}" = set; then
|
21129 | |
$as_echo_n "(cached) " >&6
|
21130 | |
else
|
21131 | |
if test -n "$WINDRES"; then
|
21132 | |
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
|
21133 | |
else
|
21134 | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
21135 | |
for as_dir in $PATH
|
21136 | |
do
|
21137 | |
IFS=$as_save_IFS
|
21138 | |
test -z "$as_dir" && as_dir=.
|
21139 | |
for ac_exec_ext in '' $ac_executable_extensions; do
|
21140 | |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
21141 | |
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
|
21142 | |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
21143 | |
break 2
|
21144 | |
fi
|
21145 | |
done
|
21146 | |
done
|
21147 | |
IFS=$as_save_IFS
|
21148 | |
|
21149 | |
fi
|
21150 | |
fi
|
21151 | |
WINDRES=$ac_cv_prog_WINDRES
|
21152 | |
if test -n "$WINDRES"; then
|
21153 | |
{ $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
|
21154 | |
$as_echo "$WINDRES" >&6; }
|
21155 | |
else
|
21156 | |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
21157 | |
$as_echo "no" >&6; }
|
21158 | |
fi
|
21159 | |
|
21160 | |
|
21161 | |
fi
|
21162 | |
if test -z "$ac_cv_prog_WINDRES"; then
|
21163 | |
ac_ct_WINDRES=$WINDRES
|
21164 | |
# Extract the first word of "windres", so it can be a program name with args.
|
21165 | |
set dummy windres; ac_word=$2
|
21166 | |
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
|
21167 | |
$as_echo_n "checking for $ac_word... " >&6; }
|
21168 | |
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
|
21169 | |
$as_echo_n "(cached) " >&6
|
21170 | |
else
|
21171 | |
if test -n "$ac_ct_WINDRES"; then
|
21172 | |
ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
|
21173 | |
else
|
21174 | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
21175 | |
for as_dir in $PATH
|
21176 | |
do
|
21177 | |
IFS=$as_save_IFS
|
21178 | |
test -z "$as_dir" && as_dir=.
|
21179 | |
for ac_exec_ext in '' $ac_executable_extensions; do
|
21180 | |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
21181 | |
ac_cv_prog_ac_ct_WINDRES="windres"
|
21182 | |
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
21183 | |
break 2
|
21184 | |
fi
|
21185 | |
done
|
21186 | |
done
|
21187 | |
IFS=$as_save_IFS
|
21188 | |
|
21189 | |
fi
|
21190 | |
fi
|
21191 | |
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
|
21192 | |
if test -n "$ac_ct_WINDRES"; then
|
21193 | |
{ $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
|
21194 | |
$as_echo "$ac_ct_WINDRES" >&6; }
|
21195 | |
else
|
21196 | |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
21197 | |
$as_echo "no" >&6; }
|
21198 | |
fi
|
21199 | |
|
21200 | |
if test "x$ac_ct_WINDRES" = x; then
|
21201 | |
WINDRES=""
|
21202 | |
else
|
21203 | |
case $cross_compiling:$ac_tool_warned in
|
21204 | |
yes:)
|
21205 | |
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
|
21206 | |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
21207 | |
ac_tool_warned=yes ;;
|
21208 | |
esac
|
21209 | |
WINDRES=$ac_ct_WINDRES
|
21210 | |
fi
|
21211 | |
else
|
21212 | |
WINDRES="$ac_cv_prog_WINDRES"
|
21213 | |
fi
|
21214 | |
|
21215 | |
LIBS="$LIBS -liphlpapi"
|
21216 | |
fi
|
21217 | |
if test $ac_cv_func_getaddrinfo = no; then
|
21218 | |
case " $LIBOBJS " in
|
21219 | |
*" fake-rfc2553.$ac_objext "* ) ;;
|
21220 | |
*) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
|
21221 | |
;;
|
21222 | |
esac
|
21223 | |
|
21224 | |
fi
|
21225 | |
|
21226 | |
# see if daemon(3) exists, and if it is deprecated.
|
21227 | |
|
21228 | |
for ac_func in daemon
|
|
21775 |
if test "${ac_cv_search_setusercontext+set}" = set; then
|
|
21776 |
:
|
|
21777 |
else
|
|
21778 |
ac_cv_search_setusercontext=no
|
|
21779 |
fi
|
|
21780 |
rm conftest.$ac_ext
|
|
21781 |
LIBS=$ac_func_search_save_LIBS
|
|
21782 |
fi
|
|
21783 |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_setusercontext" >&5
|
|
21784 |
$as_echo "$ac_cv_search_setusercontext" >&6; }
|
|
21785 |
ac_res=$ac_cv_search_setusercontext
|
|
21786 |
if test "$ac_res" != no; then
|
|
21787 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
|
21788 |
|
|
21789 |
fi
|
|
21790 |
|
|
21791 |
|
|
21792 |
|
|
21793 |
|
|
21794 |
|
|
21795 |
|
|
21796 |
|
|
21797 |
|
|
21798 |
|
|
21799 |
|
|
21800 |
|
|
21801 |
|
|
21802 |
|
|
21803 |
|
|
21804 |
|
|
21805 |
|
|
21806 |
|
|
21807 |
|
|
21808 |
|
|
21809 |
|
|
21810 |
|
|
21811 |
|
|
21812 |
|
|
21813 |
for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev glob initgroups strftime localtime_r setusercontext _beginthreadex
|
21229 | 21814 |
do
|
21230 | 21815 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
21231 | 21816 |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
21325 | 21910 |
fi
|
21326 | 21911 |
done
|
21327 | 21912 |
|
21328 | |
if test $ac_cv_func_daemon = yes; then
|
21329 | |
|
21330 | |
|
21331 | |
{ $as_echo "$as_me:$LINENO: checking if daemon is deprecated" >&5
|
21332 | |
$as_echo_n "checking if daemon is deprecated... " >&6; }
|
21333 | |
cache=`echo daemon | sed 'y%.=/+-%___p_%'`
|
21334 | |
if { as_var=cv_cc_deprecated_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
|
21335 | |
$as_echo_n "(cached) " >&6
|
21336 | |
else
|
21337 | |
|
21338 | |
echo '
|
21339 | |
#include <stdlib.h>
|
21340 | |
' >conftest.c
|
21341 | |
echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
|
21342 | |
if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
|
21343 | |
eval "cv_cc_deprecated_$cache=no"
|
21344 | |
else
|
21345 | |
eval "cv_cc_deprecated_$cache=yes"
|
21346 | |
fi
|
21347 | |
rm -f conftest conftest.o conftest.c
|
21348 | |
|
21349 | |
fi
|
21350 | |
|
21351 | |
if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
|
21352 | |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
21353 | |
$as_echo "yes" >&6; }
|
21354 | |
|
21355 | |
cat >>confdefs.h <<_ACEOF
|
21356 | |
#define DEPRECATED_DAEMON 1
|
21357 | |
_ACEOF
|
21358 | |
|
21359 | |
:
|
21360 | |
|
21361 | |
else
|
21362 | |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
21363 | |
$as_echo "no" >&6; }
|
21364 | |
:
|
21365 | |
|
21366 | |
fi
|
21367 | |
|
21368 | |
fi
|
21369 | |
|
21370 | |
{ $as_echo "$as_me:$LINENO: checking for library containing setusercontext" >&5
|
21371 | |
$as_echo_n "checking for library containing setusercontext... " >&6; }
|
21372 | |
if test "${ac_cv_search_setusercontext+set}" = set; then
|
21373 | |
$as_echo_n "(cached) " >&6
|
21374 | |
else
|
21375 | |
ac_func_search_save_LIBS=$LIBS
|
21376 | |
cat >conftest.$ac_ext <<_ACEOF
|
21377 | |
/* confdefs.h. */
|
21378 | |
_ACEOF
|
21379 | |
cat confdefs.h >>conftest.$ac_ext
|
21380 | |
cat >>conftest.$ac_ext <<_ACEOF
|
21381 | |
/* end confdefs.h. */
|
21382 | |
|
21383 | |
/* Override any GCC internal prototype to avoid an error.
|
21384 | |
Use char because int might match the return type of a GCC
|
21385 | |
builtin and then its argument prototype would still apply. */
|
21386 | |
#ifdef __cplusplus
|
21387 | |
extern "C"
|
21388 | |
#endif
|
21389 | |
char setusercontext ();
|
21390 | |
int
|
21391 | |
main ()
|
21392 | |
{
|
21393 | |
return setusercontext ();
|
21394 | |
;
|
21395 | |
return 0;
|
21396 | |
}
|
21397 | |
_ACEOF
|
21398 | |
for ac_lib in '' util; do
|
21399 | |
if test -z "$ac_lib"; then
|
21400 | |
ac_res="none required"
|
21401 | |
else
|
21402 | |
ac_res=-l$ac_lib
|
21403 | |
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
21404 | |
fi
|
21405 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
21406 | |
if { (ac_try="$ac_link"
|
21407 | |
case "(($ac_try" in
|
21408 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21409 | |
*) ac_try_echo=$ac_try;;
|
21410 | |
esac
|
21411 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
21412 | |
$as_echo "$ac_try_echo") >&5
|
21413 | |
(eval "$ac_link") 2>conftest.er1
|
21414 | |
ac_status=$?
|
21415 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
21416 | |
rm -f conftest.er1
|
21417 | |
cat conftest.err >&5
|
21418 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21419 | |
(exit $ac_status); } && {
|
21420 | |
test -z "$ac_c_werror_flag" ||
|
21421 | |
test ! -s conftest.err
|
21422 | |
} && test -s conftest$ac_exeext && {
|
21423 | |
test "$cross_compiling" = yes ||
|
21424 | |
$as_test_x conftest$ac_exeext
|
21425 | |
}; then
|
21426 | |
ac_cv_search_setusercontext=$ac_res
|
21427 | |
else
|
21428 | |
$as_echo "$as_me: failed program was:" >&5
|
21429 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
21430 | |
|
21431 | |
|
21432 | |
fi
|
21433 | |
|
21434 | |
rm -rf conftest.dSYM
|
21435 | |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
21436 | |
conftest$ac_exeext
|
21437 | |
if test "${ac_cv_search_setusercontext+set}" = set; then
|
21438 | |
break
|
21439 | |
fi
|
21440 | |
done
|
21441 | |
if test "${ac_cv_search_setusercontext+set}" = set; then
|
21442 | |
:
|
21443 | |
else
|
21444 | |
ac_cv_search_setusercontext=no
|
21445 | |
fi
|
21446 | |
rm conftest.$ac_ext
|
21447 | |
LIBS=$ac_func_search_save_LIBS
|
21448 | |
fi
|
21449 | |
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_setusercontext" >&5
|
21450 | |
$as_echo "$ac_cv_search_setusercontext" >&6; }
|
21451 | |
ac_res=$ac_cv_search_setusercontext
|
21452 | |
if test "$ac_res" != no; then
|
21453 | |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
21454 | |
|
21455 | |
fi
|
21456 | |
|
21457 | |
|
21458 | |
|
21459 | |
|
21460 | |
|
21461 | |
|
21462 | |
|
21463 | |
|
21464 | |
|
21465 | |
|
21466 | |
|
21467 | |
|
21468 | |
|
21469 | |
|
21470 | |
|
21471 | |
|
21472 | |
|
21473 | |
|
21474 | |
|
21475 | |
|
21476 | |
|
21477 | |
|
21478 | |
|
21479 | |
|
21480 | |
|
21481 | |
|
21482 | |
|
21483 | |
for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev setresuid setreuid setresgid setregid glob initgroups strftime localtime_r setusercontext _beginthreadex
|
|
21913 |
|
|
21914 |
for ac_func in setresuid
|
21484 | 21915 |
do
|
21485 | 21916 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
21486 | 21917 |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
21577 | 22008 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
21578 | 22009 |
_ACEOF
|
21579 | 22010 |
|
21580 | |
fi
|
21581 | |
done
|
21582 | |
|
21583 | |
|
21584 | |
# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
|
21585 | |
if echo $build_os | grep darwin8 > /dev/null; then
|
21586 | |
|
21587 | |
cat >>confdefs.h <<\_ACEOF
|
21588 | |
#define DARWIN_BROKEN_SETREUID 1
|
21589 | |
_ACEOF
|
21590 | |
|
21591 | |
fi
|
21592 | |
|
21593 | |
{ $as_echo "$as_me:$LINENO: checking if nonblocking sockets work" >&5
|
21594 | |
$as_echo_n "checking if nonblocking sockets work... " >&6; }
|
21595 | |
if echo $target | grep mingw32 >/dev/null; then
|
21596 | |
{ $as_echo "$as_me:$LINENO: result: no (windows)" >&5
|
21597 | |
$as_echo "no (windows)" >&6; }
|
21598 | |
|
21599 | |
cat >>confdefs.h <<\_ACEOF
|
21600 | |
#define NONBLOCKING_IS_BROKEN 1
|
21601 | |
_ACEOF
|
21602 | |
|
21603 | |
else
|
21604 | |
if test "$cross_compiling" = yes; then
|
21605 | |
|
21606 | |
{ $as_echo "$as_me:$LINENO: result: crosscompile(yes)" >&5
|
21607 | |
$as_echo "crosscompile(yes)" >&6; }
|
21608 | |
|
|
22011 |
else
|
|
22012 |
|
|
22013 |
for ac_func in setreuid
|
|
22014 |
do
|
|
22015 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
22016 |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
22017 |
$as_echo_n "checking for $ac_func... " >&6; }
|
|
22018 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
22019 |
$as_echo_n "(cached) " >&6
|
21609 | 22020 |
else
|
21610 | 22021 |
cat >conftest.$ac_ext <<_ACEOF
|
21611 | 22022 |
/* confdefs.h. */
|
|
21613 | 22024 |
cat confdefs.h >>conftest.$ac_ext
|
21614 | 22025 |
cat >>conftest.$ac_ext <<_ACEOF
|
21615 | 22026 |
/* end confdefs.h. */
|
21616 | |
|
21617 | |
#include <stdio.h>
|
21618 | |
#include <string.h>
|
21619 | |
#include <stdlib.h>
|
21620 | |
#include <fcntl.h>
|
21621 | |
#include <errno.h>
|
21622 | |
#ifdef HAVE_SYS_TYPES_H
|
21623 | |
#include <sys/types.h>
|
|
22027 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
22028 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
22029 |
#define $ac_func innocuous_$ac_func
|
|
22030 |
|
|
22031 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
22032 |
which can conflict with char $ac_func (); below.
|
|
22033 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
22034 |
<limits.h> exists even on freestanding compilers. */
|
|
22035 |
|
|
22036 |
#ifdef __STDC__
|
|
22037 |
# include <limits.h>
|
|
22038 |
#else
|
|
22039 |
# include <assert.h>
|
21624 | 22040 |
#endif
|
21625 | |
#ifdef HAVE_SYS_SOCKET_H
|
21626 | |
#include <sys/socket.h>
|
|
22041 |
|
|
22042 |
#undef $ac_func
|
|
22043 |
|
|
22044 |
/* Override any GCC internal prototype to avoid an error.
|
|
22045 |
Use char because int might match the return type of a GCC
|
|
22046 |
builtin and then its argument prototype would still apply. */
|
|
22047 |
#ifdef __cplusplus
|
|
22048 |
extern "C"
|
21627 | 22049 |
#endif
|
21628 | |
#ifdef HAVE_NETINET_IN_H
|
21629 | |
#include <netinet/in.h>
|
21630 | |
#endif
|
21631 | |
#ifdef HAVE_ARPA_INET_H
|
21632 | |
#include <arpa/inet.h>
|
21633 | |
#endif
|
21634 | |
#ifdef HAVE_UNISTD_H
|
21635 | |
#include <unistd.h>
|
21636 | |
#endif
|
21637 | |
#ifdef HAVE_TIME_H
|
21638 | |
#include <time.h>
|
|
22050 |
char $ac_func ();
|
|
22051 |
/* The GNU C library defines this for functions which it implements
|
|
22052 |
to always fail with ENOSYS. Some functions are actually named
|
|
22053 |
something starting with __ and the normal name is an alias. */
|
|
22054 |
#if defined __stub_$ac_func || defined __stub___$ac_func
|
|
22055 |
choke me
|
21639 | 22056 |
#endif
|
21640 | 22057 |
|
21641 | 22058 |
int
|
21642 | 22059 |
main ()
|
21643 | 22060 |
{
|
21644 | |
|
21645 | |
int port;
|
21646 | |
int sfd, cfd;
|
21647 | |
int num = 10;
|
21648 | |
int i, p;
|
21649 | |
struct sockaddr_in a;
|
21650 | |
/* test if select and nonblocking reads work well together */
|
21651 | |
/* open port.
|
21652 | |
fork child to send 10 messages.
|
21653 | |
select to read.
|
21654 | |
then try to nonblocking read the 10 messages
|
21655 | |
then, nonblocking read must give EAGAIN
|
21656 | |
*/
|
21657 | |
|
21658 | |
port = 12345 + (time(0)%32);
|
21659 | |
sfd = socket(PF_INET, SOCK_DGRAM, 0);
|
21660 | |
if(sfd == -1) {
|
21661 | |
perror("socket");
|
21662 | |
return 1;
|
21663 | |
}
|
21664 | |
memset(&a, 0, sizeof(a));
|
21665 | |
a.sin_family = AF_INET;
|
21666 | |
a.sin_port = htons(port);
|
21667 | |
a.sin_addr.s_addr = inet_addr("127.0.0.1");
|
21668 | |
if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
|
21669 | |
perror("bind");
|
21670 | |
return 1;
|
21671 | |
}
|
21672 | |
if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
|
21673 | |
perror("fcntl");
|
21674 | |
return 1;
|
21675 | |
}
|
21676 | |
|
21677 | |
cfd = socket(PF_INET, SOCK_DGRAM, 0);
|
21678 | |
if(cfd == -1) {
|
21679 | |
perror("client socket");
|
21680 | |
return 1;
|
21681 | |
}
|
21682 | |
a.sin_port = 0;
|
21683 | |
if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
|
21684 | |
perror("client bind");
|
21685 | |
return 1;
|
21686 | |
}
|
21687 | |
a.sin_port = htons(port);
|
21688 | |
|
21689 | |
/* no handler, causes exit in 10 seconds */
|
21690 | |
alarm(10);
|
21691 | |
|
21692 | |
/* send and receive on the socket */
|
21693 | |
if((p=fork()) == 0) {
|
21694 | |
for(i=0; i<num; i++) {
|
21695 | |
if(sendto(cfd, &i, sizeof(i), 0,
|
21696 | |
(struct sockaddr*)&a, sizeof(a)) < 0) {
|
21697 | |
perror("sendto");
|
21698 | |
return 1;
|
21699 | |
}
|
21700 | |
}
|
21701 | |
} else {
|
21702 | |
/* parent */
|
21703 | |
fd_set rset;
|
21704 | |
int x;
|
21705 | |
if(p == -1) {
|
21706 | |
perror("fork");
|
21707 | |
return 1;
|
21708 | |
}
|
21709 | |
FD_ZERO(&rset);
|
21710 | |
FD_SET(sfd, &rset);
|
21711 | |
if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
|
21712 | |
perror("select");
|
21713 | |
return 1;
|
21714 | |
}
|
21715 | |
i = 0;
|
21716 | |
while(i < num) {
|
21717 | |
if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
|
21718 | |
if(errno == EAGAIN)
|
21719 | |
continue;
|
21720 | |
perror("recv");
|
21721 | |
return 1;
|
21722 | |
}
|
21723 | |
i++;
|
21724 | |
}
|
21725 | |
/* now we want to get EAGAIN: nonblocking goodness */
|
21726 | |
errno = 0;
|
21727 | |
recv(sfd, &x, sizeof(x), 0);
|
21728 | |
if(errno != EAGAIN) {
|
21729 | |
perror("trying to recv again");
|
21730 | |
return 1;
|
21731 | |
}
|
21732 | |
/* EAGAIN encountered */
|
21733 | |
}
|
21734 | |
|
21735 | |
close(sfd);
|
21736 | |
close(cfd);
|
21737 | |
|
21738 | |
;
|
21739 | |
return 0;
|
21740 | |
}
|
21741 | |
_ACEOF
|
21742 | |
rm -f conftest$ac_exeext
|
21743 | |
if { (ac_try="$ac_link"
|
21744 | |
case "(($ac_try" in
|
21745 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21746 | |
*) ac_try_echo=$ac_try;;
|
21747 | |
esac
|
21748 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
21749 | |
$as_echo "$ac_try_echo") >&5
|
21750 | |
(eval "$ac_link") 2>&5
|
21751 | |
ac_status=$?
|
21752 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21753 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
21754 | |
{ (case "(($ac_try" in
|
21755 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21756 | |
*) ac_try_echo=$ac_try;;
|
21757 | |
esac
|
21758 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
21759 | |
$as_echo "$ac_try_echo") >&5
|
21760 | |
(eval "$ac_try") 2>&5
|
21761 | |
ac_status=$?
|
21762 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21763 | |
(exit $ac_status); }; }; then
|
21764 | |
|
21765 | |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
21766 | |
$as_echo "yes" >&6; }
|
21767 | |
|
21768 | |
else
|
21769 | |
$as_echo "$as_me: program exited with status $ac_status" >&5
|
21770 | |
$as_echo "$as_me: failed program was:" >&5
|
21771 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
21772 | |
|
21773 | |
( exit $ac_status )
|
21774 | |
|
21775 | |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
21776 | |
$as_echo "no" >&6; }
|
21777 | |
|
21778 | |
cat >>confdefs.h <<\_ACEOF
|
21779 | |
#define NONBLOCKING_IS_BROKEN 1
|
21780 | |
_ACEOF
|
21781 | |
|
21782 | |
|
21783 | |
fi
|
21784 | |
rm -rf conftest.dSYM
|
21785 | |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
21786 | |
fi
|
21787 | |
|
21788 | |
|
21789 | |
fi
|
21790 | |
|
21791 | |
|
21792 | |
{ $as_echo "$as_me:$LINENO: checking whether mkdir has one arg" >&5
|
21793 | |
$as_echo_n "checking whether mkdir has one arg... " >&6; }
|
21794 | |
cat >conftest.$ac_ext <<_ACEOF
|
21795 | |
/* confdefs.h. */
|
21796 | |
_ACEOF
|
21797 | |
cat confdefs.h >>conftest.$ac_ext
|
21798 | |
cat >>conftest.$ac_ext <<_ACEOF
|
21799 | |
/* end confdefs.h. */
|
21800 | |
|
21801 | |
#include <stdio.h>
|
21802 | |
#include <unistd.h>
|
21803 | |
#ifdef HAVE_WINSOCK2_H
|
21804 | |
#include <winsock2.h>
|
21805 | |
#endif
|
21806 | |
#ifdef HAVE_SYS_STAT_H
|
21807 | |
#include <sys/stat.h>
|
21808 | |
#endif
|
21809 | |
|
21810 | |
int
|
21811 | |
main ()
|
21812 | |
{
|
21813 | |
|
21814 | |
(void)mkdir("directory");
|
21815 | |
|
21816 | |
;
|
21817 | |
return 0;
|
21818 | |
}
|
21819 | |
_ACEOF
|
21820 | |
rm -f conftest.$ac_objext
|
21821 | |
if { (ac_try="$ac_compile"
|
21822 | |
case "(($ac_try" in
|
21823 | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
21824 | |
*) ac_try_echo=$ac_try;;
|
21825 | |
esac
|
21826 | |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
21827 | |
$as_echo "$ac_try_echo") >&5
|
21828 | |
(eval "$ac_compile") 2>conftest.er1
|
21829 | |
ac_status=$?
|
21830 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
21831 | |
rm -f conftest.er1
|
21832 | |
cat conftest.err >&5
|
21833 | |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
21834 | |
(exit $ac_status); } && {
|
21835 | |
test -z "$ac_c_werror_flag" ||
|
21836 | |
test ! -s conftest.err
|
21837 | |
} && test -s conftest.$ac_objext; then
|
21838 | |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
21839 | |
$as_echo "yes" >&6; }
|
21840 | |
|
21841 | |
cat >>confdefs.h <<\_ACEOF
|
21842 | |
#define MKDIR_HAS_ONE_ARG 1
|
21843 | |
_ACEOF
|
21844 | |
|
21845 | |
|
21846 | |
else
|
21847 | |
$as_echo "$as_me: failed program was:" >&5
|
21848 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
21849 | |
|
21850 | |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
21851 | |
$as_echo "no" >&6; }
|
21852 | |
|
21853 | |
fi
|
21854 | |
|
21855 | |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
21856 | |
|
21857 | |
|
21858 | |
# check ioctlsocket
|
21859 | |
{ $as_echo "$as_me:$LINENO: checking for ioctlsocket" >&5
|
21860 | |
$as_echo_n "checking for ioctlsocket... " >&6; }
|
21861 | |
cat >conftest.$ac_ext <<_ACEOF
|
21862 | |
/* confdefs.h. */
|
21863 | |
_ACEOF
|
21864 | |
cat confdefs.h >>conftest.$ac_ext
|
21865 | |
cat >>conftest.$ac_ext <<_ACEOF
|
21866 | |
/* end confdefs.h. */
|
21867 | |
|
21868 | |
#ifdef HAVE_WINSOCK2_H
|
21869 | |
#include <winsock2.h>
|
21870 | |
#endif
|
21871 | |
|
21872 | |
int
|
21873 | |
main ()
|
21874 | |
{
|
21875 | |
|
21876 | |
(void)ioctlsocket(0, 0, NULL);
|
21877 | |
|
|
22061 |
return $ac_func ();
|
21878 | 22062 |
;
|
21879 | 22063 |
return 0;
|
21880 | 22064 |
}
|
|
21900 | 22084 |
test "$cross_compiling" = yes ||
|
21901 | 22085 |
$as_test_x conftest$ac_exeext
|
21902 | 22086 |
}; then
|
21903 | |
|
21904 | |
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
21905 | |
$as_echo "yes" >&6; }
|
21906 | |
|
21907 | |
cat >>confdefs.h <<\_ACEOF
|
21908 | |
#define HAVE_IOCTLSOCKET 1
|
21909 | |
_ACEOF
|
21910 | |
|
21911 | |
|
|
22087 |
eval "$as_ac_var=yes"
|
21912 | 22088 |
else
|
21913 | 22089 |
$as_echo "$as_me: failed program was:" >&5
|
21914 | 22090 |
sed 's/^/| /' conftest.$ac_ext >&5
|
21915 | 22091 |
|
21916 | |
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
21917 | |
$as_echo "no" >&6; }
|
|
22092 |
eval "$as_ac_var=no"
|
21918 | 22093 |
fi
|
21919 | 22094 |
|
21920 | 22095 |
rm -rf conftest.dSYM
|
21921 | 22096 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
21922 | 22097 |
conftest$ac_exeext conftest.$ac_ext
|
21923 | |
|
|
22098 |
fi
|
|
22099 |
ac_res=`eval 'as_val=${'$as_ac_var'}
|
|
22100 |
$as_echo "$as_val"'`
|
|
22101 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
22102 |
$as_echo "$ac_res" >&6; }
|
|
22103 |
as_val=`eval 'as_val=${'$as_ac_var'}
|
|
22104 |
$as_echo "$as_val"'`
|
|
22105 |
if test "x$as_val" = x""yes; then
|
|
22106 |
cat >>confdefs.h <<_ACEOF
|
|
22107 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
22108 |
_ACEOF
|
|
22109 |
|
|
22110 |
fi
|
|
22111 |
done
|
|
22112 |
|
|
22113 |
fi
|
|
22114 |
done
|
|
22115 |
|
|
22116 |
|
|
22117 |
for ac_func in setresgid
|
|
22118 |
do
|
|
22119 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
22120 |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
22121 |
$as_echo_n "checking for $ac_func... " >&6; }
|
|
22122 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
22123 |
$as_echo_n "(cached) " >&6
|
|
22124 |
else
|
|
22125 |
cat >conftest.$ac_ext <<_ACEOF
|
|
22126 |
/* confdefs.h. */
|
|
22127 |
_ACEOF
|
|
22128 |
cat confdefs.h >>conftest.$ac_ext
|
|
22129 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
22130 |
/* end confdefs.h. */
|
|
22131 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
22132 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
22133 |
#define $ac_func innocuous_$ac_func
|
|
22134 |
|
|
22135 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
22136 |
which can conflict with char $ac_func (); below.
|
|
22137 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
22138 |
<limits.h> exists even on freestanding compilers. */
|
|
22139 |
|
|
22140 |
#ifdef __STDC__
|
|
22141 |
# include <limits.h>
|
|
22142 |
#else
|
|
22143 |
# include <assert.h>
|
|
22144 |
#endif
|
|
22145 |
|
|
22146 |
#undef $ac_func
|
|
22147 |
|
|
22148 |
/* Override any GCC internal prototype to avoid an error.
|
|
22149 |
Use char because int might match the return type of a GCC
|
|
22150 |
builtin and then its argument prototype would still apply. */
|
|
22151 |
#ifdef __cplusplus
|
|
22152 |
extern "C"
|
|
22153 |
#endif
|
|
22154 |
char $ac_func ();
|
|
22155 |
/* The GNU C library defines this for functions which it implements
|
|
22156 |
to always fail with ENOSYS. Some functions are actually named
|
|
22157 |
something starting with __ and the normal name is an alias. */
|
|
22158 |
#if defined __stub_$ac_func || defined __stub___$ac_func
|
|
22159 |
choke me
|
|
22160 |
#endif
|
|
22161 |
|
|
22162 |
int
|
|
22163 |
main ()
|
|
22164 |
{
|
|
22165 |
return $ac_func ();
|
|
22166 |
;
|
|
22167 |
return 0;
|
|
22168 |
}
|
|
22169 |
_ACEOF
|
|
22170 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
22171 |
if { (ac_try="$ac_link"
|
|
22172 |
case "(($ac_try" in
|
|
22173 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
22174 |
*) ac_try_echo=$ac_try;;
|
|
22175 |
esac
|
|
22176 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
22177 |
$as_echo "$ac_try_echo") >&5
|
|
22178 |
(eval "$ac_link") 2>conftest.er1
|
|
22179 |
ac_status=$?
|
|
22180 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
22181 |
rm -f conftest.er1
|
|
22182 |
cat conftest.err >&5
|
|
22183 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
22184 |
(exit $ac_status); } && {
|
|
22185 |
test -z "$ac_c_werror_flag" ||
|
|
22186 |
test ! -s conftest.err
|
|
22187 |
} && test -s conftest$ac_exeext && {
|
|
22188 |
test "$cross_compiling" = yes ||
|
|
22189 |
$as_test_x conftest$ac_exeext
|
|
22190 |
}; then
|
|
22191 |
eval "$as_ac_var=yes"
|
|
22192 |
else
|
|
22193 |
$as_echo "$as_me: failed program was:" >&5
|
|
22194 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
22195 |
|
|
22196 |
eval "$as_ac_var=no"
|
|
22197 |
fi
|
|
22198 |
|
|
22199 |
rm -rf conftest.dSYM
|
|
22200 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
22201 |
conftest$ac_exeext conftest.$ac_ext
|
|
22202 |
fi
|
|
22203 |
ac_res=`eval 'as_val=${'$as_ac_var'}
|
|
22204 |
$as_echo "$as_val"'`
|
|
22205 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
22206 |
$as_echo "$ac_res" >&6; }
|
|
22207 |
as_val=`eval 'as_val=${'$as_ac_var'}
|
|
22208 |
$as_echo "$as_val"'`
|
|
22209 |
if test "x$as_val" = x""yes; then
|
|
22210 |
cat >>confdefs.h <<_ACEOF
|
|
22211 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
22212 |
_ACEOF
|
|
22213 |
|
|
22214 |
else
|
|
22215 |
|
|
22216 |
for ac_func in setregid
|
|
22217 |
do
|
|
22218 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
22219 |
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
22220 |
$as_echo_n "checking for $ac_func... " >&6; }
|
|
22221 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
22222 |
$as_echo_n "(cached) " >&6
|
|
22223 |
else
|
|
22224 |
cat >conftest.$ac_ext <<_ACEOF
|
|
22225 |
/* confdefs.h. */
|
|
22226 |
_ACEOF
|
|
22227 |
cat confdefs.h >>conftest.$ac_ext
|
|
22228 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
22229 |
/* end confdefs.h. */
|
|
22230 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
22231 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
22232 |
#define $ac_func innocuous_$ac_func
|
|
22233 |
|
|
22234 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
22235 |
which can conflict with char $ac_func (); below.
|
|
22236 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
22237 |
<limits.h> exists even on freestanding compilers. */
|
|
22238 |
|
|
22239 |
#ifdef __STDC__
|
|
22240 |
# include <limits.h>
|
|
22241 |
#else
|
|
22242 |
# include <assert.h>
|
|
22243 |
#endif
|
|
22244 |
|
|
22245 |
#undef $ac_func
|
|
22246 |
|
|
22247 |
/* Override any GCC internal prototype to avoid an error.
|
|
22248 |
Use char because int might match the return type of a GCC
|
|
22249 |
builtin and then its argument prototype would still apply. */
|
|
22250 |
#ifdef __cplusplus
|
|
22251 |
extern "C"
|
|
22252 |
#endif
|
|
22253 |
char $ac_func ();
|
|
22254 |
/* The GNU C library defines this for functions which it implements
|
|
22255 |
to always fail with ENOSYS. Some functions are actually named
|
|
22256 |
something starting with __ and the normal name is an alias. */
|
|
22257 |
#if defined __stub_$ac_func || defined __stub___$ac_func
|
|
22258 |
choke me
|
|
22259 |
#endif
|
|
22260 |
|
|
22261 |
int
|
|
22262 |
main ()
|
|
22263 |
{
|
|
22264 |
return $ac_func ();
|
|
22265 |
;
|
|
22266 |
return 0;
|
|
22267 |
}
|
|
22268 |
_ACEOF
|
|
22269 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
22270 |
if { (ac_try="$ac_link"
|
|
22271 |
case "(($ac_try" in
|
|
22272 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
22273 |
*) ac_try_echo=$ac_try;;
|
|
22274 |
esac
|
|
22275 |
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
22276 |
$as_echo "$ac_try_echo") >&5
|
|
22277 |
(eval "$ac_link") 2>conftest.er1
|
|
22278 |
ac_status=$?
|
|
22279 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
22280 |
rm -f conftest.er1
|
|
22281 |
cat conftest.err >&5
|
|
22282 |
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
22283 |
(exit $ac_status); } && {
|
|
22284 |
test -z "$ac_c_werror_flag" ||
|
|
22285 |
test ! -s conftest.err
|
|
22286 |
} && test -s conftest$ac_exeext && {
|
|
22287 |
test "$cross_compiling" = yes ||
|
|
22288 |
$as_test_x conftest$ac_exeext
|
|
22289 |
}; then
|
|
22290 |
eval "$as_ac_var=yes"
|
|
22291 |
else
|
|
22292 |
$as_echo "$as_me: failed program was:" >&5
|
|
22293 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
22294 |
|
|
22295 |
eval "$as_ac_var=no"
|
|
22296 |
fi
|
|
22297 |
|
|
22298 |
rm -rf conftest.dSYM
|
|
22299 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
|
22300 |
conftest$ac_exeext conftest.$ac_ext
|
|
22301 |
fi
|
|
22302 |
ac_res=`eval 'as_val=${'$as_ac_var'}
|
|
22303 |
$as_echo "$as_val"'`
|
|
22304 |
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
|
|
22305 |
$as_echo "$ac_res" >&6; }
|
|
22306 |
as_val=`eval 'as_val=${'$as_ac_var'}
|
|
22307 |
$as_echo "$as_val"'`
|
|
22308 |
if test "x$as_val" = x""yes; then
|
|
22309 |
cat >>confdefs.h <<_ACEOF
|
|
22310 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
22311 |
_ACEOF
|
|
22312 |
|
|
22313 |
fi
|
|
22314 |
done
|
|
22315 |
|
|
22316 |
fi
|
|
22317 |
done
|
|
22318 |
|
|
22319 |
|
|
22320 |
# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
|
|
22321 |
if echo $build_os | grep darwin8 > /dev/null; then
|
|
22322 |
|
|
22323 |
cat >>confdefs.h <<\_ACEOF
|
|
22324 |
#define DARWIN_BROKEN_SETREUID 1
|
|
22325 |
_ACEOF
|
|
22326 |
|
|
22327 |
fi
|
21924 | 22328 |
|
21925 | 22329 |
for ac_func in inet_aton
|
21926 | 22330 |
do
|
|
23696 | 24100 |
# report actual input values of CONFIG_FILES etc. instead of their
|
23697 | 24101 |
# values after options handling.
|
23698 | 24102 |
ac_log="
|
23699 | |
This file was extended by unbound $as_me 1.4.3, which was
|
|
24103 |
This file was extended by unbound $as_me 1.4.4, which was
|
23700 | 24104 |
generated by GNU Autoconf 2.63. Invocation command line was
|
23701 | 24105 |
|
23702 | 24106 |
CONFIG_FILES = $CONFIG_FILES
|
|
23759 | 24163 |
_ACEOF
|
23760 | 24164 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
23761 | 24165 |
ac_cs_version="\\
|
23762 | |
unbound config.status 1.4.3
|
|
24166 |
unbound config.status 1.4.4
|
23763 | 24167 |
configured by $0, generated by GNU Autoconf 2.63,
|
23764 | 24168 |
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
23765 | 24169 |
|