~ubuntu-branches/ubuntu/intrepid/curl/intrepid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-10-30 10:56:48 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20061030105648-uo8q8w9xklb40b4k
Tags: 7.15.5-1ubuntu1
* Merge from debian unstable. Remaining Ubuntu changes:
  - debian/control: Drop libdb4.2 build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59d for curl -.
 
3
# Generated by GNU Autoconf 2.59e for curl -.
4
4
#
5
5
# Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
6
6
#
880
880
CURL_DISABLE_DICT
881
881
CURL_DISABLE_TELNET
882
882
CURL_DISABLE_TFTP
883
 
IPV6_ENABLED
884
883
KRB4_ENABLED
885
884
PKGCONFIG
886
885
USE_SSLEAY
893
892
HAVE_LIBZ_TRUE
894
893
HAVE_LIBZ_FALSE
895
894
IDN_ENABLED
 
895
IPV6_ENABLED
896
896
PERL
897
897
NROFF
898
898
MANOPT
904
904
USE_WINDOWS_SSPI
905
905
CURL_DISABLE_CRYPTO_AUTH
906
906
CURL_DISABLE_COOKIES
 
907
CURL_HIDDEN_SYMBOLS
 
908
CURL_EXTERN_SYMBOL
907
909
CROSSCOMPILING_TRUE
908
910
CROSSCOMPILING_FALSE
909
911
LIBOBJS
1547
1549
  --disable-crypto-auth   Disable cryptographic authentication
1548
1550
  --enable-cookies        Enable cookies support
1549
1551
  --disable-cookies       Disable cookies support
 
1552
  --enable-hidden-symbols Hide internal symbols in library
 
1553
  --disable-hidden-symbols
 
1554
                          Leave all symbols with default visibility in library
1550
1555
 
1551
1556
Optional Packages:
1552
1557
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1662
1667
if $ac_init_version; then
1663
1668
  cat <<\_ACEOF
1664
1669
curl configure -
1665
 
generated by GNU Autoconf 2.59d
 
1670
generated by GNU Autoconf 2.59e
1666
1671
 
1667
1672
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668
1673
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1680
1685
running configure, to aid debugging if configure makes a mistake.
1681
1686
 
1682
1687
It was created by curl $as_me -, which was
1683
 
generated by GNU Autoconf 2.59d.  Invocation command line was
 
1688
generated by GNU Autoconf 2.59e.  Invocation command line was
1684
1689
 
1685
1690
  $ $0 $@
1686
1691
 
6286
6291
  ;;
6287
6292
*-*-irix6*)
6288
6293
  # Find out which ABI we are using.
6289
 
  echo '#line 6289 "configure"' > conftest.$ac_ext
 
6294
  echo '#line 6294 "configure"' > conftest.$ac_ext
6290
6295
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6291
6296
  (eval $ac_compile) 2>&5
6292
6297
  ac_status=$?
9281
9286
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282
9287
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283
9288
   -e 's:$: $lt_compiler_flag:'`
9284
 
   (eval echo "\"\$as_me:9284: $lt_compile\"" >&5)
 
9289
   (eval echo "\"\$as_me:9289: $lt_compile\"" >&5)
9285
9290
   (eval "$lt_compile" 2>conftest.err)
9286
9291
   ac_status=$?
9287
9292
   cat conftest.err >&5
9288
 
   echo "$as_me:9288: \$? = $ac_status" >&5
 
9293
   echo "$as_me:9293: \$? = $ac_status" >&5
9289
9294
   if (exit $ac_status) && test -s "$ac_outfile"; then
9290
9295
     # The compiler can only warn and ignore the option if not recognized
9291
9296
     # So say no if there are warnings other than the usual output.
9549
9554
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9550
9555
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9551
9556
   -e 's:$: $lt_compiler_flag:'`
9552
 
   (eval echo "\"\$as_me:9552: $lt_compile\"" >&5)
 
9557
   (eval echo "\"\$as_me:9557: $lt_compile\"" >&5)
9553
9558
   (eval "$lt_compile" 2>conftest.err)
9554
9559
   ac_status=$?
9555
9560
   cat conftest.err >&5
9556
 
   echo "$as_me:9556: \$? = $ac_status" >&5
 
9561
   echo "$as_me:9561: \$? = $ac_status" >&5
9557
9562
   if (exit $ac_status) && test -s "$ac_outfile"; then
9558
9563
     # The compiler can only warn and ignore the option if not recognized
9559
9564
     # So say no if there are warnings other than the usual output.
9653
9658
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654
9659
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655
9660
   -e 's:$: $lt_compiler_flag:'`
9656
 
   (eval echo "\"\$as_me:9656: $lt_compile\"" >&5)
 
9661
   (eval echo "\"\$as_me:9661: $lt_compile\"" >&5)
9657
9662
   (eval "$lt_compile" 2>out/conftest.err)
9658
9663
   ac_status=$?
9659
9664
   cat out/conftest.err >&5
9660
 
   echo "$as_me:9660: \$? = $ac_status" >&5
 
9665
   echo "$as_me:9665: \$? = $ac_status" >&5
9661
9666
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9662
9667
   then
9663
9668
     # The compiler can only warn and ignore the option if not recognized
12094
12099
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12095
12100
  lt_status=$lt_dlunknown
12096
12101
  cat > conftest.$ac_ext <<EOF
12097
 
#line 12097 "configure"
 
12102
#line 12102 "configure"
12098
12103
#include "confdefs.h"
12099
12104
 
12100
12105
#if HAVE_DLFCN_H
12194
12199
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12195
12200
  lt_status=$lt_dlunknown
12196
12201
  cat > conftest.$ac_ext <<EOF
12197
 
#line 12197 "configure"
 
12202
#line 12202 "configure"
12198
12203
#include "confdefs.h"
12199
12204
 
12200
12205
#if HAVE_DLFCN_H
14562
14567
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14563
14568
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14564
14569
   -e 's:$: $lt_compiler_flag:'`
14565
 
   (eval echo "\"\$as_me:14565: $lt_compile\"" >&5)
 
14570
   (eval echo "\"\$as_me:14570: $lt_compile\"" >&5)
14566
14571
   (eval "$lt_compile" 2>conftest.err)
14567
14572
   ac_status=$?
14568
14573
   cat conftest.err >&5
14569
 
   echo "$as_me:14569: \$? = $ac_status" >&5
 
14574
   echo "$as_me:14574: \$? = $ac_status" >&5
14570
14575
   if (exit $ac_status) && test -s "$ac_outfile"; then
14571
14576
     # The compiler can only warn and ignore the option if not recognized
14572
14577
     # So say no if there are warnings other than the usual output.
14666
14671
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14667
14672
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14668
14673
   -e 's:$: $lt_compiler_flag:'`
14669
 
   (eval echo "\"\$as_me:14669: $lt_compile\"" >&5)
 
14674
   (eval echo "\"\$as_me:14674: $lt_compile\"" >&5)
14670
14675
   (eval "$lt_compile" 2>out/conftest.err)
14671
14676
   ac_status=$?
14672
14677
   cat out/conftest.err >&5
14673
 
   echo "$as_me:14673: \$? = $ac_status" >&5
 
14678
   echo "$as_me:14678: \$? = $ac_status" >&5
14674
14679
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14675
14680
   then
14676
14681
     # The compiler can only warn and ignore the option if not recognized
16227
16232
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16228
16233
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16229
16234
   -e 's:$: $lt_compiler_flag:'`
16230
 
   (eval echo "\"\$as_me:16230: $lt_compile\"" >&5)
 
16235
   (eval echo "\"\$as_me:16235: $lt_compile\"" >&5)
16231
16236
   (eval "$lt_compile" 2>conftest.err)
16232
16237
   ac_status=$?
16233
16238
   cat conftest.err >&5
16234
 
   echo "$as_me:16234: \$? = $ac_status" >&5
 
16239
   echo "$as_me:16239: \$? = $ac_status" >&5
16235
16240
   if (exit $ac_status) && test -s "$ac_outfile"; then
16236
16241
     # The compiler can only warn and ignore the option if not recognized
16237
16242
     # So say no if there are warnings other than the usual output.
16331
16336
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16332
16337
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16333
16338
   -e 's:$: $lt_compiler_flag:'`
16334
 
   (eval echo "\"\$as_me:16334: $lt_compile\"" >&5)
 
16339
   (eval echo "\"\$as_me:16339: $lt_compile\"" >&5)
16335
16340
   (eval "$lt_compile" 2>out/conftest.err)
16336
16341
   ac_status=$?
16337
16342
   cat out/conftest.err >&5
16338
 
   echo "$as_me:16338: \$? = $ac_status" >&5
 
16343
   echo "$as_me:16343: \$? = $ac_status" >&5
16339
16344
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16340
16345
   then
16341
16346
     # The compiler can only warn and ignore the option if not recognized
18550
18555
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18551
18556
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18552
18557
   -e 's:$: $lt_compiler_flag:'`
18553
 
   (eval echo "\"\$as_me:18553: $lt_compile\"" >&5)
 
18558
   (eval echo "\"\$as_me:18558: $lt_compile\"" >&5)
18554
18559
   (eval "$lt_compile" 2>conftest.err)
18555
18560
   ac_status=$?
18556
18561
   cat conftest.err >&5
18557
 
   echo "$as_me:18557: \$? = $ac_status" >&5
 
18562
   echo "$as_me:18562: \$? = $ac_status" >&5
18558
18563
   if (exit $ac_status) && test -s "$ac_outfile"; then
18559
18564
     # The compiler can only warn and ignore the option if not recognized
18560
18565
     # So say no if there are warnings other than the usual output.
18818
18823
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18819
18824
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18820
18825
   -e 's:$: $lt_compiler_flag:'`
18821
 
   (eval echo "\"\$as_me:18821: $lt_compile\"" >&5)
 
18826
   (eval echo "\"\$as_me:18826: $lt_compile\"" >&5)
18822
18827
   (eval "$lt_compile" 2>conftest.err)
18823
18828
   ac_status=$?
18824
18829
   cat conftest.err >&5
18825
 
   echo "$as_me:18825: \$? = $ac_status" >&5
 
18830
   echo "$as_me:18830: \$? = $ac_status" >&5
18826
18831
   if (exit $ac_status) && test -s "$ac_outfile"; then
18827
18832
     # The compiler can only warn and ignore the option if not recognized
18828
18833
     # So say no if there are warnings other than the usual output.
18922
18927
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18923
18928
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18924
18929
   -e 's:$: $lt_compiler_flag:'`
