8123
for ac_func in daemon chroot getpwnam setuid nice system getpid dup dup2 getpass strerror syslog openlog mlockall getgrnam setgid setgroups stat flock readv writev setsockopt getsockopt setsid chdir putenv getpeername unlink poll chsize ftruncate sendmsg recvmsg getsockname execve
8125
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8126
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8127
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8128
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8129
echo $ECHO_N "(cached) $ECHO_C" >&6
8131
cat >conftest.$ac_ext <<_ACEOF
8134
cat confdefs.h >>conftest.$ac_ext
8135
cat >>conftest.$ac_ext <<_ACEOF
8136
/* end confdefs.h. */
8137
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8138
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8139
#define $ac_func innocuous_$ac_func
8141
/* System header to define __stub macros and hopefully few prototypes,
8142
which can conflict with char $ac_func (); below.
8143
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8144
<limits.h> exists even on freestanding compilers. */
8147
# include <limits.h>
8149
# include <assert.h>
8154
/* Override any GCC internal prototype to avoid an error.
8155
Use char because int might match the return type of a GCC
8156
builtin and then its argument prototype would still apply. */
8161
/* The GNU C library defines this for functions which it implements
8162
to always fail with ENOSYS. Some functions are actually named
8163
something starting with __ and the normal name is an alias. */
8164
#if defined __stub_$ac_func || defined __stub___$ac_func
8176
rm -f conftest.$ac_objext conftest$ac_exeext
8177
if { (ac_try="$ac_link"
8179
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180
*) ac_try_echo=$ac_try;;
8182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183
(eval "$ac_link") 2>conftest.er1
8185
grep -v '^ *+' conftest.er1 >conftest.err
8187
cat conftest.err >&5
8188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
(exit $ac_status); } && {
8190
test -z "$ac_c_werror_flag" ||
8191
test ! -s conftest.err
8192
} && test -s conftest$ac_exeext &&
8193
$as_test_x conftest$ac_exeext; then
8194
eval "$as_ac_var=yes"
8196
echo "$as_me: failed program was:" >&5
8197
sed 's/^/| /' conftest.$ac_ext >&5
8199
eval "$as_ac_var=no"
8202
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203
conftest$ac_exeext conftest.$ac_ext
8205
ac_res=`eval echo '${'$as_ac_var'}'`
8206
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8207
echo "${ECHO_T}$ac_res" >&6; }
8208
if test `eval echo '${'$as_ac_var'}'` = yes; then
8209
cat >>confdefs.h <<_ACEOF
8210
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8216
cat >confcache <<\_ACEOF
8217
# This file is a shell script that caches the results of configure
8218
# tests run on this system so they can be shared between configure
8219
# scripts and configure runs, see configure's option --config-cache.
8220
# It is not useful on other systems. If it contains results you don't
8221
# want to keep, you may remove or edit it.
8223
# config.status only pays attention to the cache file if you give it
8224
# the --recheck option to rerun configure.
8226
# `ac_cv_env_foo' variables (set or unset) will be overridden when
8227
# loading this file, other *unset* `ac_cv_foo' will be assigned the
8232
# The following way of writing the cache mishandles newlines in values,
8233
# but we know of no workaround that is simple, portable, and efficient.
8234
# So, we kill variables containing newlines.
8235
# Ultrix sh set writes to stderr and can't be redirected directly,
8236
# and sets the high bit in the cache file unless we assign to the vars.
8238
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8239
eval ac_val=\$$ac_var
8243
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8244
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8247
_ | IFS | as_nl) ;; #(
8248
*) $as_unset $ac_var ;;
8254
case $as_nl`(ac_space=' '; set) 2>&1` in #(
8255
*${as_nl}ac_space=\ *)
8256
# `set' does not quote correctly, so add quotes (double-quote
8257
# substitution turns \\\\ into \\, and sed turns \\ into \).
8260
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8263
# `set' quotes correctly as required by POSIX, so do not add quotes.
8264
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8273
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8275
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8277
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8278
if test -w "$cache_file"; then
8279
test "x$cache_file" != "x/dev/null" &&
8280
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
8281
echo "$as_me: updating cache $cache_file" >&6;}
8282
cat confcache >$cache_file
8284
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8285
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8092
for ac_func in ctime memset vsnprintf strdup
8094
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8095
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8096
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8097
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8098
echo $ECHO_N "(cached) $ECHO_C" >&6
8100
cat >conftest.$ac_ext <<_ACEOF
8103
cat confdefs.h >>conftest.$ac_ext
8104
cat >>conftest.$ac_ext <<_ACEOF
8105
/* end confdefs.h. */
8106
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8107
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8108
#define $ac_func innocuous_$ac_func
8110
/* System header to define __stub macros and hopefully few prototypes,
8111
which can conflict with char $ac_func (); below.
8112
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8113
<limits.h> exists even on freestanding compilers. */
8116
# include <limits.h>
8118
# include <assert.h>
8123
/* Override any GCC internal prototype to avoid an error.
8124
Use char because int might match the return type of a GCC
8125
builtin and then its argument prototype would still apply. */
8130
/* The GNU C library defines this for functions which it implements
8131
to always fail with ENOSYS. Some functions are actually named
8132
something starting with __ and the normal name is an alias. */
8133
#if defined __stub_$ac_func || defined __stub___$ac_func
8145
rm -f conftest.$ac_objext conftest$ac_exeext
8146
if { (ac_try="$ac_link"
8148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149
*) ac_try_echo=$ac_try;;
8151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152
(eval "$ac_link") 2>conftest.er1
8154
grep -v '^ *+' conftest.er1 >conftest.err
8156
cat conftest.err >&5
8157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158
(exit $ac_status); } && {
8159
test -z "$ac_c_werror_flag" ||
8160
test ! -s conftest.err
8161
} && test -s conftest$ac_exeext &&
8162
$as_test_x conftest$ac_exeext; then
8163
eval "$as_ac_var=yes"
8165
echo "$as_me: failed program was:" >&5
8166
sed 's/^/| /' conftest.$ac_ext >&5
8168
eval "$as_ac_var=no"
8171
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8172
conftest$ac_exeext conftest.$ac_ext
8174
ac_res=`eval echo '${'$as_ac_var'}'`
8175
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8176
echo "${ECHO_T}$ac_res" >&6; }
8177
if test `eval echo '${'$as_ac_var'}'` = yes; then
8178
cat >>confdefs.h <<_ACEOF
8179
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8183
{ { echo "$as_me:$LINENO: error: Required library function not found" >&5
8184
echo "$as_me: error: Required library function not found" >&2;}
8185
{ (exit 1); exit 1; }; }
8219
for ac_func in daemon chroot getpwnam setuid nice system getpid dup dup2 getpass strerror syslog openlog mlockall getgrnam setgid setgroups stat flock readv writev time setsid chdir putenv getpeername unlink chsize ftruncate execve
8221
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8223
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8224
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8225
echo $ECHO_N "(cached) $ECHO_C" >&6
8227
cat >conftest.$ac_ext <<_ACEOF
8230
cat confdefs.h >>conftest.$ac_ext
8231
cat >>conftest.$ac_ext <<_ACEOF
8232
/* end confdefs.h. */
8233
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8234
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8235
#define $ac_func innocuous_$ac_func
8237
/* System header to define __stub macros and hopefully few prototypes,
8238
which can conflict with char $ac_func (); below.
8239
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240
<limits.h> exists even on freestanding compilers. */
8243
# include <limits.h>
8245
# include <assert.h>
8250
/* Override any GCC internal prototype to avoid an error.
8251
Use char because int might match the return type of a GCC
8252
builtin and then its argument prototype would still apply. */
8257
/* The GNU C library defines this for functions which it implements
8258
to always fail with ENOSYS. Some functions are actually named
8259
something starting with __ and the normal name is an alias. */
8260
#if defined __stub_$ac_func || defined __stub___$ac_func
8272
rm -f conftest.$ac_objext conftest$ac_exeext
8273
if { (ac_try="$ac_link"
8275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276
*) ac_try_echo=$ac_try;;
8278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279
(eval "$ac_link") 2>conftest.er1
8281
grep -v '^ *+' conftest.er1 >conftest.err
8283
cat conftest.err >&5
8284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285
(exit $ac_status); } && {
8286
test -z "$ac_c_werror_flag" ||
8287
test ! -s conftest.err
8288
} && test -s conftest$ac_exeext &&
8289
$as_test_x conftest$ac_exeext; then
8290
eval "$as_ac_var=yes"
8292
echo "$as_me: failed program was:" >&5
8293
sed 's/^/| /' conftest.$ac_ext >&5
8295
eval "$as_ac_var=no"
8298
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8299
conftest$ac_exeext conftest.$ac_ext
8301
ac_res=`eval echo '${'$as_ac_var'}'`
8302
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8303
echo "${ECHO_T}$ac_res" >&6; }
8304
if test `eval echo '${'$as_ac_var'}'` = yes; then
8305
cat >>confdefs.h <<_ACEOF
8306
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8313
# Windows use stdcall for winsock so we cannot auto detect these
8290
8317
if test "${WIN32}" = "yes"; then
9420
for ac_func in setsockopt getsockopt getsockname poll sendmsg recvmsg
9422
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9423
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9424
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9425
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9426
echo $ECHO_N "(cached) $ECHO_C" >&6
9428
cat >conftest.$ac_ext <<_ACEOF
9431
cat confdefs.h >>conftest.$ac_ext
9432
cat >>conftest.$ac_ext <<_ACEOF
9433
/* end confdefs.h. */
9434
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9435
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9436
#define $ac_func innocuous_$ac_func
9438
/* System header to define __stub macros and hopefully few prototypes,
9439
which can conflict with char $ac_func (); below.
9440
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9441
<limits.h> exists even on freestanding compilers. */
9444
# include <limits.h>
9446
# include <assert.h>
9451
/* Override any GCC internal prototype to avoid an error.
9452
Use char because int might match the return type of a GCC
9453
builtin and then its argument prototype would still apply. */
9458
/* The GNU C library defines this for functions which it implements
9459
to always fail with ENOSYS. Some functions are actually named
9460
something starting with __ and the normal name is an alias. */
9461
#if defined __stub_$ac_func || defined __stub___$ac_func
9473
rm -f conftest.$ac_objext conftest$ac_exeext
9474
if { (ac_try="$ac_link"
9476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477
*) ac_try_echo=$ac_try;;
9479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480
(eval "$ac_link") 2>conftest.er1
9482
grep -v '^ *+' conftest.er1 >conftest.err
9484
cat conftest.err >&5
9485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486
(exit $ac_status); } && {
9487
test -z "$ac_c_werror_flag" ||
9488
test ! -s conftest.err
9489
} && test -s conftest$ac_exeext &&
9490
$as_test_x conftest$ac_exeext; then
9491
eval "$as_ac_var=yes"
9493
echo "$as_me: failed program was:" >&5
9494
sed 's/^/| /' conftest.$ac_ext >&5
9496
eval "$as_ac_var=no"
9499
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500
conftest$ac_exeext conftest.$ac_ext
9502
ac_res=`eval echo '${'$as_ac_var'}'`
9503
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9504
echo "${ECHO_T}$ac_res" >&6; }
9505
if test `eval echo '${'$as_ac_var'}'` = yes; then
9506
cat >>confdefs.h <<_ACEOF
9507
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9314
9516
{ echo "$as_me:$LINENO: checking for working memcmp" >&5