35105
35153
rm -f conftest*
35159
for ac_header in sys/types.h sys/socket.h
35161
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35162
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35163
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35164
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35165
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35166
echo $ECHO_N "(cached) $ECHO_C" >&6
35168
ac_res=`eval echo '${'$as_ac_Header'}'`
35169
{ echo "$as_me:$LINENO: result: $ac_res" >&5
35170
echo "${ECHO_T}$ac_res" >&6; }
35172
# Is the header compilable?
35173
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35174
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35175
cat >conftest.$ac_ext <<_ACEOF
35178
cat confdefs.h >>conftest.$ac_ext
35179
cat >>conftest.$ac_ext <<_ACEOF
35180
/* end confdefs.h. */
35181
$ac_includes_default
35182
#include <$ac_header>
35184
rm -f conftest.$ac_objext
35185
if { (ac_try="$ac_compile"
35186
case "(($ac_try" in
35187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35188
*) ac_try_echo=$ac_try;;
35190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35191
(eval "$ac_compile") 2>conftest.er1
35193
grep -v '^ *+' conftest.er1 >conftest.err
35195
cat conftest.err >&5
35196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197
(exit $ac_status); } &&
35198
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35199
{ (case "(($ac_try" in
35200
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35201
*) ac_try_echo=$ac_try;;
35203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35204
(eval "$ac_try") 2>&5
35206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207
(exit $ac_status); }; } &&
35208
{ ac_try='test -s conftest.$ac_objext'
35209
{ (case "(($ac_try" in
35210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35211
*) ac_try_echo=$ac_try;;
35213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35214
(eval "$ac_try") 2>&5
35216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217
(exit $ac_status); }; }; then
35218
ac_header_compiler=yes
35220
echo "$as_me: failed program was:" >&5
35221
sed 's/^/| /' conftest.$ac_ext >&5
35223
ac_header_compiler=no
35226
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35227
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35228
echo "${ECHO_T}$ac_header_compiler" >&6; }
35230
# Is the header present?
35231
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35232
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35233
cat >conftest.$ac_ext <<_ACEOF
35236
cat confdefs.h >>conftest.$ac_ext
35237
cat >>conftest.$ac_ext <<_ACEOF
35238
/* end confdefs.h. */
35239
#include <$ac_header>
35241
if { (ac_try="$ac_cpp conftest.$ac_ext"
35242
case "(($ac_try" in
35243
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35244
*) ac_try_echo=$ac_try;;
35246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35247
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35249
grep -v '^ *+' conftest.er1 >conftest.err
35251
cat conftest.err >&5
35252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253
(exit $ac_status); } >/dev/null; then
35254
if test -s conftest.err; then
35255
ac_cpp_err=$ac_c_preproc_warn_flag
35256
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35263
if test -z "$ac_cpp_err"; then
35264
ac_header_preproc=yes
35266
echo "$as_me: failed program was:" >&5
35267
sed 's/^/| /' conftest.$ac_ext >&5
35269
ac_header_preproc=no
35272
rm -f conftest.err conftest.$ac_ext
35273
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35274
echo "${ECHO_T}$ac_header_preproc" >&6; }
35276
# So? What about this header?
35277
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35279
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35280
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35281
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35282
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35283
ac_header_preproc=yes
35286
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35287
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35288
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35289
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35290
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35291
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35292
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35293
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35294
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35295
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35296
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35297
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35299
## ------------------------------------------------------------------------ ##
35300
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
35301
## ------------------------------------------------------------------------ ##
35303
) | sed "s/^/$as_me: WARNING: /" >&2
35306
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35307
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35308
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35309
echo $ECHO_N "(cached) $ECHO_C" >&6
35311
eval "$as_ac_Header=\$ac_header_preproc"
35313
ac_res=`eval echo '${'$as_ac_Header'}'`
35314
{ echo "$as_me:$LINENO: result: $ac_res" >&5
35315
echo "${ECHO_T}$ac_res" >&6; }
35318
if test `eval echo '${'$as_ac_Header'}'` = yes; then
35319
cat >>confdefs.h <<_ACEOF
35320
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35328
{ echo "$as_me:$LINENO: checking for recv" >&5
35329
echo $ECHO_N "checking for recv... $ECHO_C" >&6; }
35330
cat >conftest.$ac_ext <<_ACEOF
35333
cat confdefs.h >>conftest.$ac_ext
35334
cat >>conftest.$ac_ext <<_ACEOF
35335
/* end confdefs.h. */
35338
#ifdef HAVE_WINDOWS_H
35339
#ifndef WIN32_LEAN_AND_MEAN
35340
#define WIN32_LEAN_AND_MEAN
35342
#include <windows.h>
35343
#ifdef HAVE_WINSOCK2_H
35344
#include <winsock2.h>
35346
#ifdef HAVE_WINSOCK_H
35347
#include <winsock.h>
35351
#ifdef HAVE_SYS_TYPES_H
35352
#include <sys/types.h>
35354
#ifdef HAVE_SYS_SOCKET_H
35355
#include <sys/socket.h>
35369
rm -f conftest.$ac_objext conftest$ac_exeext
35370
if { (ac_try="$ac_link"
35371
case "(($ac_try" in
35372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35373
*) ac_try_echo=$ac_try;;
35375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35376
(eval "$ac_link") 2>conftest.er1
35378
grep -v '^ *+' conftest.er1 >conftest.err
35380
cat conftest.err >&5
35381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382
(exit $ac_status); } &&
35383
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35384
{ (case "(($ac_try" in
35385
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35386
*) ac_try_echo=$ac_try;;
35388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35389
(eval "$ac_try") 2>&5
35391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392
(exit $ac_status); }; } &&
35393
{ ac_try='test -s conftest$ac_exeext'
35394
{ (case "(($ac_try" in
35395
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35396
*) ac_try_echo=$ac_try;;
35398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35399
(eval "$ac_try") 2>&5
35401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402
(exit $ac_status); }; }; then
35404
{ echo "$as_me:$LINENO: result: yes" >&5
35405
echo "${ECHO_T}yes" >&6; }
35409
echo "$as_me: failed program was:" >&5
35410
sed 's/^/| /' conftest.$ac_ext >&5
35413
{ echo "$as_me:$LINENO: result: no" >&5
35414
echo "${ECHO_T}no" >&6; }
35419
rm -f conftest.err conftest.$ac_objext \
35420
conftest$ac_exeext conftest.$ac_ext
35422
if test "$curl_cv_recv" = "yes"; then
35423
{ echo "$as_me:$LINENO: checking types of arguments and return type for recv" >&5
35424
echo $ECHO_N "checking types of arguments and return type for recv... $ECHO_C" >&6; }
35425
if test "${curl_cv_func_recv_args+set}" = set; then
35426
echo $ECHO_N "(cached) $ECHO_C" >&6
35429
curl_cv_func_recv_args="unknown"
35430
for recv_retv in 'int' 'ssize_t'; do
35431
for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
35432
for recv_arg2 in 'char *' 'void *'; do
35433
for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
35434
for recv_arg4 in 'int' 'unsigned int'; do
35435
cat >conftest.$ac_ext <<_ACEOF
35439
cat confdefs.h >>conftest.$ac_ext
35440
cat >>conftest.$ac_ext <<_ACEOF
35441
/* end confdefs.h. */
35444
#ifdef HAVE_WINDOWS_H
35445
#ifndef WIN32_LEAN_AND_MEAN
35446
#define WIN32_LEAN_AND_MEAN
35448
#include <windows.h>
35449
#ifdef HAVE_WINSOCK2_H
35450
#include <winsock2.h>
35452
#ifdef HAVE_WINSOCK_H
35453
#include <winsock.h>
35456
#define RECVCALLCONV PASCAL
35458
#ifdef HAVE_SYS_TYPES_H
35459
#include <sys/types.h>
35461
#ifdef HAVE_SYS_SOCKET_H
35462
#include <sys/socket.h>
35464
#define RECVCALLCONV
35466
extern $recv_retv RECVCALLCONV recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
35475
$recv_arg4 flags=0;
35476
$recv_retv res = recv(s, buf, len, flags);
35483
rm -f conftest.$ac_objext
35484
if { (ac_try="$ac_compile"
35485
case "(($ac_try" in
35486
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35487
*) ac_try_echo=$ac_try;;
35489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35490
(eval "$ac_compile") 2>conftest.er1
35492
grep -v '^ *+' conftest.er1 >conftest.err
35494
cat conftest.err >&5
35495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496
(exit $ac_status); } &&
35497
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35498
{ (case "(($ac_try" in
35499
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35500
*) ac_try_echo=$ac_try;;
35502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35503
(eval "$ac_try") 2>&5
35505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506
(exit $ac_status); }; } &&
35507
{ ac_try='test -s conftest.$ac_objext'
35508
{ (case "(($ac_try" in
35509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35510
*) ac_try_echo=$ac_try;;
35512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35513
(eval "$ac_try") 2>&5
35515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516
(exit $ac_status); }; }; then
35518
curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
35522
echo "$as_me: failed program was:" >&5
35523
sed 's/^/| /' conftest.$ac_ext >&5
35528
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35536
{ echo "$as_me:$LINENO: result: $curl_cv_func_recv_args" >&5
35537
echo "${ECHO_T}$curl_cv_func_recv_args" >&6; } # AC_CACHE_CHECK
35538
if test "$curl_cv_func_recv_args" = "unknown"; then
35539
{ { echo "$as_me:$LINENO: error: Cannot find proper types to use for recv args" >&5
35540
echo "$as_me: error: Cannot find proper types to use for recv args" >&2;}
35541
{ (exit 1); exit 1; }; }
35543
recv_prev_IFS=$IFS; IFS=','
35544
set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
35549
cat >>confdefs.h <<_ACEOF
35550
#define RECV_TYPE_ARG1 $1
35554
cat >>confdefs.h <<_ACEOF
35555
#define RECV_TYPE_ARG2 $2
35559
cat >>confdefs.h <<_ACEOF
35560
#define RECV_TYPE_ARG3 $3
35564
cat >>confdefs.h <<_ACEOF
35565
#define RECV_TYPE_ARG4 $4
35569
cat >>confdefs.h <<_ACEOF
35570
#define RECV_TYPE_RETV $5
35575
cat >>confdefs.h <<_ACEOF
35576
#define HAVE_RECV 1
35579
ac_cv_func_recv="yes"
35582
{ { echo "$as_me:$LINENO: error: Unable to link function recv" >&5
35583
echo "$as_me: error: Unable to link function recv" >&2;}
35584
{ (exit 1); exit 1; }; }
35591
for ac_header in sys/types.h sys/socket.h
35593
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35594
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35595
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35596
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35597
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35598
echo $ECHO_N "(cached) $ECHO_C" >&6
35600
ac_res=`eval echo '${'$as_ac_Header'}'`
35601
{ echo "$as_me:$LINENO: result: $ac_res" >&5
35602
echo "${ECHO_T}$ac_res" >&6; }
35604
# Is the header compilable?
35605
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
35606
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35607
cat >conftest.$ac_ext <<_ACEOF
35610
cat confdefs.h >>conftest.$ac_ext
35611
cat >>conftest.$ac_ext <<_ACEOF
35612
/* end confdefs.h. */
35613
$ac_includes_default
35614
#include <$ac_header>
35616
rm -f conftest.$ac_objext
35617
if { (ac_try="$ac_compile"
35618
case "(($ac_try" in
35619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35620
*) ac_try_echo=$ac_try;;
35622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35623
(eval "$ac_compile") 2>conftest.er1
35625
grep -v '^ *+' conftest.er1 >conftest.err
35627
cat conftest.err >&5
35628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629
(exit $ac_status); } &&
35630
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35631
{ (case "(($ac_try" in
35632
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35633
*) ac_try_echo=$ac_try;;
35635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35636
(eval "$ac_try") 2>&5
35638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639
(exit $ac_status); }; } &&
35640
{ ac_try='test -s conftest.$ac_objext'
35641
{ (case "(($ac_try" in
35642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35643
*) ac_try_echo=$ac_try;;
35645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35646
(eval "$ac_try") 2>&5
35648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35649
(exit $ac_status); }; }; then
35650
ac_header_compiler=yes
35652
echo "$as_me: failed program was:" >&5
35653
sed 's/^/| /' conftest.$ac_ext >&5
35655
ac_header_compiler=no
35658
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35659
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35660
echo "${ECHO_T}$ac_header_compiler" >&6; }
35662
# Is the header present?
35663
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
35664
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35665
cat >conftest.$ac_ext <<_ACEOF
35668
cat confdefs.h >>conftest.$ac_ext
35669
cat >>conftest.$ac_ext <<_ACEOF
35670
/* end confdefs.h. */
35671
#include <$ac_header>
35673
if { (ac_try="$ac_cpp conftest.$ac_ext"
35674
case "(($ac_try" in
35675
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35676
*) ac_try_echo=$ac_try;;
35678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35679
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35681
grep -v '^ *+' conftest.er1 >conftest.err
35683
cat conftest.err >&5
35684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685
(exit $ac_status); } >/dev/null; then
35686
if test -s conftest.err; then
35687
ac_cpp_err=$ac_c_preproc_warn_flag
35688
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35695
if test -z "$ac_cpp_err"; then
35696
ac_header_preproc=yes
35698
echo "$as_me: failed program was:" >&5
35699
sed 's/^/| /' conftest.$ac_ext >&5
35701
ac_header_preproc=no
35704
rm -f conftest.err conftest.$ac_ext
35705
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35706
echo "${ECHO_T}$ac_header_preproc" >&6; }
35708
# So? What about this header?
35709
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35711
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35712
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35713
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35714
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35715
ac_header_preproc=yes
35718
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35719
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35720
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35721
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35722
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35723
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35724
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35725
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35726
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35727
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35728
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35729
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35731
## ------------------------------------------------------------------------ ##
35732
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
35733
## ------------------------------------------------------------------------ ##
35735
) | sed "s/^/$as_me: WARNING: /" >&2
35738
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35739
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35740
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35741
echo $ECHO_N "(cached) $ECHO_C" >&6
35743
eval "$as_ac_Header=\$ac_header_preproc"
35745
ac_res=`eval echo '${'$as_ac_Header'}'`
35746
{ echo "$as_me:$LINENO: result: $ac_res" >&5
35747
echo "${ECHO_T}$ac_res" >&6; }
35750
if test `eval echo '${'$as_ac_Header'}'` = yes; then
35751
cat >>confdefs.h <<_ACEOF
35752
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35760
{ echo "$as_me:$LINENO: checking for send" >&5
35761
echo $ECHO_N "checking for send... $ECHO_C" >&6; }
35762
cat >conftest.$ac_ext <<_ACEOF
35765
cat confdefs.h >>conftest.$ac_ext
35766
cat >>conftest.$ac_ext <<_ACEOF
35767
/* end confdefs.h. */
35770
#ifdef HAVE_WINDOWS_H
35771
#ifndef WIN32_LEAN_AND_MEAN
35772
#define WIN32_LEAN_AND_MEAN
35774
#include <windows.h>
35775
#ifdef HAVE_WINSOCK2_H
35776
#include <winsock2.h>
35778
#ifdef HAVE_WINSOCK_H
35779
#include <winsock.h>
35783
#ifdef HAVE_SYS_TYPES_H
35784
#include <sys/types.h>
35786
#ifdef HAVE_SYS_SOCKET_H
35787
#include <sys/socket.h>
35801
rm -f conftest.$ac_objext conftest$ac_exeext
35802
if { (ac_try="$ac_link"
35803
case "(($ac_try" in
35804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35805
*) ac_try_echo=$ac_try;;
35807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35808
(eval "$ac_link") 2>conftest.er1
35810
grep -v '^ *+' conftest.er1 >conftest.err
35812
cat conftest.err >&5
35813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814
(exit $ac_status); } &&
35815
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35816
{ (case "(($ac_try" in
35817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35818
*) ac_try_echo=$ac_try;;
35820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35821
(eval "$ac_try") 2>&5
35823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824
(exit $ac_status); }; } &&
35825
{ ac_try='test -s conftest$ac_exeext'
35826
{ (case "(($ac_try" in
35827
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35828
*) ac_try_echo=$ac_try;;
35830
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35831
(eval "$ac_try") 2>&5
35833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834
(exit $ac_status); }; }; then
35836
{ echo "$as_me:$LINENO: result: yes" >&5
35837
echo "${ECHO_T}yes" >&6; }
35841
echo "$as_me: failed program was:" >&5
35842
sed 's/^/| /' conftest.$ac_ext >&5
35845
{ echo "$as_me:$LINENO: result: no" >&5
35846
echo "${ECHO_T}no" >&6; }
35851
rm -f conftest.err conftest.$ac_objext \
35852
conftest$ac_exeext conftest.$ac_ext
35854
if test "$curl_cv_send" = "yes"; then
35855
{ echo "$as_me:$LINENO: checking types of arguments and return type for send" >&5
35856
echo $ECHO_N "checking types of arguments and return type for send... $ECHO_C" >&6; }
35857
if test "${curl_cv_func_send_args+set}" = set; then
35858
echo $ECHO_N "(cached) $ECHO_C" >&6
35861
curl_cv_func_send_args="unknown"
35862
for send_retv in 'int' 'ssize_t'; do
35863
for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
35864
for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
35865
for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
35866
for send_arg4 in 'int' 'unsigned int'; do
35867
cat >conftest.$ac_ext <<_ACEOF
35871
cat confdefs.h >>conftest.$ac_ext
35872
cat >>conftest.$ac_ext <<_ACEOF
35873
/* end confdefs.h. */
35876
#ifdef HAVE_WINDOWS_H
35877
#ifndef WIN32_LEAN_AND_MEAN
35878
#define WIN32_LEAN_AND_MEAN
35880
#include <windows.h>
35881
#ifdef HAVE_WINSOCK2_H
35882
#include <winsock2.h>
35884
#ifdef HAVE_WINSOCK_H
35885
#include <winsock.h>
35888
#define SENDCALLCONV PASCAL
35890
#ifdef HAVE_SYS_TYPES_H
35891
#include <sys/types.h>
35893
#ifdef HAVE_SYS_SOCKET_H
35894
#include <sys/socket.h>
35896
#define SENDCALLCONV
35898
extern $send_retv SENDCALLCONV send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
35906
$send_arg4 flags=0;
35907
$send_retv res = send(s, 0, len, flags);
35914
rm -f conftest.$ac_objext
35915
if { (ac_try="$ac_compile"
35916
case "(($ac_try" in
35917
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35918
*) ac_try_echo=$ac_try;;
35920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35921
(eval "$ac_compile") 2>conftest.er1
35923
grep -v '^ *+' conftest.er1 >conftest.err
35925
cat conftest.err >&5
35926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927
(exit $ac_status); } &&
35928
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35929
{ (case "(($ac_try" in
35930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35931
*) ac_try_echo=$ac_try;;
35933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35934
(eval "$ac_try") 2>&5
35936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937
(exit $ac_status); }; } &&
35938
{ ac_try='test -s conftest.$ac_objext'
35939
{ (case "(($ac_try" in
35940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35941
*) ac_try_echo=$ac_try;;
35943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35944
(eval "$ac_try") 2>&5
35946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947
(exit $ac_status); }; }; then
35949
curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
35953
echo "$as_me: failed program was:" >&5
35954
sed 's/^/| /' conftest.$ac_ext >&5
35959
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35967
{ echo "$as_me:$LINENO: result: $curl_cv_func_send_args" >&5
35968
echo "${ECHO_T}$curl_cv_func_send_args" >&6; } # AC_CACHE_CHECK
35969
if test "$curl_cv_func_send_args" = "unknown"; then
35970
{ { echo "$as_me:$LINENO: error: Cannot find proper types to use for send args" >&5
35971
echo "$as_me: error: Cannot find proper types to use for send args" >&2;}
35972
{ (exit 1); exit 1; }; }
35974
send_prev_IFS=$IFS; IFS=','
35975
set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
35979
send_qual_type_arg2=$2
35982
cat >>confdefs.h <<_ACEOF
35983
#define SEND_TYPE_ARG1 $1
35987
cat >>confdefs.h <<_ACEOF
35988
#define SEND_TYPE_ARG3 $3
35992
cat >>confdefs.h <<_ACEOF
35993
#define SEND_TYPE_ARG4 $4
35997
cat >>confdefs.h <<_ACEOF
35998
#define SEND_TYPE_RETV $5
36004
case $prev_sh_opts in
36012
case "$send_qual_type_arg2" in
36014
send_qual_arg2=const
36015
send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
36019
send_type_arg2=$send_qual_type_arg2
36024
cat >>confdefs.h <<_ACEOF
36025
#define SEND_QUAL_ARG2 $send_qual_arg2
36029
cat >>confdefs.h <<_ACEOF
36030
#define SEND_TYPE_ARG2 $send_type_arg2
36034
case $prev_sh_opts in
36043
cat >>confdefs.h <<_ACEOF
36044
#define HAVE_SEND 1
36047
ac_cv_func_send="yes"
36050
{ { echo "$as_me:$LINENO: error: Unable to link function send" >&5
36051
echo "$as_me: error: Unable to link function send" >&2;}
36052
{ (exit 1); exit 1; }; }
36059
for ac_header in sys/types.h sys/socket.h
36061
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36062
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36063
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
36064
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36065
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36066
echo $ECHO_N "(cached) $ECHO_C" >&6
36068
ac_res=`eval echo '${'$as_ac_Header'}'`
36069
{ echo "$as_me:$LINENO: result: $ac_res" >&5
36070
echo "${ECHO_T}$ac_res" >&6; }
36072
# Is the header compilable?
36073
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
36074
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36075
cat >conftest.$ac_ext <<_ACEOF
36078
cat confdefs.h >>conftest.$ac_ext
36079
cat >>conftest.$ac_ext <<_ACEOF
36080
/* end confdefs.h. */
36081
$ac_includes_default
36082
#include <$ac_header>
36084
rm -f conftest.$ac_objext
36085
if { (ac_try="$ac_compile"
36086
case "(($ac_try" in
36087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36088
*) ac_try_echo=$ac_try;;
36090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36091
(eval "$ac_compile") 2>conftest.er1
36093
grep -v '^ *+' conftest.er1 >conftest.err
36095
cat conftest.err >&5
36096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097
(exit $ac_status); } &&
36098
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36099
{ (case "(($ac_try" in
36100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36101
*) ac_try_echo=$ac_try;;
36103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36104
(eval "$ac_try") 2>&5
36106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107
(exit $ac_status); }; } &&
36108
{ ac_try='test -s conftest.$ac_objext'
36109
{ (case "(($ac_try" in
36110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36111
*) ac_try_echo=$ac_try;;
36113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36114
(eval "$ac_try") 2>&5
36116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117
(exit $ac_status); }; }; then
36118
ac_header_compiler=yes
36120
echo "$as_me: failed program was:" >&5
36121
sed 's/^/| /' conftest.$ac_ext >&5
36123
ac_header_compiler=no
36126
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36127
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36128
echo "${ECHO_T}$ac_header_compiler" >&6; }
36130
# Is the header present?
36131
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
36132
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36133
cat >conftest.$ac_ext <<_ACEOF
36136
cat confdefs.h >>conftest.$ac_ext
36137
cat >>conftest.$ac_ext <<_ACEOF
36138
/* end confdefs.h. */
36139
#include <$ac_header>
36141
if { (ac_try="$ac_cpp conftest.$ac_ext"
36142
case "(($ac_try" in
36143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36144
*) ac_try_echo=$ac_try;;
36146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36147
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36149
grep -v '^ *+' conftest.er1 >conftest.err
36151
cat conftest.err >&5
36152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153
(exit $ac_status); } >/dev/null; then
36154
if test -s conftest.err; then
36155
ac_cpp_err=$ac_c_preproc_warn_flag
36156
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36163
if test -z "$ac_cpp_err"; then
36164
ac_header_preproc=yes
36166
echo "$as_me: failed program was:" >&5
36167
sed 's/^/| /' conftest.$ac_ext >&5
36169
ac_header_preproc=no
36172
rm -f conftest.err conftest.$ac_ext
36173
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36174
echo "${ECHO_T}$ac_header_preproc" >&6; }
36176
# So? What about this header?
36177
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36179
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36180
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36181
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36182
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36183
ac_header_preproc=yes
36186
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36187
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36188
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36189
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36190
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36191
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36192
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36193
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36194
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36195
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36196
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36197
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36199
## ------------------------------------------------------------------------ ##
36200
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
36201
## ------------------------------------------------------------------------ ##
36203
) | sed "s/^/$as_me: WARNING: /" >&2
36206
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
36207
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36208
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36209
echo $ECHO_N "(cached) $ECHO_C" >&6
36211
eval "$as_ac_Header=\$ac_header_preproc"
36213
ac_res=`eval echo '${'$as_ac_Header'}'`
36214
{ echo "$as_me:$LINENO: result: $ac_res" >&5
36215
echo "${ECHO_T}$ac_res" >&6; }
36218
if test `eval echo '${'$as_ac_Header'}'` = yes; then
36219
cat >>confdefs.h <<_ACEOF
36220
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36227
{ echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
36228
echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6; }
36229
if test "${ac_cv_msg_nosignal+set}" = set; then
36230
echo $ECHO_N "(cached) $ECHO_C" >&6
36233
cat >conftest.$ac_ext <<_ACEOF
36237
cat confdefs.h >>conftest.$ac_ext
36238
cat >>conftest.$ac_ext <<_ACEOF
36239
/* end confdefs.h. */
36242
#ifdef HAVE_WINDOWS_H
36243
#ifndef WIN32_LEAN_AND_MEAN
36244
#define WIN32_LEAN_AND_MEAN
36246
#include <windows.h>
36247
#ifdef HAVE_WINSOCK2_H
36248
#include <winsock2.h>
36250
#ifdef HAVE_WINSOCK_H
36251
#include <winsock.h>
36255
#ifdef HAVE_SYS_TYPES_H
36256
#include <sys/types.h>
36258
#ifdef HAVE_SYS_SOCKET_H
36259
#include <sys/socket.h>
36267
int flag=MSG_NOSIGNAL;
36274
rm -f conftest.$ac_objext
36275
if { (ac_try="$ac_compile"
36276
case "(($ac_try" in
36277
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36278
*) ac_try_echo=$ac_try;;
36280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36281
(eval "$ac_compile") 2>conftest.er1
36283
grep -v '^ *+' conftest.er1 >conftest.err
36285
cat conftest.err >&5
36286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287
(exit $ac_status); } &&
36288
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36289
{ (case "(($ac_try" in
36290
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36291
*) ac_try_echo=$ac_try;;
36293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36294
(eval "$ac_try") 2>&5
36296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297
(exit $ac_status); }; } &&
36298
{ ac_try='test -s conftest.$ac_objext'
36299
{ (case "(($ac_try" in
36300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301
*) ac_try_echo=$ac_try;;
36303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36304
(eval "$ac_try") 2>&5
36306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307
(exit $ac_status); }; }; then
36309
ac_cv_msg_nosignal="yes"
36312
echo "$as_me: failed program was:" >&5
36313
sed 's/^/| /' conftest.$ac_ext >&5
36316
ac_cv_msg_nosignal="no"
36320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36323
{ echo "$as_me:$LINENO: result: $ac_cv_msg_nosignal" >&5
36324
echo "${ECHO_T}$ac_cv_msg_nosignal" >&6; }
36325
case "$ac_cv_msg_nosignal" in
36328
cat >>confdefs.h <<_ACEOF
36329
#define HAVE_MSG_NOSIGNAL 1
35108
36336
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
35109
36337
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
35110
36338
if test "${ac_cv_type_signal+set}" = set; then
37671
if test "$ipv6" = "yes"; then
37673
{ echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
37674
echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6; }
37675
if test "${ac_cv_working_getaddrinfo+set}" = set; then
37676
echo $ECHO_N "(cached) $ECHO_C" >&6
37679
if test "$cross_compiling" = yes; then
37681
ac_cv_working_getaddrinfo="yes"
37684
cat >conftest.$ac_ext <<_ACEOF
37687
cat confdefs.h >>conftest.$ac_ext
37688
cat >>conftest.$ac_ext <<_ACEOF
37689
/* end confdefs.h. */
37692
#include <sys/types.h>
37693
#include <sys/socket.h>
37697
struct addrinfo hints, *ai;
37700
memset(&hints, 0, sizeof(hints));
37701
hints.ai_flags = AI_NUMERICHOST;
37702
hints.ai_family = AF_UNSPEC;
37703
hints.ai_socktype = SOCK_STREAM;
37704
error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
37712
rm -f conftest$ac_exeext
37713
if { (ac_try="$ac_link"
37714
case "(($ac_try" in
37715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37716
*) ac_try_echo=$ac_try;;
37718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37719
(eval "$ac_link") 2>&5
37721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37723
{ (case "(($ac_try" in
37724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37725
*) ac_try_echo=$ac_try;;
37727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37728
(eval "$ac_try") 2>&5
37730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37731
(exit $ac_status); }; }; then
37733
ac_cv_working_getaddrinfo="yes"
37736
echo "$as_me: program exited with status $ac_status" >&5
37737
echo "$as_me: failed program was:" >&5
37738
sed 's/^/| /' conftest.$ac_ext >&5
37740
( exit $ac_status )
37742
ac_cv_working_getaddrinfo="no"
37745
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37750
{ echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
37751
echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6; }
37752
if test "$ac_cv_working_getaddrinfo" = "yes"; then
37754
cat >>confdefs.h <<\_ACEOF
37755
#define HAVE_GETADDRINFO 1
37759
cat >>confdefs.h <<\_ACEOF
37760
#define ENABLE_IPV6 1
37775
for ac_header in stdio.h sys/types.h sys/socket.h \
37776
netdb.h netinet/in.h arpa/inet.h
37778
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37779
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37780
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
37781
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37782
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37783
echo $ECHO_N "(cached) $ECHO_C" >&6
37785
ac_res=`eval echo '${'$as_ac_Header'}'`
37786
{ echo "$as_me:$LINENO: result: $ac_res" >&5
37787
echo "${ECHO_T}$ac_res" >&6; }
37789
# Is the header compilable?
37790
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
37791
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37792
cat >conftest.$ac_ext <<_ACEOF
37795
cat confdefs.h >>conftest.$ac_ext
37796
cat >>conftest.$ac_ext <<_ACEOF
37797
/* end confdefs.h. */
37798
$ac_includes_default
37799
#include <$ac_header>
37801
rm -f conftest.$ac_objext
37802
if { (ac_try="$ac_compile"
37803
case "(($ac_try" in
37804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37805
*) ac_try_echo=$ac_try;;
37807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37808
(eval "$ac_compile") 2>conftest.er1
37810
grep -v '^ *+' conftest.er1 >conftest.err
37812
cat conftest.err >&5
37813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814
(exit $ac_status); } &&
37815
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37816
{ (case "(($ac_try" in
37817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37818
*) ac_try_echo=$ac_try;;
37820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37821
(eval "$ac_try") 2>&5
37823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824
(exit $ac_status); }; } &&
37825
{ ac_try='test -s conftest.$ac_objext'
37826
{ (case "(($ac_try" in
37827
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37828
*) ac_try_echo=$ac_try;;
37830
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37831
(eval "$ac_try") 2>&5
37833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834
(exit $ac_status); }; }; then
37835
ac_header_compiler=yes
37837
echo "$as_me: failed program was:" >&5
37838
sed 's/^/| /' conftest.$ac_ext >&5
37840
ac_header_compiler=no
37843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37844
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37845
echo "${ECHO_T}$ac_header_compiler" >&6; }
37847
# Is the header present?
37848
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
37849
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37850
cat >conftest.$ac_ext <<_ACEOF
37853
cat confdefs.h >>conftest.$ac_ext
37854
cat >>conftest.$ac_ext <<_ACEOF
37855
/* end confdefs.h. */
37856
#include <$ac_header>
37858
if { (ac_try="$ac_cpp conftest.$ac_ext"
37859
case "(($ac_try" in
37860
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37861
*) ac_try_echo=$ac_try;;
37863
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37864
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37866
grep -v '^ *+' conftest.er1 >conftest.err
37868
cat conftest.err >&5
37869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870
(exit $ac_status); } >/dev/null; then
37871
if test -s conftest.err; then
37872
ac_cpp_err=$ac_c_preproc_warn_flag
37873
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37880
if test -z "$ac_cpp_err"; then
37881
ac_header_preproc=yes
37883
echo "$as_me: failed program was:" >&5
37884
sed 's/^/| /' conftest.$ac_ext >&5
37886
ac_header_preproc=no
37889
rm -f conftest.err conftest.$ac_ext
37890
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37891
echo "${ECHO_T}$ac_header_preproc" >&6; }
37893
# So? What about this header?
37894
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37896
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37897
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37898
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37899
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37900
ac_header_preproc=yes
37903
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37904
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37905
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37906
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37907
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37908
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37909
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37910
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37911
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37912
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37913
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37914
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37916
## ------------------------------------------------------------------------ ##
37917
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
37918
## ------------------------------------------------------------------------ ##
37920
) | sed "s/^/$as_me: WARNING: /" >&2
37923
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
37924
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37925
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37926
echo $ECHO_N "(cached) $ECHO_C" >&6
37928
eval "$as_ac_Header=\$ac_header_preproc"
37930
ac_res=`eval echo '${'$as_ac_Header'}'`
37931
{ echo "$as_me:$LINENO: result: $ac_res" >&5
37932
echo "${ECHO_T}$ac_res" >&6; }
37935
if test `eval echo '${'$as_ac_Header'}'` = yes; then
37936
cat >>confdefs.h <<_ACEOF
37937
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37945
{ echo "$as_me:$LINENO: checking for working NI_WITHSCOPEID" >&5
37946
echo $ECHO_N "checking for working NI_WITHSCOPEID... $ECHO_C" >&6; }
37947
if test "${ac_cv_working_ni_withscopeid+set}" = set; then
37948
echo $ECHO_N "(cached) $ECHO_C" >&6
37951
if test "$cross_compiling" = yes; then
37953
# Program is not run when cross-compiling. So we assume
37954
# NI_WITHSCOPEID will work if we are able to compile it.
37955
cat >conftest.$ac_ext <<_ACEOF
37959
cat confdefs.h >>conftest.$ac_ext
37960
cat >>conftest.$ac_ext <<_ACEOF
37961
/* end confdefs.h. */
37963
#include <sys/types.h>
37964
#include <sys/socket.h>
37971
unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
37978
rm -f conftest.$ac_objext
37979
if { (ac_try="$ac_compile"
37980
case "(($ac_try" in
37981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37982
*) ac_try_echo=$ac_try;;
37984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37985
(eval "$ac_compile") 2>conftest.er1
37987
grep -v '^ *+' conftest.er1 >conftest.err
37989
cat conftest.err >&5
37990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991
(exit $ac_status); } &&
37992
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37993
{ (case "(($ac_try" in
37994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37995
*) ac_try_echo=$ac_try;;
37997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37998
(eval "$ac_try") 2>&5
38000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001
(exit $ac_status); }; } &&
38002
{ ac_try='test -s conftest.$ac_objext'
38003
{ (case "(($ac_try" in
38004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38005
*) ac_try_echo=$ac_try;;
38007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38008
(eval "$ac_try") 2>&5
38010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011
(exit $ac_status); }; }; then
38013
ac_cv_working_ni_withscopeid="yes"
38016
echo "$as_me: failed program was:" >&5
38017
sed 's/^/| /' conftest.$ac_ext >&5
38020
ac_cv_working_ni_withscopeid="no"
38024
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext # AC_COMPILE_IFELSE
38027
cat >conftest.$ac_ext <<_ACEOF
38031
cat confdefs.h >>conftest.$ac_ext
38032
cat >>conftest.$ac_ext <<_ACEOF
38033
/* end confdefs.h. */
38035
#ifdef HAVE_STDIO_H
38038
#ifdef HAVE_SYS_TYPES_H
38039
#include <sys/types.h>
38041
#ifdef HAVE_SYS_SOCKET_H
38042
#include <sys/socket.h>
38044
#ifdef HAVE_NETDB_H
38047
#ifdef HAVE_NETINET_IN_H
38048
#include <netinet/in.h>
38050
#ifdef HAVE_ARPA_INET_H
38051
#include <arpa/inet.h>
38058
#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38059
#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
38060
struct sockaddr_storage sa;
38062
unsigned char sa256;
38064
char hostbufNI_MAXHOST;
38066
GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
38067
GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
38068
GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38069
int fd = socket(AF_INET6, SOCK_STREAM, 0);
38071
perror("socket()");
38072
return 1; /* Error creating socket */
38074
rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
38076
perror("getsockname()");
38077
return 2; /* Error retrieving socket name */
38079
rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
38081
printf("rc = %s\n", gai_strerror(rc));
38082
return 3; /* Error translating socket address */
38084
return 0; /* Ok, NI_WITHSCOPEID works */
38086
return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38091
} # AC_LANG_PROGRAM
38094
rm -f conftest$ac_exeext
38095
if { (ac_try="$ac_link"
38096
case "(($ac_try" in
38097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098
*) ac_try_echo=$ac_try;;
38100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38101
(eval "$ac_link") 2>&5
38103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38105
{ (case "(($ac_try" in
38106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38107
*) ac_try_echo=$ac_try;;
38109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38110
(eval "$ac_try") 2>&5
38112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
38113
(exit $ac_status); }; }; then
38115
# Exit code == 0. Program worked.
38116
ac_cv_working_ni_withscopeid="yes"
38119
echo "$as_me: program exited with status $ac_status" >&5
38120
echo "$as_me: failed program was:" >&5
38121
sed 's/^/| /' conftest.$ac_ext >&5
38123
( exit $ac_status )
38125
# Exit code != 0. Program failed.
38126
ac_cv_working_ni_withscopeid="no"
38129
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38135
{ echo "$as_me:$LINENO: result: $ac_cv_working_ni_withscopeid" >&5
38136
echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6; } # AC_CACHE_CHECK
38137
case "$ac_cv_working_ni_withscopeid" in
38140
cat >>confdefs.h <<\_ACEOF
38141
#define HAVE_NI_WITHSCOPEID 1
36404
38149
{ echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
36405
38150
echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6; }
36406
38151
disable_poll=no