18925
 
   (eval echo "\"\$as_me:18925: $lt_compile\"" >&5)
 
18930
   (eval echo "\"\$as_me:18930: $lt_compile\"" >&5)
18926
18931
   (eval "$lt_compile" 2>out/conftest.err)
18927
18932
   ac_status=$?
18928
18933
   cat out/conftest.err >&5
18929
 
   echo "$as_me:18929: \$? = $ac_status" >&5
 
18934
   echo "$as_me:18934: \$? = $ac_status" >&5
18930
18935
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18931
18936
   then
18932
18937
     # The compiler can only warn and ignore the option if not recognized
21744
21749
main ()
21745
21750
{
21746
21751
 
 
21752
#ifdef __CYGWIN__
 
21753
        HAVE_WINDOWS_H shall not be defined.
 
21754
#else
21747
21755
        int dummy=2*WINVER;
 
21756
#endif
21748
21757
 
21749
21758
  ;
21750
21759
  return 0;
21802
21811
fi
21803
21812
{ echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21804
21813
echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
21805
 
  if test "x$ac_cv_header_windows_h" = "xyes"; then
 
21814
  case "$ac_cv_header_windows_h" in
 
21815
    yes)
21806
21816
 
21807
21817
cat >>confdefs.h <<_ACEOF
21808
21818
#define HAVE_WINDOWS_H 1
21813
21823
#define WIN32_LEAN_AND_MEAN 1
21814
21824
_ACEOF
21815
21825
 
21816
 
  fi
 
21826
      ;;
 
21827
  esac
21817
21828
 
21818
21829
 
21819
21830
    { echo "$as_me:$LINENO: checking for winsock.h" >&5
21841
21852
main ()
21842
21853
{
21843
21854
 
 
21855
#ifdef __CYGWIN__
 
21856
        HAVE_WINSOCK_H shall not be defined.
 
21857
#else
21844
21858
        int dummy=WSACleanup();
 
21859
#endif
21845
21860
 
21846
21861
  ;
21847
21862
  return 0;
21899
21914
fi
21900
21915
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
21901
21916
echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
21902
 
  if test "x$ac_cv_header_winsock_h" = "xyes"; then
 
21917
  case "$ac_cv_header_winsock_h" in
 
21918
    yes)
21903
21919
 
21904
21920
cat >>confdefs.h <<_ACEOF
21905
21921
#define HAVE_WINSOCK_H 1
21906
21922
_ACEOF
21907
21923
 
21908
 
  fi
 
21924
      ;;
 
21925
  esac
21909
21926
 
21910
21927
 
21911
21928
    { echo "$as_me:$LINENO: checking for winsock2.h" >&5
21933
21950
main ()
21934
21951
{
21935
21952
 
 
21953
#ifdef __CYGWIN__
 
21954
        HAVE_WINSOCK2_H shall not be defined.
 
21955
#else
21936
21956
        int dummy=2*IPPROTO_ESP;
 
21957
#endif
21937
21958
 
21938
21959
  ;
21939
21960
  return 0;
21991
22012
fi
21992
22013
{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21993
22014
echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
21994
 
  if test "x$ac_cv_header_winsock2_h" = "xyes"; then
 
22015
  case "$ac_cv_header_winsock2_h" in
 
22016
    yes)
21995
22017
 
21996
22018
cat >>confdefs.h <<_ACEOF
21997
22019
#define HAVE_WINSOCK2_H 1
21998
22020
_ACEOF
21999
22021
 
22000
 
  fi
 
22022
      ;;
 
22023
  esac
22001
22024
 
22002
22025
 
22003
22026
    { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
22026
22049
main ()
22027
22050
{
22028
22051
 
 
22052
#ifdef __CYGWIN__
 
22053
        HAVE_WS2TCPIP_H shall not be defined.
 
22054
#else
22029
22055
        int dummy=2*IP_PKTINFO;
 
22056
#endif
22030
22057
 
22031
22058
  ;
22032
22059
  return 0;
22084
22111
fi
22085
22112
{ echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
22086
22113
echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
22087
 
  if test "x$ac_cv_header_ws2tcpip_h" = "xyes"; then
 
22114
  case "$ac_cv_header_ws2tcpip_h" in
 
22115
    yes)
22088
22116
 
22089
22117
cat >>confdefs.h <<_ACEOF
22090
22118
#define HAVE_WS2TCPIP_H 1
22091
22119
_ACEOF
22092
22120
 
22093
 
  fi
 
22121
      ;;
 
22122
  esac
22094
22123
 
22095
22124
 
22096
22125
 
22758
22787
 
22759
22788
if test "$HAVE_GETHOSTBYNAME" != "1"
22760
22789
then
 
22790
    { echo "$as_me:$LINENO: checking for gethostbyname for eCos" >&5
 
22791
echo $ECHO_N "checking for gethostbyname for eCos... $ECHO_C" >&6; }
 
22792
  cat >conftest.$ac_ext <<_ACEOF
 
22793
/* confdefs.h.  */
 
22794
_ACEOF
 
22795
cat confdefs.h >>conftest.$ac_ext
 
22796
cat >>conftest.$ac_ext <<_ACEOF
 
22797
/* end confdefs.h.  */
 
22798
 
 
22799
#include <stdio.h>
 
22800
#include <netdb.h>
 
22801
int
 
22802
main ()
 
22803
{
 
22804
gethostbyname("www.dummysite.com");
 
22805
  ;
 
22806
  return 0;
 
22807
}
 
22808
_ACEOF
 
22809
rm -f conftest.$ac_objext conftest$ac_exeext
 
22810
if { (ac_try="$ac_link"
 
22811
case "(($ac_try" in
 
22812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22813
  *) ac_try_echo=$ac_try;;
 
22814
esac
 
22815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22816
  (eval "$ac_link") 2>conftest.er1
 
22817
  ac_status=$?
 
22818
  grep -v '^ *+' conftest.er1 >conftest.err
 
22819
  rm -f conftest.er1
 
22820
  cat conftest.err >&5
 
22821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22822
  (exit $ac_status); } &&
 
22823
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22824
  { (case "(($ac_try" in
 
22825
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22826
  *) ac_try_echo=$ac_try;;
 
22827
esac
 
22828
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22829
  (eval "$ac_try") 2>&5
 
22830
  ac_status=$?
 
22831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22832
  (exit $ac_status); }; } &&
 
22833
         { ac_try='test -s conftest$ac_exeext'
 
22834
  { (case "(($ac_try" in
 
22835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22836
  *) ac_try_echo=$ac_try;;
 
22837
esac
 
22838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22839
  (eval "$ac_try") 2>&5
 
22840
  ac_status=$?
 
22841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22842
  (exit $ac_status); }; }; then
 
22843
                  { echo "$as_me:$LINENO: result: yes" >&5
 
22844
echo "${ECHO_T}yes" >&6; }
 
22845
               HAVE_GETHOSTBYNAME="1"
 
22846
else
 
22847
  echo "$as_me: failed program was:" >&5
 
22848
sed 's/^/| /' conftest.$ac_ext >&5
 
22849
 
 
22850
        { echo "$as_me:$LINENO: result: no" >&5
 
22851
echo "${ECHO_T}no" >&6; }
 
22852
 
 
22853
fi
 
22854
 
 
22855
rm -f conftest.err conftest.$ac_objext \
 
22856
      conftest$ac_exeext conftest.$ac_ext
 
22857
fi
 
22858
 
 
22859
if test "$HAVE_GETHOSTBYNAME" != "1"
 
22860
then
22761
22861
    { echo "$as_me:$LINENO: checking for gethostbyname in -lnet" >&5
22762
22862
echo $ECHO_N "checking for gethostbyname in -lnet... $ECHO_C" >&6; }
22763
22863
if test "${ac_cv_lib_net_gethostbyname+set}" = set; then
23849
23949
 
23850
23950
if test "$ipv6" = "yes"; then
23851
23951
  curl_ipv6_msg="enabled"
23852
 
 
23853
 
 
23854
 
  { echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
23855
 
echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6; }
23856
 
if test "${ac_cv_working_getaddrinfo+set}" = set; then
23857
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23858
 
else
23859
 
 
23860
 
  if test "$cross_compiling" = yes; then
23861
 
 
23862
 
  ac_cv_working_getaddrinfo="yes"
23863
 
 
23864
 
else
23865
 
  cat >conftest.$ac_ext <<_ACEOF
23866
 
/* confdefs.h.  */
23867
 
_ACEOF
23868
 
cat confdefs.h >>conftest.$ac_ext
23869
 
cat >>conftest.$ac_ext <<_ACEOF
23870
 
/* end confdefs.h.  */
23871
 
 
23872
 
#include <netdb.h>
23873
 
#include <sys/types.h>
23874
 
#include <sys/socket.h>
23875
 
 
23876
 
int main(void)
23877
 
{
23878
 
    struct addrinfo hints, *ai;
23879
 
    int error;
23880
 
 
23881
 
    memset(&hints, 0, sizeof(hints));
23882
 
    hints.ai_flags = AI_NUMERICHOST;
23883
 
    hints.ai_family = AF_UNSPEC;
23884
 
    hints.ai_socktype = SOCK_STREAM;
23885
 
    error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
23886
 
    if (error) {
23887
 
        return 1;
23888
 
    }
23889
 
    return 0;
23890
 
}
23891
 
 
23892
 
_ACEOF
23893
 
rm -f conftest$ac_exeext
23894
 
if { (ac_try="$ac_link"
23895
 
case "(($ac_try" in
23896
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897
 
  *) ac_try_echo=$ac_try;;
23898
 
esac
23899
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900
 
  (eval "$ac_link") 2>&5
23901
 
  ac_status=$?
23902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23904
 
  { (case "(($ac_try" in
23905
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906
 
  *) ac_try_echo=$ac_try;;
23907
 
esac
23908
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909
 
  (eval "$ac_try") 2>&5
23910
 
  ac_status=$?
23911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912
 
  (exit $ac_status); }; }; then
23913
 
 
23914
 
  ac_cv_working_getaddrinfo="yes"
23915
 
 
23916
 
else
23917
 
  echo "$as_me: program exited with status $ac_status" >&5
23918
 
echo "$as_me: failed program was:" >&5
23919
 
sed 's/^/| /' conftest.$ac_ext >&5
23920
 
 
23921
 
( exit $ac_status )
23922
 
 
23923
 
  ac_cv_working_getaddrinfo="no"
23924
 
 
23925
 
fi
23926
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23927
 
fi
23928
 
 
23929
 
 
23930
 
fi
23931
 
{ echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
23932
 
echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6; }
23933
 
if test "$ac_cv_working_getaddrinfo" = "yes"; then
23934
 
 
23935
 
cat >>confdefs.h <<\_ACEOF
23936
 
#define HAVE_GETADDRINFO 1
23937
 
_ACEOF
23938
 
 
23939
 
 
23940
 
cat >>confdefs.h <<\_ACEOF
23941
 
#define ENABLE_IPV6 1
23942
 
_ACEOF
23943
 
 
23944
 
 
23945
 
  IPV6_ENABLED=1
23946
 
 
23947
 
fi
23948
 
 
23949
 
 
23950
 
 
23951
 
  { echo "$as_me:$LINENO: checking for working NI_WITHSCOPEID" >&5
23952
 
echo $ECHO_N "checking for working NI_WITHSCOPEID... $ECHO_C" >&6; }
23953
 
if test "${ac_cv_working_ni_withscopeid+set}" = set; then
23954
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23955
 
else
23956
 
 
23957
 
 
23958
 
 if test "$cross_compiling" = yes; then
23959
 
 
23960
 
 
23961
 
 cat >conftest.$ac_ext <<_ACEOF
23962
 
/* confdefs.h.  */
23963
 
_ACEOF
23964
 
cat confdefs.h >>conftest.$ac_ext
23965
 
cat >>conftest.$ac_ext <<_ACEOF
23966
 
/* end confdefs.h.  */
23967
 
 
23968
 
#include <stdio.h>
23969
 
#include <sys/types.h>
23970
 
#include <sys/socket.h>
23971
 
#include <netdb.h>
23972
 
 
23973
 
#ifdef NI_WITHSCOPEID
23974
 
WORKS
23975
 
#endif
23976
 
 
23977
 
_ACEOF
23978
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23979
 
  $EGREP "WORKS" >/dev/null 2>&1; then
23980
 
  ac_cv_working_ni_withscopeid="yes"
23981
 
else
23982
 
  ac_cv_working_ni_withscopeid="no"
23983
 
fi
23984
 
rm -f conftest*
23985
 
 
23986
 
 
23987
 
 
23988
 
 
23989
 
else
23990
 
  cat >conftest.$ac_ext <<_ACEOF
23991
 
 
23992
 
#include <stdio.h>
23993
 
#include <sys/types.h>
23994
 
#include <sys/socket.h>
23995
 
#include <netdb.h>
23996
 
int main()
23997
 
{
23998
 
#ifdef NI_WITHSCOPEID
23999
 
   struct sockaddr_storage ss;
24000
 
   int sslen = sizeof(ss);
24001
 
   int rc;
24002
 
   char hbuf[NI_MAXHOST];
24003
 
   int fd = socket(AF_INET6, SOCK_STREAM, 0);
24004
 
   if(fd < 0) {
24005
 
     perror("socket()");
24006
 
     return 1; /* couldn't create socket of either kind */
24007
 
   }
24008
 
 
24009
 
   rc = getsockname(fd, (struct sockaddr *)&ss, &sslen);
24010
 
   if(rc) {
24011
 
     perror("getsockname()");
24012
 
     return 2;
24013
 
   }
24014
 
 
24015
 
   rc = getnameinfo((struct sockaddr *)&ss, sslen, hbuf, sizeof(hbuf),
24016
 
                     NULL, 0,
24017
 
                     NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID);
24018
 
 
24019
 
   if(rc) {
24020
 
     printf("rc = %s\n", gai_strerror(rc));
24021
 
     return 3;
24022
 
   }
24023
 
 
24024
 
   return 0; /* everything works fine, use NI_WITHSCOPEID! */
24025
 
#else
24026
 
   return 4; /* we don't seem to have the definition, don't use it */
24027
 
#endif
24028
 
}
24029
 
 
24030
 
_ACEOF
24031
 
rm -f conftest$ac_exeext
24032
 
if { (ac_try="$ac_link"
24033
 
case "(($ac_try" in
24034
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035
 
  *) ac_try_echo=$ac_try;;
24036
 
esac
24037
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038
 
  (eval "$ac_link") 2>&5
24039
 
  ac_status=$?
24040
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24042
 
  { (case "(($ac_try" in
24043
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044
 
  *) ac_try_echo=$ac_try;;
24045
 
esac
24046
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047
 
  (eval "$ac_try") 2>&5
24048
 
  ac_status=$?
24049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050
 
  (exit $ac_status); }; }; then
24051
 
   ac_cv_working_ni_withscopeid="yes"
24052
 
else
24053
 
  echo "$as_me: program exited with status $ac_status" >&5
24054
 
echo "$as_me: failed program was:" >&5
24055
 
sed 's/^/| /' conftest.$ac_ext >&5
24056
 
 
24057
 
( exit $ac_status )
24058
 
 ac_cv_working_ni_withscopeid="no"
24059
 
fi
24060
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24061
 
fi
24062
 
 
24063
 
 
24064
 
 
24065
 
fi
24066
 
{ echo "$as_me:$LINENO: result: $ac_cv_working_ni_withscopeid" >&5
24067
 
echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6; }
24068
 
if test "$ac_cv_working_ni_withscopeid" = "yes"; then
24069
 
 
24070
 
cat >>confdefs.h <<\_ACEOF
24071
 
#define HAVE_NI_WITHSCOPEID 1
24072
 
_ACEOF
24073
 
 
24074
 
fi
24075
 
 
24076
 
 
24077
23952
fi
24078
23953
 
24079
23954
# Check whether --enable-nonblocking was given.
31583
31458
 
31584
31459
 
31585
31460
 
 
31461
  { echo "$as_me:$LINENO: checking for malloc.h" >&5
 
31462
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
 
31463
if test "${ac_cv_header_malloc_h+set}" = set; then
 
31464
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31465
else
 
31466
 
 
31467
    cat >conftest.$ac_ext <<_ACEOF
 
31468
 
 
31469
      /* confdefs.h.  */
 
31470
_ACEOF
 
31471
cat confdefs.h >>conftest.$ac_ext
 
31472
cat >>conftest.$ac_ext <<_ACEOF
 
31473
/* end confdefs.h.  */
 
31474
 
 
31475
#include <malloc.h>
 
31476
 
 
31477
int
 
31478
main ()
 
31479
{
 
31480
 
 
31481
        void *p = malloc(10);
 
31482
        void *q = calloc(10,10);
 
31483
        free(p);
 
31484
        free(q);
 
31485
 
 
31486
  ;
 
31487
  return 0;
 
31488
}
 
31489
 
 
31490
_ACEOF
 
31491
rm -f conftest.$ac_objext
 
31492
if { (ac_try="$ac_compile"
 
31493
case "(($ac_try" in
 
31494
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31495
  *) ac_try_echo=$ac_try;;
 
31496
esac
 
31497
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31498
  (eval "$ac_compile") 2>conftest.er1
 
31499
  ac_status=$?
 
31500
  grep -v '^ *+' conftest.er1 >conftest.err
 
31501
  rm -f conftest.er1
 
31502
  cat conftest.err >&5
 
31503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31504
  (exit $ac_status); } &&
 
31505
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31506
  { (case "(($ac_try" in
 
31507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31508
  *) ac_try_echo=$ac_try;;
 
31509
esac
 
31510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31511
  (eval "$ac_try") 2>&5
 
31512
  ac_status=$?
 
31513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31514
  (exit $ac_status); }; } &&
 
31515
         { ac_try='test -s conftest.$ac_objext'
 
31516
  { (case "(($ac_try" in
 
31517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31518
  *) ac_try_echo=$ac_try;;
 
31519
esac
 
31520
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31521
  (eval "$ac_try") 2>&5
 
31522
  ac_status=$?
 
31523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31524
  (exit $ac_status); }; }; then
 
31525
 
 
31526
      ac_cv_header_malloc_h="yes"
 
31527
 
 
31528
else
 
31529
  echo "$as_me: failed program was:" >&5
 
31530
sed 's/^/| /' conftest.$ac_ext >&5
 
31531
 
 
31532
 
 
31533
      ac_cv_header_malloc_h="no"
 
31534
 
 
31535
fi
 
31536
 
 
31537
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31538
 
 
31539
fi
 
31540
{ echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
 
31541
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
 
31542
  if test "$ac_cv_header_malloc_h" = "yes"; then
 
31543
 
 
31544
cat >>confdefs.h <<_ACEOF
 
31545
#define HAVE_MALLOC_H 1
 
31546
_ACEOF
 
31547
 
 
31548
    #
 
31549
    cat >conftest.$ac_ext <<_ACEOF
 
31550
 
 
31551
      /* confdefs.h.  */
 
31552
_ACEOF
 
31553
cat confdefs.h >>conftest.$ac_ext
 
31554
cat >>conftest.$ac_ext <<_ACEOF
 
31555
/* end confdefs.h.  */
 
31556
 
 
31557
#include <stdlib.h>
 
31558
 
 
31559
int
 
31560
main ()
 
31561
{
 
31562
 
 
31563
        void *p = malloc(10);
 
31564
        void *q = calloc(10,10);
 
31565
        free(p);
 
31566
        free(q);
 
31567
 
 
31568
  ;
 
31569
  return 0;
 
31570
}
 
31571
 
 
31572
_ACEOF
 
31573
rm -f conftest.$ac_objext
 
31574
if { (ac_try="$ac_compile"
 
31575
case "(($ac_try" in
 
31576
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31577
  *) ac_try_echo=$ac_try;;
 
31578
esac
 
31579
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31580
  (eval "$ac_compile") 2>conftest.er1
 
31581
  ac_status=$?
 
31582
  grep -v '^ *+' conftest.er1 >conftest.err
 
31583
  rm -f conftest.er1
 
31584
  cat conftest.err >&5
 
31585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31586
  (exit $ac_status); } &&
 
31587
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
31588
  { (case "(($ac_try" in
 
31589
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31590
  *) ac_try_echo=$ac_try;;
 
31591
esac
 
31592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31593
  (eval "$ac_try") 2>&5
 
31594
  ac_status=$?
 
31595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31596
  (exit $ac_status); }; } &&
 
31597
         { ac_try='test -s conftest.$ac_objext'
 
31598
  { (case "(($ac_try" in
 
31599
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
31600
  *) ac_try_echo=$ac_try;;
 
31601
esac
 
31602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
31603
  (eval "$ac_try") 2>&5
 
31604
  ac_status=$?
 
31605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31606
  (exit $ac_status); }; }; then
 
31607
 
 
31608
      curl_cv_need_header_malloc_h="no"
 
31609
 
 
31610
else
 
31611
  echo "$as_me: failed program was:" >&5
 
31612
sed 's/^/| /' conftest.$ac_ext >&5
 
31613
 
 
31614
 
 
31615
      curl_cv_need_header_malloc_h="yes"
 
31616
 
 
31617
fi
 
31618
 
 
31619
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31620
    #
 
31621
    case "$curl_cv_need_header_malloc_h" in
 
31622
      yes)
 
31623
 
 
31624
cat >>confdefs.h <<_ACEOF
 
31625
#define NEED_MALLOC_H 1
 
31626
_ACEOF
 
31627
 
 
31628
        ;;
 
31629
    esac
 
31630
  fi
 
31631
 
31586
31632
 
31587
31633
 
31588
31634
 
31627
31673
        sys/ioctl.h \
31628
31674
        assert.h \
31629
31675
        unistd.h \
31630
 
        malloc.h \
31631
31676
        stdlib.h \
31632
31677
        limits.h \
31633
31678
        arpa/inet.h \
34484
34529
fi
34485
34530
{ echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
34486
34531
echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
34487
 
    if test "$curl_cv_socklen_t_equiv" = "unknown"; then
34488
 
      { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
 
34532
    case "$curl_cv_socklen_t_equiv" in
 
34533
      unknown)
 
34534
        { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
34489
34535
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
34490
34536
   { (exit 1); exit 1; }; }
34491
 
    else
 
34537
        ;;
 
34538
      *)
34492
34539
 
34493
34540
cat >>confdefs.h <<_ACEOF
34494
34541
#define socklen_t $curl_cv_socklen_t_equiv
34495
34542
_ACEOF
34496
34543
 
34497
 
    fi
 
34544
        ;;
 
34545
    esac
34498
34546
 
34499
34547
fi
34500
34548
 
35105
35153
rm -f conftest*
35106
35154
 
35107
35155
 
 
35156
 
 
35157
 
 
35158
 
 
35159
for ac_header in sys/types.h sys/socket.h
 
35160
do
 
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
 
35167
fi
 
35168
ac_res=`eval echo '${'$as_ac_Header'}'`
 
35169
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
35170
echo "${ECHO_T}$ac_res" >&6; }
 
35171
else
 
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
 
35176
/* confdefs.h.  */
 
35177
_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>
 
35183
_ACEOF
 
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;;
 
35189
esac
 
35190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35191
  (eval "$ac_compile") 2>conftest.er1
 
35192
  ac_status=$?
 
35193
  grep -v '^ *+' conftest.er1 >conftest.err
 
35194
  rm -f conftest.er1
 
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;;
 
35202
esac
 
35203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35204
  (eval "$ac_try") 2>&5
 
35205
  ac_status=$?
 
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;;
 
35212
esac
 
35213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35214
  (eval "$ac_try") 2>&5
 
35215
  ac_status=$?
 
35216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35217
  (exit $ac_status); }; }; then
 
35218
  ac_header_compiler=yes
 
35219
else
 
35220
  echo "$as_me: failed program was:" >&5
 
35221
sed 's/^/| /' conftest.$ac_ext >&5
 
35222
 
 
35223
        ac_header_compiler=no
 
35224
fi
 
35225
 
 
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; }
 
35229
 
 
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
 
35234
/* confdefs.h.  */
 
35235
_ACEOF
 
35236
cat confdefs.h >>conftest.$ac_ext
 
35237
cat >>conftest.$ac_ext <<_ACEOF
 
35238
/* end confdefs.h.  */
 
35239
#include <$ac_header>
 
35240
_ACEOF
 
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;;
 
35245
esac
 
35246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35247
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
35248
  ac_status=$?
 
35249
  grep -v '^ *+' conftest.er1 >conftest.err
 
35250
  rm -f conftest.er1
 
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
 
35257
  else
 
35258
    ac_cpp_err=
 
35259
  fi
 
35260
else
 
35261
  ac_cpp_err=yes
 
35262
fi
 
35263
if test -z "$ac_cpp_err"; then
 
35264
  ac_header_preproc=yes
 
35265
else
 
35266
  echo "$as_me: failed program was:" >&5
 
35267
sed 's/^/| /' conftest.$ac_ext >&5
 
35268
 
 
35269
  ac_header_preproc=no
 
35270
fi
 
35271
 
 
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; }
 
35275
 
 
35276
# So?  What about this header?
 
35277
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
35278
  yes:no: )
 
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
 
35284
    ;;
 
35285
  no: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;}
 
35298
    ( cat <<\_ASBOX
 
35299
## ------------------------------------------------------------------------ ##
 
35300
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
 
35301
## ------------------------------------------------------------------------ ##
 
35302
_ASBOX
 
35303
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
35304
    ;;
 
35305
esac
 
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
 
35310
else
 
35311
  eval "$as_ac_Header=\$ac_header_preproc"
 
35312
fi
 
35313
ac_res=`eval echo '${'$as_ac_Header'}'`
 
35314
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
35315
echo "${ECHO_T}$ac_res" >&6; }
 
35316
 
 
35317
fi
 
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
 
35321
_ACEOF
 
35322
 
 
35323
fi
 
35324
 
 
35325
done
 
35326
 
 
35327
  #
 
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
 
35331
/* confdefs.h.  */
 
35332
_ACEOF
 
35333
cat confdefs.h >>conftest.$ac_ext
 
35334
cat >>conftest.$ac_ext <<_ACEOF
 
35335
/* end confdefs.h.  */
 
35336
 
 
35337
#undef inline
 
35338
#ifdef HAVE_WINDOWS_H
 
35339
#ifndef WIN32_LEAN_AND_MEAN
 
35340
#define WIN32_LEAN_AND_MEAN
 
35341
#endif
 
35342
#include <windows.h>
 
35343
#ifdef HAVE_WINSOCK2_H
 
35344
#include <winsock2.h>
 
35345
#else
 
35346
#ifdef HAVE_WINSOCK_H
 
35347
#include <winsock.h>
 
35348
#endif
 
35349
#endif
 
35350
#else
 
35351
#ifdef HAVE_SYS_TYPES_H
 
35352
#include <sys/types.h>
 
35353
#endif
 
35354
#ifdef HAVE_SYS_SOCKET_H
 
35355
#include <sys/socket.h>
 
35356
#endif
 
35357
#endif
 
35358
 
 
35359
int
 
35360
main ()
 
35361
{
 
35362
 
 
35363
      recv(0, 0, 0, 0);
 
35364
 
 
35365
  ;
 
35366
  return 0;
 
35367
}
 
35368
_ACEOF
 
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;;
 
35374
esac
 
35375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35376
  (eval "$ac_link") 2>conftest.er1
 
35377
  ac_status=$?
 
35378
  grep -v '^ *+' conftest.er1 >conftest.err
 
35379
  rm -f conftest.er1
 
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;;
 
35387
esac
 
35388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35389
  (eval "$ac_try") 2>&5
 
35390
  ac_status=$?
 
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;;
 
35397
esac
 
35398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35399
  (eval "$ac_try") 2>&5
 
35400
  ac_status=$?
 
35401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35402
  (exit $ac_status); }; }; then
 
35403
 
 
35404
      { echo "$as_me:$LINENO: result: yes" >&5
 
35405
echo "${ECHO_T}yes" >&6; }
 
35406
      curl_cv_recv="yes"
 
35407
 
 
35408
else
 
35409
  echo "$as_me: failed program was:" >&5
 
35410
sed 's/^/| /' conftest.$ac_ext >&5
 
35411
 
 
35412
 
 
35413
      { echo "$as_me:$LINENO: result: no" >&5
 
35414
echo "${ECHO_T}no" >&6; }
 
35415
      curl_cv_recv="no"
 
35416
 
 
35417
fi
 
35418
 
 
35419
rm -f conftest.err conftest.$ac_objext \
 
35420
      conftest$ac_exeext conftest.$ac_ext
 
35421
  #
 
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
 
35427
else
 
35428
 
 
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
 
35436
 
 
35437
                  /* confdefs.h.  */
 
35438
_ACEOF
 
35439
cat confdefs.h >>conftest.$ac_ext
 
35440
cat >>conftest.$ac_ext <<_ACEOF
 
35441
/* end confdefs.h.  */
 
35442
 
 
35443
#undef inline
 
35444
#ifdef HAVE_WINDOWS_H
 
35445
#ifndef WIN32_LEAN_AND_MEAN
 
35446
#define WIN32_LEAN_AND_MEAN
 
35447
#endif
 
35448
#include <windows.h>
 
35449
#ifdef HAVE_WINSOCK2_H
 
35450
#include <winsock2.h>
 
35451
#else
 
35452
#ifdef HAVE_WINSOCK_H
 
35453
#include <winsock.h>
 
35454
#endif
 
35455
#endif
 
35456
#define RECVCALLCONV PASCAL
 
35457
#else
 
35458
#ifdef HAVE_SYS_TYPES_H
 
35459
#include <sys/types.h>
 
35460
#endif
 
35461
#ifdef HAVE_SYS_SOCKET_H
 
35462
#include <sys/socket.h>
 
35463
#endif
 
35464
#define RECVCALLCONV
 
35465
#endif
 
35466
                    extern $recv_retv RECVCALLCONV recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
 
35467
 
 
35468
int
 
35469
main ()
 
35470
{
 
35471
 
 
35472
                    $recv_arg1 s=0;
 
35473
                    $recv_arg2 buf=0;
 
35474
                    $recv_arg3 len=0;
 
35475
                    $recv_arg4 flags=0;
 
35476
                    $recv_retv res = recv(s, buf, len, flags);
 
35477
 
 
35478
  ;
 
35479
  return 0;
 
35480
}
 
35481
 
 
35482
_ACEOF
 
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;;
 
35488
esac
 
35489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35490
  (eval "$ac_compile") 2>conftest.er1
 
35491
  ac_status=$?
 
35492
  grep -v '^ *+' conftest.er1 >conftest.err
 
35493
  rm -f conftest.er1
 
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;;
 
35501
esac
 
35502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35503
  (eval "$ac_try") 2>&5
 
35504
  ac_status=$?
 
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;;
 
35511
esac
 
35512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35513
  (eval "$ac_try") 2>&5
 
35514
  ac_status=$?
 
35515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35516
  (exit $ac_status); }; }; then
 
35517
 
 
35518
                   curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
 
35519
                   break 5
 
35520
 
 
35521
else
 
35522
  echo "$as_me: failed program was:" >&5
 
35523
sed 's/^/| /' conftest.$ac_ext >&5
 
35524
 
 
35525
 
 
35526
fi
 
35527
 
 
35528
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35529
              done
 
35530
            done
 
35531
          done
 
35532
        done
 
35533
      done
 
35534
 
 
35535
fi
 
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; }; }
 
35542
    else
 
35543
      recv_prev_IFS=$IFS; IFS=','
 
35544
      set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
 
35545
      IFS=$recv_prev_IFS
 
35546
      shift
 
35547
      #
 
35548
 
 
35549
cat >>confdefs.h <<_ACEOF
 
35550
#define RECV_TYPE_ARG1 $1
 
35551
_ACEOF
 
35552
 
 
35553
 
 
35554
cat >>confdefs.h <<_ACEOF
 
35555
#define RECV_TYPE_ARG2 $2
 
35556
_ACEOF
 
35557
 
 
35558
 
 
35559
cat >>confdefs.h <<_ACEOF
 
35560
#define RECV_TYPE_ARG3 $3
 
35561
_ACEOF
 
35562
 
 
35563
 
 
35564
cat >>confdefs.h <<_ACEOF
 
35565
#define RECV_TYPE_ARG4 $4
 
35566
_ACEOF
 
35567
 
 
35568
 
 
35569
cat >>confdefs.h <<_ACEOF
 
35570
#define RECV_TYPE_RETV $5
 
35571
_ACEOF
 
35572
 
 
35573
      #
 
35574
 
 
35575
cat >>confdefs.h <<_ACEOF
 
35576
#define HAVE_RECV 1
 
35577
_ACEOF
 
35578
 
 
35579
      ac_cv_func_recv="yes"
 
35580
    fi
 
35581
  else
 
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; }; }
 
35585
  fi
 
35586
 
 
35587
 
 
35588
 
 
35589
 
 
35590
 
 
35591
for ac_header in sys/types.h sys/socket.h
 
35592
do
 
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
 
35599
fi
 
35600
ac_res=`eval echo '${'$as_ac_Header'}'`
 
35601
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
35602
echo "${ECHO_T}$ac_res" >&6; }
 
35603
else
 
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
 
35608
/* confdefs.h.  */
 
35609
_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>
 
35615
_ACEOF
 
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;;
 
35621
esac
 
35622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35623
  (eval "$ac_compile") 2>conftest.er1
 
35624
  ac_status=$?
 
35625
  grep -v '^ *+' conftest.er1 >conftest.err
 
35626
  rm -f conftest.er1
 
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;;
 
35634
esac
 
35635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35636
  (eval "$ac_try") 2>&5
 
35637
  ac_status=$?
 
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;;
 
35644
esac
 
35645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35646
  (eval "$ac_try") 2>&5
 
35647
  ac_status=$?
 
35648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35649
  (exit $ac_status); }; }; then
 
35650
  ac_header_compiler=yes
 
35651
else
 
35652
  echo "$as_me: failed program was:" >&5
 
35653
sed 's/^/| /' conftest.$ac_ext >&5
 
35654
 
 
35655
        ac_header_compiler=no
 
35656
fi
 
35657
 
 
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; }
 
35661
 
 
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
 
35666
/* confdefs.h.  */
 
35667
_ACEOF
 
35668
cat confdefs.h >>conftest.$ac_ext
 
35669
cat >>conftest.$ac_ext <<_ACEOF
 
35670
/* end confdefs.h.  */
 
35671
#include <$ac_header>
 
35672
_ACEOF
 
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;;
 
35677
esac
 
35678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35679
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
35680
  ac_status=$?
 
35681
  grep -v '^ *+' conftest.er1 >conftest.err
 
35682
  rm -f conftest.er1
 
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
 
35689
  else
 
35690
    ac_cpp_err=
 
35691
  fi
 
35692
else
 
35693
  ac_cpp_err=yes
 
35694
fi
 
35695
if test -z "$ac_cpp_err"; then
 
35696
  ac_header_preproc=yes
 
35697
else
 
35698
  echo "$as_me: failed program was:" >&5
 
35699
sed 's/^/| /' conftest.$ac_ext >&5
 
35700
 
 
35701
  ac_header_preproc=no
 
35702
fi
 
35703
 
 
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; }
 
35707
 
 
35708
# So?  What about this header?
 
35709
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
35710
  yes:no: )
 
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
 
35716
    ;;
 
35717
  no: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;}
 
35730
    ( cat <<\_ASBOX
 
35731
## ------------------------------------------------------------------------ ##
 
35732
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
 
35733
## ------------------------------------------------------------------------ ##
 
35734
_ASBOX
 
35735
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
35736
    ;;
 
35737
esac
 
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
 
35742
else
 
35743
  eval "$as_ac_Header=\$ac_header_preproc"
 
35744
fi
 
35745
ac_res=`eval echo '${'$as_ac_Header'}'`
 
35746
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
35747
echo "${ECHO_T}$ac_res" >&6; }
 
35748
 
 
35749
fi
 
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
 
35753
_ACEOF
 
35754
 
 
35755
fi
 
35756
 
 
35757
done
 
35758
 
 
35759
  #
 
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
 
35763
/* confdefs.h.  */
 
35764
_ACEOF
 
35765
cat confdefs.h >>conftest.$ac_ext
 
35766
cat >>conftest.$ac_ext <<_ACEOF
 
35767
/* end confdefs.h.  */
 
35768
 
 
35769
#undef inline
 
35770
#ifdef HAVE_WINDOWS_H
 
35771
#ifndef WIN32_LEAN_AND_MEAN
 
35772
#define WIN32_LEAN_AND_MEAN
 
35773
#endif
 
35774
#include <windows.h>
 
35775
#ifdef HAVE_WINSOCK2_H
 
35776
#include <winsock2.h>
 
35777
#else
 
35778
#ifdef HAVE_WINSOCK_H
 
35779
#include <winsock.h>
 
35780
#endif
 
35781
#endif
 
35782
#else
 
35783
#ifdef HAVE_SYS_TYPES_H
 
35784
#include <sys/types.h>
 
35785
#endif
 
35786
#ifdef HAVE_SYS_SOCKET_H
 
35787
#include <sys/socket.h>
 
35788
#endif
 
35789
#endif
 
35790
 
 
35791
int
 
35792
main ()
 
35793
{
 
35794
 
 
35795
      send(0, 0, 0, 0);
 
35796
 
 
35797
  ;
 
35798
  return 0;
 
35799
}
 
35800
_ACEOF
 
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;;
 
35806
esac
 
35807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35808
  (eval "$ac_link") 2>conftest.er1
 
35809
  ac_status=$?
 
35810
  grep -v '^ *+' conftest.er1 >conftest.err
 
35811
  rm -f conftest.er1
 
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;;
 
35819
esac
 
35820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35821
  (eval "$ac_try") 2>&5
 
35822
  ac_status=$?
 
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;;
 
35829
esac
 
35830
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35831
  (eval "$ac_try") 2>&5
 
35832
  ac_status=$?
 
35833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35834
  (exit $ac_status); }; }; then
 
35835
 
 
35836
      { echo "$as_me:$LINENO: result: yes" >&5
 
35837
echo "${ECHO_T}yes" >&6; }
 
35838
      curl_cv_send="yes"
 
35839
 
 
35840
else
 
35841
  echo "$as_me: failed program was:" >&5
 
35842
sed 's/^/| /' conftest.$ac_ext >&5
 
35843
 
 
35844
 
 
35845
      { echo "$as_me:$LINENO: result: no" >&5
 
35846
echo "${ECHO_T}no" >&6; }
 
35847
      curl_cv_send="no"
 
35848
 
 
35849
fi
 
35850
 
 
35851
rm -f conftest.err conftest.$ac_objext \
 
35852
      conftest$ac_exeext conftest.$ac_ext
 
35853
  #
 
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
 
35859
else
 
35860
 
 
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
 
35868
 
 
35869
                  /* confdefs.h.  */
 
35870
_ACEOF
 
35871
cat confdefs.h >>conftest.$ac_ext
 
35872
cat >>conftest.$ac_ext <<_ACEOF
 
35873
/* end confdefs.h.  */
 
35874
 
 
35875
#undef inline
 
35876
#ifdef HAVE_WINDOWS_H
 
35877
#ifndef WIN32_LEAN_AND_MEAN
 
35878
#define WIN32_LEAN_AND_MEAN
 
35879
#endif
 
35880
#include <windows.h>
 
35881
#ifdef HAVE_WINSOCK2_H
 
35882
#include <winsock2.h>
 
35883
#else
 
35884
#ifdef HAVE_WINSOCK_H
 
35885
#include <winsock.h>
 
35886
#endif
 
35887
#endif
 
35888
#define SENDCALLCONV PASCAL
 
35889
#else
 
35890
#ifdef HAVE_SYS_TYPES_H
 
35891
#include <sys/types.h>
 
35892
#endif
 
35893
#ifdef HAVE_SYS_SOCKET_H
 
35894
#include <sys/socket.h>
 
35895
#endif
 
35896
#define SENDCALLCONV
 
35897
#endif
 
35898
                    extern $send_retv SENDCALLCONV send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
 
35899
 
 
35900
int
 
35901
main ()
 
35902
{
 
35903
 
 
35904
                    $send_arg1 s=0;
 
35905
                    $send_arg3 len=0;
 
35906
                    $send_arg4 flags=0;
 
35907
                    $send_retv res = send(s, 0, len, flags);
 
35908
 
 
35909
  ;
 
35910
  return 0;
 
35911
}
 
35912
 
 
35913
_ACEOF
 
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;;
 
35919
esac
 
35920
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35921
  (eval "$ac_compile") 2>conftest.er1
 
35922
  ac_status=$?
 
35923
  grep -v '^ *+' conftest.er1 >conftest.err
 
35924
  rm -f conftest.er1
 
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;;
 
35932
esac
 
35933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35934
  (eval "$ac_try") 2>&5
 
35935
  ac_status=$?
 
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;;
 
35942
esac
 
35943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35944
  (eval "$ac_try") 2>&5
 
35945
  ac_status=$?
 
35946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35947
  (exit $ac_status); }; }; then
 
35948
 
 
35949
                   curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
 
35950
                   break 5
 
35951
 
 
35952
else
 
35953
  echo "$as_me: failed program was:" >&5
 
35954
sed 's/^/| /' conftest.$ac_ext >&5
 
35955
 
 
35956
 
 
35957
fi
 
35958
 
 
35959
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35960
              done
 
35961
            done
 
35962
          done
 
35963
        done
 
35964
      done
 
35965
 
 
35966
fi
 
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; }; }
 
35973
    else
 
35974
      send_prev_IFS=$IFS; IFS=','
 
35975
      set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
 
35976
      IFS=$send_prev_IFS
 
35977
      shift
 
35978
      #
 
35979
      send_qual_type_arg2=$2
 
35980
      #
 
35981
 
 
35982
cat >>confdefs.h <<_ACEOF
 
35983
#define SEND_TYPE_ARG1 $1
 
35984
_ACEOF
 
35985
 
 
35986
 
 
35987
cat >>confdefs.h <<_ACEOF
 
35988
#define SEND_TYPE_ARG3 $3
 
35989
_ACEOF
 
35990
 
 
35991
 
 
35992
cat >>confdefs.h <<_ACEOF
 
35993
#define SEND_TYPE_ARG4 $4
 
35994
_ACEOF
 
35995
 
 
35996
 
 
35997
cat >>confdefs.h <<_ACEOF
 
35998
#define SEND_TYPE_RETV $5
 
35999
_ACEOF
 
36000
 
 
36001
      #
 
36002
      prev_sh_opts=$-
 
36003
      #
 
36004
      case $prev_sh_opts in
 
36005
        *f*)
 
36006
          ;;
 
36007
        *)
 
36008
          set -f
 
36009
          ;;
 
36010
      esac
 
36011
      #
 
36012
      case "$send_qual_type_arg2" in
 
36013
        const*)
 
36014
          send_qual_arg2=const
 
36015
          send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
 
36016
        ;;
 
36017
        *)
 
36018
          send_qual_arg2=
 
36019
          send_type_arg2=$send_qual_type_arg2
 
36020
        ;;
 
36021
      esac
 
36022
      #
 
36023
 
 
36024
cat >>confdefs.h <<_ACEOF
 
36025
#define SEND_QUAL_ARG2 $send_qual_arg2
 
36026
_ACEOF
 
36027
 
 
36028
 
 
36029
cat >>confdefs.h <<_ACEOF
 
36030
#define SEND_TYPE_ARG2 $send_type_arg2
 
36031
_ACEOF
 
36032
 
 
36033
      #
 
36034
      case $prev_sh_opts in
 
36035
        *f*)
 
36036
          ;;
 
36037
        *)
 
36038
          set +f
 
36039
          ;;
 
36040
      esac
 
36041
      #
 
36042
 
 
36043
cat >>confdefs.h <<_ACEOF
 
36044
#define HAVE_SEND 1
 
36045
_ACEOF
 
36046
 
 
36047
      ac_cv_func_send="yes"
 
36048
    fi
 
36049
  else
 
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; }; }
 
36053
  fi
 
36054
 
 
36055
 
 
36056
 
 
36057
 
 
36058
 
 
36059
for ac_header in sys/types.h sys/socket.h
 
36060
do
 
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
 
36067
fi
 
36068
ac_res=`eval echo '${'$as_ac_Header'}'`
 
36069
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
36070
echo "${ECHO_T}$ac_res" >&6; }
 
36071
else
 
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
 
36076
/* confdefs.h.  */
 
36077
_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>
 
36083
_ACEOF
 
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;;
 
36089
esac
 
36090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36091
  (eval "$ac_compile") 2>conftest.er1
 
36092
  ac_status=$?
 
36093
  grep -v '^ *+' conftest.er1 >conftest.err
 
36094
  rm -f conftest.er1
 
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;;
 
36102
esac
 
36103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36104
  (eval "$ac_try") 2>&5
 
36105
  ac_status=$?
 
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;;
 
36112
esac
 
36113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36114
  (eval "$ac_try") 2>&5
 
36115
  ac_status=$?
 
36116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36117
  (exit $ac_status); }; }; then
 
36118
  ac_header_compiler=yes
 
36119
else
 
36120
  echo "$as_me: failed program was:" >&5
 
36121
sed 's/^/| /' conftest.$ac_ext >&5
 
36122
 
 
36123
        ac_header_compiler=no
 
36124
fi
 
36125
 
 
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; }
 
36129
 
 
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
 
36134
/* confdefs.h.  */
 
36135
_ACEOF
 
36136
cat confdefs.h >>conftest.$ac_ext
 
36137
cat >>conftest.$ac_ext <<_ACEOF
 
36138
/* end confdefs.h.  */
 
36139
#include <$ac_header>
 
36140
_ACEOF
 
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;;
 
36145
esac
 
36146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36147
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
36148
  ac_status=$?
 
36149
  grep -v '^ *+' conftest.er1 >conftest.err
 
36150
  rm -f conftest.er1
 
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
 
36157
  else
 
36158
    ac_cpp_err=
 
36159
  fi
 
36160
else
 
36161
  ac_cpp_err=yes
 
36162
fi
 
36163
if test -z "$ac_cpp_err"; then
 
36164
  ac_header_preproc=yes
 
36165
else
 
36166
  echo "$as_me: failed program was:" >&5
 
36167
sed 's/^/| /' conftest.$ac_ext >&5
 
36168
 
 
36169
  ac_header_preproc=no
 
36170
fi
 
36171
 
 
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; }
 
36175
 
 
36176
# So?  What about this header?
 
36177
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
36178
  yes:no: )
 
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
 
36184
    ;;
 
36185
  no: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;}
 
36198
    ( cat <<\_ASBOX
 
36199
## ------------------------------------------------------------------------ ##
 
36200
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
 
36201
## ------------------------------------------------------------------------ ##
 
36202
_ASBOX
 
36203
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
36204
    ;;
 
36205
esac
 
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
 
36210
else
 
36211
  eval "$as_ac_Header=\$ac_header_preproc"
 
36212
fi
 
36213
ac_res=`eval echo '${'$as_ac_Header'}'`
 
36214
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
36215
echo "${ECHO_T}$ac_res" >&6; }
 
36216
 
 
36217
fi
 
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
 
36221
_ACEOF
 
36222
 
 
36223
fi
 
36224
 
 
36225
done
 
36226
 
 
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
 
36231
else
 
36232
 
 
36233
    cat >conftest.$ac_ext <<_ACEOF
 
36234
 
 
36235
      /* confdefs.h.  */
 
36236
_ACEOF
 
36237
cat confdefs.h >>conftest.$ac_ext
 
36238
cat >>conftest.$ac_ext <<_ACEOF
 
36239
/* end confdefs.h.  */
 
36240
 
 
36241
#undef inline
 
36242
#ifdef HAVE_WINDOWS_H
 
36243
#ifndef WIN32_LEAN_AND_MEAN
 
36244
#define WIN32_LEAN_AND_MEAN
 
36245
#endif
 
36246
#include <windows.h>
 
36247
#ifdef HAVE_WINSOCK2_H
 
36248
#include <winsock2.h>
 
36249
#else
 
36250
#ifdef HAVE_WINSOCK_H
 
36251
#include <winsock.h>
 
36252
#endif
 
36253
#endif
 
36254
#else
 
36255
#ifdef HAVE_SYS_TYPES_H
 
36256
#include <sys/types.h>
 
36257
#endif
 
36258
#ifdef HAVE_SYS_SOCKET_H
 
36259
#include <sys/socket.h>
 
36260
#endif
 
36261
#endif
 
36262
 
 
36263
int
 
36264
main ()
 
36265
{
 
36266
 
 
36267
        int flag=MSG_NOSIGNAL;
 
36268
 
 
36269
  ;
 
36270
  return 0;
 
36271
}
 
36272
 
 
36273
_ACEOF
 
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;;
 
36279
esac
 
36280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36281
  (eval "$ac_compile") 2>conftest.er1
 
36282
  ac_status=$?
 
36283
  grep -v '^ *+' conftest.er1 >conftest.err
 
36284
  rm -f conftest.er1
 
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;;
 
36292
esac
 
36293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36294
  (eval "$ac_try") 2>&5
 
36295
  ac_status=$?
 
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;;
 
36302
esac
 
36303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
36304
  (eval "$ac_try") 2>&5
 
36305
  ac_status=$?
 
36306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36307
  (exit $ac_status); }; }; then
 
36308
 
 
36309
      ac_cv_msg_nosignal="yes"
 
36310
 
 
36311
else
 
36312
  echo "$as_me: failed program was:" >&5
 
36313
sed 's/^/| /' conftest.$ac_ext >&5
 
36314
 
 
36315
 
 
36316
      ac_cv_msg_nosignal="no"
 
36317
 
 
36318
fi
 
36319
 
 
36320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
36321
 
 
36322
fi
 
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
 
36326
    yes)
 
36327
 
 
36328
cat >>confdefs.h <<_ACEOF
 
36329
#define HAVE_MSG_NOSIGNAL 1
 
36330
_ACEOF
 
36331
 
 
36332
      ;;
 
36333
  esac
 
36334
 
 
36335
 
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
36371
37599
      set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
36372
37600
      IFS=$gni_prev_IFS
36373
37601
      shift
36374
 
 
36375
 
cat >>confdefs.h <<_ACEOF
36376
 
#define GETNAMEINFO_TYPE_ARG1 $1
36377
 
_ACEOF
36378
 
 
 
37602
      #
 
37603
      gni_qual_type_arg1=$1
 
37604
      #
36379
37605
 
36380
37606
cat >>confdefs.h <<_ACEOF
36381
37607
#define GETNAMEINFO_TYPE_ARG2 $2
36391
37617
#define GETNAMEINFO_TYPE_ARG7 $4
36392
37618
_ACEOF
36393
37619
 
 
37620
      #
 
37621
      prev_sh_opts=$-
 
37622
      #
 
37623
      case $prev_sh_opts in
 
37624
        *f*)
 
37625
          ;;
 
37626
        *)
 
37627
          set -f
 
37628
          ;;
 
37629
      esac
 
37630
      #
 
37631
      case "$gni_qual_type_arg1" in
 
37632
        const*)
 
37633
          gni_qual_arg1=const
 
37634
          gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
 
37635
        ;;
 
37636
        *)
 
37637
          gni_qual_arg1=
 
37638
          gni_type_arg1=$gni_qual_type_arg1
 
37639
        ;;
 
37640
      esac
 
37641
      #
 
37642
 
 
37643
cat >>confdefs.h <<_ACEOF
 
37644
#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
 
37645
_ACEOF
 
37646
 
 
37647
 
 
37648
cat >>confdefs.h <<_ACEOF
 
37649
#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
 
37650
_ACEOF
 
37651
 
 
37652
      #
 
37653
      case $prev_sh_opts in
 
37654
        *f*)
 
37655
          ;;
 
37656
        *)
 
37657
          set +f
 
37658
          ;;
 
37659
      esac
 
37660
      #
36394
37661
 
36395
37662
cat >>confdefs.h <<_ACEOF
36396
37663
#define HAVE_GETNAMEINFO 1
36401
37668
  fi
36402
37669
 
36403
37670
 
 
37671
if test "$ipv6" = "yes"; then
 
37672
 
 
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
 
37677
else
 
37678
 
 
37679
  if test "$cross_compiling" = yes; then
 
37680
 
 
37681
  ac_cv_working_getaddrinfo="yes"
 
37682
 
 
37683
else
 
37684
  cat >conftest.$ac_ext <<_ACEOF
 
37685
/* confdefs.h.  */
 
37686
_ACEOF
 
37687
cat confdefs.h >>conftest.$ac_ext
 
37688
cat >>conftest.$ac_ext <<_ACEOF
 
37689
/* end confdefs.h.  */
 
37690
 
 
37691
#include <netdb.h>
 
37692
#include <sys/types.h>
 
37693
#include <sys/socket.h>
 
37694
 
 
37695
int main(void)
 
37696
{
 
37697
    struct addrinfo hints, *ai;
 
37698
    int error;
 
37699
 
 
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);
 
37705
    if (error) {
 
37706
        return 1;
 
37707
    }
 
37708
    return 0;
 
37709
}
 
37710
 
 
37711
_ACEOF
 
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;;
 
37717
esac
 
37718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37719
  (eval "$ac_link") 2>&5
 
37720
  ac_status=$?
 
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;;
 
37726
esac
 
37727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37728
  (eval "$ac_try") 2>&5
 
37729
  ac_status=$?
 
37730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37731
  (exit $ac_status); }; }; then
 
37732
 
 
37733
  ac_cv_working_getaddrinfo="yes"
 
37734
 
 
37735
else
 
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
 
37739
 
 
37740
( exit $ac_status )
 
37741
 
 
37742
  ac_cv_working_getaddrinfo="no"
 
37743
 
 
37744
fi
 
37745
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
37746
fi
 
37747
 
 
37748
 
 
37749
fi
 
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
 
37753
 
 
37754
cat >>confdefs.h <<\_ACEOF
 
37755
#define HAVE_GETADDRINFO 1
 
37756
_ACEOF
 
37757
 
 
37758
 
 
37759
cat >>confdefs.h <<\_ACEOF
 
37760
#define ENABLE_IPV6 1
 
37761
_ACEOF
 
37762
 
 
37763
 
 
37764
  IPV6_ENABLED=1
 
37765
 
 
37766
fi
 
37767
 
 
37768
 
 
37769
 
 
37770
 
 
37771
 
 
37772
 
 
37773
 
 
37774
 
 
37775
for ac_header in stdio.h sys/types.h sys/socket.h \
 
37776
                   netdb.h netinet/in.h arpa/inet.h
 
37777
do
 
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
 
37784
fi
 
37785
ac_res=`eval echo '${'$as_ac_Header'}'`
 
37786
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
37787
echo "${ECHO_T}$ac_res" >&6; }
 
37788
else
 
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
 
37793
/* confdefs.h.  */
 
37794
_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>
 
37800
_ACEOF
 
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;;
 
37806
esac
 
37807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37808
  (eval "$ac_compile") 2>conftest.er1
 
37809
  ac_status=$?
 
37810
  grep -v '^ *+' conftest.er1 >conftest.err
 
37811
  rm -f conftest.er1
 
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;;
 
37819
esac
 
37820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37821
  (eval "$ac_try") 2>&5
 
37822
  ac_status=$?
 
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;;
 
37829
esac
 
37830
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37831
  (eval "$ac_try") 2>&5
 
37832
  ac_status=$?
 
37833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37834
  (exit $ac_status); }; }; then
 
37835
  ac_header_compiler=yes
 
37836
else
 
37837
  echo "$as_me: failed program was:" >&5
 
37838
sed 's/^/| /' conftest.$ac_ext >&5
 
37839
 
 
37840
        ac_header_compiler=no
 
37841
fi
 
37842
 
 
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; }
 
37846
 
 
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
 
37851
/* confdefs.h.  */
 
37852
_ACEOF
 
37853
cat confdefs.h >>conftest.$ac_ext
 
37854
cat >>conftest.$ac_ext <<_ACEOF
 
37855
/* end confdefs.h.  */
 
37856
#include <$ac_header>
 
37857
_ACEOF
 
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;;
 
37862
esac
 
37863
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37864
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
37865
  ac_status=$?
 
37866
  grep -v '^ *+' conftest.er1 >conftest.err
 
37867
  rm -f conftest.er1
 
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
 
37874
  else
 
37875
    ac_cpp_err=
 
37876
  fi
 
37877
else
 
37878
  ac_cpp_err=yes
 
37879
fi
 
37880
if test -z "$ac_cpp_err"; then
 
37881
  ac_header_preproc=yes
 
37882
else
 
37883
  echo "$as_me: failed program was:" >&5
 
37884
sed 's/^/| /' conftest.$ac_ext >&5
 
37885
 
 
37886
  ac_header_preproc=no
 
37887
fi
 
37888
 
 
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; }
 
37892
 
 
37893
# So?  What about this header?
 
37894
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
37895
  yes:no: )
 
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
 
37901
    ;;
 
37902
  no: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;}
 
37915
    ( cat <<\_ASBOX
 
37916
## ------------------------------------------------------------------------ ##
 
37917
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
 
37918
## ------------------------------------------------------------------------ ##
 
37919
_ASBOX
 
37920
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
37921
    ;;
 
37922
esac
 
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
 
37927
else
 
37928
  eval "$as_ac_Header=\$ac_header_preproc"
 
37929
fi
 
37930
ac_res=`eval echo '${'$as_ac_Header'}'`
 
37931
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
37932
echo "${ECHO_T}$ac_res" >&6; }
 
37933
 
 
37934
fi
 
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
 
37938
_ACEOF
 
37939
 
 
37940
fi
 
37941
 
 
37942
done
 
37943
 
 
37944
  #
 
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
 
37949
else
 
37950
 
 
37951
    if test "$cross_compiling" = yes; then
 
37952
 
 
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
 
37956
 
 
37957
        /* confdefs.h.  */
 
37958
_ACEOF
 
37959
cat confdefs.h >>conftest.$ac_ext
 
37960
cat >>conftest.$ac_ext <<_ACEOF
 
37961
/* end confdefs.h.  */
 
37962
 
 
37963
#include <sys/types.h>
 
37964
#include <sys/socket.h>
 
37965
#include <netdb.h>
 
37966
 
 
37967
int
 
37968
main ()
 
37969
{
 
37970
 
 
37971
          unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
 
37972
 
 
37973
  ;
 
37974
  return 0;
 
37975
}
 
37976
 
 
37977
_ACEOF
 
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;;
 
37983
esac
 
37984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37985
  (eval "$ac_compile") 2>conftest.er1
 
37986
  ac_status=$?
 
37987
  grep -v '^ *+' conftest.er1 >conftest.err
 
37988
  rm -f conftest.er1
 
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;;
 
37996
esac
 
37997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
37998
  (eval "$ac_try") 2>&5
 
37999
  ac_status=$?
 
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;;
 
38006
esac
 
38007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38008
  (eval "$ac_try") 2>&5
 
38009
  ac_status=$?
 
38010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38011
  (exit $ac_status); }; }; then
 
38012
 
 
38013
        ac_cv_working_ni_withscopeid="yes"
 
38014
 
 
38015
else
 
38016
  echo "$as_me: failed program was:" >&5
 
38017
sed 's/^/| /' conftest.$ac_ext >&5
 
38018
 
 
38019
 
 
38020
        ac_cv_working_ni_withscopeid="no"
 
38021
 
 
38022
fi
 
38023
 
 
38024
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext # AC_COMPILE_IFELSE
 
38025
 
 
38026
else
 
38027
  cat >conftest.$ac_ext <<_ACEOF
 
38028
 
 
38029
      /* confdefs.h.  */
 
38030
_ACEOF
 
38031
cat confdefs.h >>conftest.$ac_ext
 
38032
cat >>conftest.$ac_ext <<_ACEOF
 
38033
/* end confdefs.h.  */
 
38034
 
 
38035
#ifdef HAVE_STDIO_H
 
38036
#include <stdio.h>
 
38037
#endif
 
38038
#ifdef HAVE_SYS_TYPES_H
 
38039
#include <sys/types.h>
 
38040
#endif
 
38041
#ifdef HAVE_SYS_SOCKET_H
 
38042
#include <sys/socket.h>
 
38043
#endif
 
38044
#ifdef HAVE_NETDB_H
 
38045
#include <netdb.h>
 
38046
#endif
 
38047
#ifdef HAVE_NETINET_IN_H
 
38048
#include <netinet/in.h>
 
38049
#endif
 
38050
#ifdef HAVE_ARPA_INET_H
 
38051
#include <arpa/inet.h>
 
38052
#endif
 
38053
 
 
38054
int
 
38055
main ()
 
38056
{
 
38057
 
 
38058
#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
 
38059
#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
 
38060
        struct sockaddr_storage sa;
 
38061
#else
 
38062
        unsigned char sa256;
 
38063
#endif
 
38064
        char hostbufNI_MAXHOST;
 
38065
        int rc;
 
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);
 
38070
        if(fd < 0) {
 
38071
          perror("socket()");
 
38072
          return 1; /* Error creating socket */
 
38073
        }
 
38074
        rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
 
38075
        if(rc) {
 
38076
          perror("getsockname()");
 
38077
          return 2; /* Error retrieving socket name */
 
38078
        }
 
38079
        rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
 
38080
        if(rc) {
 
38081
          printf("rc = %s\n", gai_strerror(rc));
 
38082
          return 3; /* Error translating socket address */
 
38083
        }
 
38084
        return 0; /* Ok, NI_WITHSCOPEID works */
 
38085
#else
 
38086
        return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
 
38087
#endif
 
38088
 
 
38089
  ;
 
38090
  return 0;
 
38091
} # AC_LANG_PROGRAM
 
38092
 
 
38093
_ACEOF
 
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;;
 
38099
esac
 
38100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38101
  (eval "$ac_link") 2>&5
 
38102
  ac_status=$?
 
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;;
 
38108
esac
 
38109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
38110
  (eval "$ac_try") 2>&5
 
38111
  ac_status=$?
 
38112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38113
  (exit $ac_status); }; }; then
 
38114
 
 
38115
      # Exit code == 0. Program worked.
 
38116
      ac_cv_working_ni_withscopeid="yes"
 
38117
 
 
38118
else
 
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
 
38122
 
 
38123
( exit $ac_status )
 
38124
 
 
38125
      # Exit code != 0. Program failed.
 
38126
      ac_cv_working_ni_withscopeid="no"
 
38127
 
 
38128
fi
 
38129
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
38130
fi
 
38131
 
 
38132
 # AC_RUN_IFELSE
 
38133
 
 
38134
fi
 
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
 
38138
    yes)
 
38139
 
 
38140
cat >>confdefs.h <<\_ACEOF
 
38141
#define HAVE_NI_WITHSCOPEID 1
 
38142
_ACEOF
 
38143
 
 
38144
      ;;
 
38145
  esac
 
38146
 
 
38147
fi
 
38148
 
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
37000
38745
fi
37001
38746
 
37002
38747
 
 
38748
{ echo "$as_me:$LINENO: checking whether to enable hidden symbols in the library" >&5
 
38749
echo $ECHO_N "checking whether to enable hidden symbols in the library... $ECHO_C" >&6; }
 
38750
# Check whether --enable-hidden-symbols was given.
 
38751
if test "${enable_hidden_symbols+set}" = set; then
 
38752
  enableval=$enable_hidden_symbols;  case "$enableval" in
 
38753
  no)
 
38754
       { echo "$as_me:$LINENO: result: no" >&5
 
38755
echo "${ECHO_T}no" >&6; }
 
38756
       ;;
 
38757
  *)
 
38758
       { echo "$as_me:$LINENO: checking whether $CC supports it" >&5
 
38759
echo $ECHO_N "checking whether $CC supports it... $ECHO_C" >&6; }
 
38760
       if test "$GCC" = yes ; then
 
38761
         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
 
38762
           { echo "$as_me:$LINENO: result: yes" >&5
 
38763
echo "${ECHO_T}yes" >&6; }
 
38764
 
 
38765
cat >>confdefs.h <<\_ACEOF
 
38766
#define CURL_HIDDEN_SYMBOLS 1
 
38767
_ACEOF
 
38768
 
 
38769
 
 
38770
 
 
38771
cat >>confdefs.h <<\_ACEOF
 
38772
#define CURL_EXTERN_SYMBOL __attribute__ ((visibility ("default")))
 
38773
_ACEOF
 
38774
 
 
38775
 
 
38776
           CFLAGS="$CFLAGS -fvisibility=hidden"
 
38777
         else
 
38778
            { echo "$as_me:$LINENO: result: no" >&5
 
38779
echo "${ECHO_T}no" >&6; }
 
38780
          fi
 
38781
 
 
38782
       else
 
38783
                         if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
 
38784
           { echo "$as_me:$LINENO: result: yes" >&5
 
38785
echo "${ECHO_T}yes" >&6; }
 
38786
 
 
38787
cat >>confdefs.h <<\_ACEOF
 
38788
#define CURL_HIDDEN_SYMBOLS 1
 
38789
_ACEOF
 
38790
 
 
38791
 
 
38792
 
 
38793
cat >>confdefs.h <<\_ACEOF
 
38794
#define CURL_EXTERN_SYMBOL __global
 
38795
_ACEOF
 
38796
 
 
38797
 
 
38798
           CFLAGS="$CFLAGS -xldscope=hidden"
 
38799
         else
 
38800
           { echo "$as_me:$LINENO: result: no" >&5
 
38801
echo "${ECHO_T}no" >&6; }
 
38802
         fi
 
38803
       fi
 
38804
       ;;
 
38805
  esac
 
38806
else
 
38807
  { echo "$as_me:$LINENO: result: no" >&5
 
38808
echo "${ECHO_T}no" >&6; }
 
38809
 
 
38810
fi
 
38811
 
 
38812
 
37003
38813
if test "x$ws2" = "xyes"; then
37004
38814
 
37005
38815
 
37481
39291
# values after options handling.
37482
39292
ac_log="
37483
39293
This file was extended by curl $as_me -, which was
37484
 
generated by GNU Autoconf 2.59d.  Invocation command line was
 
39294
generated by GNU Autoconf 2.59e.  Invocation command line was
37485
39295
 
37486
39296
  CONFIG_FILES    = $CONFIG_FILES
37487
39297
  CONFIG_HEADERS  = $CONFIG_HEADERS
37534
39344
cat >>$CONFIG_STATUS <<_ACEOF
37535
39345
ac_cs_version="\\
37536
39346
curl config.status -
37537
 
configured by $0, generated by GNU Autoconf 2.59d,
 
39347
configured by $0, generated by GNU Autoconf 2.59e,
37538
39348
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37539
39349
 
37540
39350
Copyright (C) 2006 Free Software Foundation, Inc.
37903
39713
CURL_DISABLE_DICT!$CURL_DISABLE_DICT$ac_delim
37904
39714
CURL_DISABLE_TELNET!$CURL_DISABLE_TELNET$ac_delim
37905
39715
CURL_DISABLE_TFTP!$CURL_DISABLE_TFTP$ac_delim
37906
 
IPV6_ENABLED!$IPV6_ENABLED$ac_delim
37907
39716
KRB4_ENABLED!$KRB4_ENABLED$ac_delim
37908
39717
PKGCONFIG!$PKGCONFIG$ac_delim
37909
39718
USE_SSLEAY!$USE_SSLEAY$ac_delim
37916
39725
HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
37917
39726
HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
37918
39727
IDN_ENABLED!$IDN_ENABLED$ac_delim
 
39728
IPV6_ENABLED!$IPV6_ENABLED$ac_delim
37919
39729
PERL!$PERL$ac_delim
37920
39730
NROFF!$NROFF$ac_delim
37921
39731
MANOPT!$MANOPT$ac_delim
37927
39737
USE_WINDOWS_SSPI!$USE_WINDOWS_SSPI$ac_delim
37928
39738
CURL_DISABLE_CRYPTO_AUTH!$CURL_DISABLE_CRYPTO_AUTH$ac_delim
37929
39739
CURL_DISABLE_COOKIES!$CURL_DISABLE_COOKIES$ac_delim
 
39740
CURL_HIDDEN_SYMBOLS!$CURL_HIDDEN_SYMBOLS$ac_delim
 
39741
CURL_EXTERN_SYMBOL!$CURL_EXTERN_SYMBOL$ac_delim
37930
39742
CROSSCOMPILING_TRUE!$CROSSCOMPILING_TRUE$ac_delim
37931
39743
CROSSCOMPILING_FALSE!$CROSSCOMPILING_FALSE$ac_delim
37932
39744
LIBOBJS!$LIBOBJS$ac_delim
37933
39745
LTLIBOBJS!$LTLIBOBJS$ac_delim
37934
39746
_ACEOF
37935
39747
 
37936
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
 
39748
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
37937
39749
    break
37938
39750
  elif $ac_last_try; then
37939
39751
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5