~ubuntu-branches/ubuntu/natty/curl/natty-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-06-20 13:56:28 UTC
  • mfrom: (3.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100620135628-e30tp9jldq6hq985
Tags: 7.21.0-1ubuntu1
* Merge from debian unstable.  Remaining changes: LP: #596334
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

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.64 for curl -.
 
3
# Generated by GNU Autoconf 2.65 for curl -.
4
4
#
5
5
# Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
6
6
#
 
7
#
7
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
 
# Foundation, Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
10
12
#
11
13
# This configure script is free software; the Free Software Foundation
12
14
# gives unlimited permission to copy, distribute and modify it.
13
15
#
14
 
# Copyright (c) 1998 - 2009 Daniel Stenberg, <daniel@haxx.se>
 
16
# Copyright (c) 1998 - 2010 Daniel Stenberg, <daniel@haxx.se>
15
17
# This configure script may be copied, distributed and modified under the
16
18
# terms of the curl license; see COPYING for more details
17
19
## -------------------- ##
710
712
 
711
713
 
712
714
 
713
 
exec 7<&0 </dev/null 6>&1
 
715
test -n "$DJDIR" || exec 7<&0 </dev/null
 
716
exec 6>&1
714
717
 
715
718
# Name of the host.
716
719
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
789
792
USE_WINDOWS_SSPI
790
793
USE_EMBEDDED_ARES_FALSE
791
794
USE_EMBEDDED_ARES_TRUE
 
795
USE_ARES
792
796
subdirs
793
 
HAVE_ARES
794
797
USE_MANUAL_FALSE
795
798
USE_MANUAL_TRUE
796
799
MANOPT
798
801
PERL
799
802
IPV6_ENABLED
800
803
IDN_ENABLED
 
804
USE_LIBRTMP
801
805
USE_LIBSSH2
802
806
CURL_CA_BUNDLE
803
807
SSL_ENABLED
804
808
USE_NSS
805
809
HAVE_PK11_CREATEGENERICOBJECT
 
810
USE_POLARSSL
806
811
USE_GNUTLS
807
812
RANDOM_FILE
808
813
HAVE_LIBZ_FALSE
811
816
USE_SSLEAY
812
817
PKGCONFIG
813
818
KRB4_ENABLED
 
819
USE_OPENLDAP
 
820
CURL_DISABLE_SMTP
 
821
CURL_DISABLE_IMAP
 
822
CURL_DISABLE_POP3
814
823
CURL_DISABLE_TFTP
815
824
CURL_DISABLE_TELNET
816
825
CURL_DISABLE_DICT
817
826
CURL_DISABLE_PROXY
 
827
HAVE_LDAP_SSL
818
828
CURL_DISABLE_LDAPS
819
829
CURL_DISABLE_LDAP
820
830
CURL_DISABLE_FILE
821
831
CURL_DISABLE_FTP
 
832
CURL_DISABLE_RTSP
822
833
CURL_DISABLE_HTTP
823
834
CURLDEBUG_FALSE
824
835
CURLDEBUG_TRUE
901
912
EGREP
902
913
GREP
903
914
SED
 
915
CONFIGURE_OPTIONS
904
916
MAINT
905
917
MAINTAINER_MODE_FALSE
906
918
MAINTAINER_MODE_TRUE
951
963
enable_optimize
952
964
enable_warnings
953
965
enable_curldebug
 
966
enable_ares
954
967
enable_dependency_tracking
955
968
enable_largefile
956
969
enable_shared
964
977
enable_file
965
978
enable_ldap
966
979
enable_ldaps
 
980
enable_rtsp
967
981
enable_proxy
968
982
enable_dict
969
983
enable_telnet
970
984
enable_tftp
 
985
enable_pop3
 
986
enable_imap
 
987
enable_smtp
971
988
enable_manual
972
989
enable_libgcc
973
990
with_ldap_lib
985
1002
with_egd_socket
986
1003
with_random
987
1004
with_gnutls
 
1005
with_polarssl
988
1006
with_nss
989
1007
with_ca_bundle
990
1008
with_ca_path
991
1009
with_libssh2
 
1010
with_librtmp
992
1011
with_libidn
993
 
enable_thread
994
1012
enable_nonblocking
995
 
enable_ares
 
1013
enable_threaded_resolver
996
1014
enable_verbose
997
1015
enable_sspi
998
1016
enable_crypto_auth
1638
1656
  --disable-warnings      Disable strict compiler warnings
1639
1657
  --enable-curldebug      Enable curl debug memory tracking
1640
1658
  --disable-curldebug     Disable curl debug memory tracking
 
1659
  --enable-ares[=PATH]    Enable c-ares for DNS lookups
 
1660
  --disable-ares          Disable c-ares for DNS lookups
1641
1661
  --disable-dependency-tracking  speeds up one-time build
1642
1662
  --enable-dependency-tracking   do not reject slow dependency extractors
1643
1663
  --disable-largefile     omit support for large files
1656
1676
  --disable-ldap          Disable LDAP support
1657
1677
  --enable-ldaps          Enable LDAPS support
1658
1678
  --disable-ldaps         Disable LDAPS support
 
1679
  --enable-rtsp           Enable RTSP support
 
1680
  --disable-rtsp          Disable RTSP support
1659
1681
  --enable-proxy          Enable proxy support
1660
1682
  --disable-proxy         Disable proxy support
1661
1683
  --enable-dict           Enable DICT support
1664
1686
  --disable-telnet        Disable TELNET support
1665
1687
  --enable-tftp           Enable TFTP support
1666
1688
  --disable-tftp          Disable TFTP support
 
1689
  --enable-pop3           Enable POP3 support
 
1690
  --disable-pop3          Disable POP3 support
 
1691
  --enable-imap           Enable IMAP support
 
1692
  --disable-imap          Disable IMAP support
 
1693
  --enable-smtp           Enable SMTP support
 
1694
  --disable-smtp          Disable SMTP support
1667
1695
  --enable-manual         Enable built-in manual
1668
1696
  --disable-manual        Disable built-in manual
1669
1697
  --enable-libgcc         use libgcc when linking
1670
1698
  --enable-ipv6           Enable ipv6 (with ipv4) support
1671
1699
  --disable-ipv6          Disable ipv6 support
1672
 
  --disable-thread        don't look for thread-safe functions
1673
 
  --enable-thread         look for thread-safe functions
1674
1700
  --enable-nonblocking    Enable non-blocking communications
1675
1701
  --disable-nonblocking   Disable non-blocking communications
1676
 
  --enable-ares=PATH      Enable c-ares for name lookups
1677
 
  --disable-ares          Disable c-ares for name lookups
 
1702
  --enable-threaded-resolver
 
1703
                          Enable threaded resolver
 
1704
  --disable-threaded-resover
 
1705
                          Disable threaded resolver
1678
1706
  --enable-verbose        Enable verbose strings
1679
1707
  --disable-verbose       Disable verbose strings
1680
1708
  --enable-sspi           Enable SSPI
1718
1746
  --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1719
1747
                          installation root (default: /usr/local/)
1720
1748
  --without-gnutls        disable GnuTLS detection
 
1749
  --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
 
1750
                          installation root (default: /usr/local/)
 
1751
  --without-polarssl      disable PolarSSL detection
1721
1752
  --with-nss=PATH         where to look for NSS, PATH points to the
1722
1753
                          installation root (default: /usr/local/)
1723
1754
  --without-nss           disable NSS detection
1731
1762
                          possible, set the PKG_CONFIG_PATH environment
1732
1763
                          variable instead of using this option
1733
1764
  --without-libssh2       disable LIBSSH2
 
1765
  --with-librtmp=PATH     Where to look for librtmp, PATH points to the
 
1766
                          LIBRTMP installation (default: /usr/local/lib); when
 
1767
                          possible, set the PKG_CONFIG_PATH environment
 
1768
                          variable instead of using this option
 
1769
  --without-librtmp       disable LIBRTMP
1734
1770
  --with-libidn=PATH      Enable libidn usage
1735
1771
  --without-libidn        Disable libidn usage
1736
1772
 
1740
1776
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1741
1777
              nonstandard directory <lib dir>
1742
1778
  LIBS        libraries to pass to the linker, e.g. -l<library>
1743
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1779
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1744
1780
              you have headers in a nonstandard directory <include dir>
1745
1781
  CPP         C preprocessor
1746
1782
 
1811
1847
if $ac_init_version; then
1812
1848
  cat <<\_ACEOF
1813
1849
curl configure -
1814
 
generated by GNU Autoconf 2.64
 
1850
generated by GNU Autoconf 2.65
1815
1851
 
1816
1852
Copyright (C) 2009 Free Software Foundation, Inc.
1817
1853
This configure script is free software; the Free Software Foundation
1818
1854
gives unlimited permission to copy, distribute and modify it.
1819
1855
 
1820
 
Copyright (c) 1998 - 2009 Daniel Stenberg, <daniel@haxx.se>
 
1856
Copyright (c) 1998 - 2010 Daniel Stenberg, <daniel@haxx.se>
1821
1857
This configure script may be copied, distributed and modified under the
1822
1858
terms of the curl license; see COPYING for more details
1823
1859
_ACEOF
1862
1898
        ac_retval=1
1863
1899
fi
1864
1900
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865
 
  return $ac_retval
 
1901
  as_fn_set_status $ac_retval
1866
1902
 
1867
1903
} # ac_fn_c_try_compile
1868
1904
 
1935
1971
fi
1936
1972
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937
1973
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
 
  return $ac_retval
 
1974
  as_fn_set_status $ac_retval
1939
1975
 
1940
1976
} # ac_fn_c_try_run
1941
1977
 
2107
2143
 
2108
2144
  fi
2109
2145
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
 
  return $ac_retval
 
2146
  as_fn_set_status $ac_retval
2111
2147
 
2112
2148
} # ac_fn_c_compute_int
2113
2149
 
2144
2180
    ac_retval=1
2145
2181
fi
2146
2182
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2147
 
  return $ac_retval
 
2183
  as_fn_set_status $ac_retval
2148
2184
 
2149
2185
} # ac_fn_c_try_cpp
2150
2186
 
2190
2226
  # left behind by Apple's compiler.  We do this before executing the actions.
2191
2227
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2192
2228
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193
 
  return $ac_retval
 
2229
  as_fn_set_status $ac_retval
2194
2230
 
2195
2231
} # ac_fn_c_try_link
2196
2232
 
2394
2430
running configure, to aid debugging if configure makes a mistake.
2395
2431
 
2396
2432
It was created by curl $as_me -, which was
2397
 
generated by GNU Autoconf 2.64.  Invocation command line was
 
2433
generated by GNU Autoconf 2.65.  Invocation command line was
2398
2434
 
2399
2435
  $ $0 $@
2400
2436
 
2647
2683
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2648
2684
do
2649
2685
  test "x$ac_site_file" = xNONE && continue
2650
 
  if test -r "$ac_site_file"; then
 
2686
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2651
2687
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2652
2688
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2653
2689
    sed 's/^/| /' "$ac_site_file" >&5
2656
2692
done
2657
2693
 
2658
2694
if test -r "$cache_file"; then
2659
 
  # Some versions of bash will fail to source /dev/null (special
2660
 
  # files actually), so we avoid doing that.
2661
 
  if test -f "$cache_file"; then
 
2695
  # Some versions of bash will fail to source /dev/null (special files
 
2696
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2697
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2662
2698
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2663
2699
$as_echo "$as_me: loading cache $cache_file" >&6;}
2664
2700
    case $cache_file in
2817
2853
    default)
2818
2854
                                                                        if test "$want_debug" = "yes"; then
2819
2855
        want_optimize="assume_no"
2820
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2821
 
$as_echo "not specified (assuming no)" >&6; }
 
2856
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
 
2857
$as_echo "(assumed) no" >&6; }
2822
2858
      else
2823
2859
        want_optimize="assume_yes"
2824
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2825
 
$as_echo "not specified (assuming yes)" >&6; }
 
2860
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
 
2861
$as_echo "(assumed) yes" >&6; }
2826
2862
      fi
2827
2863
      ;;
2828
2864
    *)
2872
2908
      ;;
2873
2909
    default)
2874
2910
                                          if test "$want_debug" = "yes"; then
2875
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2876
 
$as_echo "not specified (assuming yes)" >&6; }
 
2911
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
 
2912
$as_echo "(assumed) yes" >&6; }
2877
2913
      else
2878
2914
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879
2915
$as_echo "no" >&6; }
2889
2925
  esac
2890
2926
 
2891
2927
 
2892
 
 
 
2928
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
 
2929
$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
 
2930
  OPT_ARES="default"
 
2931
  # Check whether --enable-ares was given.
 
2932
if test "${enable_ares+set}" = set; then :
 
2933
  enableval=$enable_ares; OPT_ARES=$enableval
 
2934
fi
 
2935
 
 
2936
  case "$OPT_ARES" in
 
2937
    no)
 
2938
            want_ares="no"
 
2939
      ;;
 
2940
    default)
 
2941
            want_ares="no"
 
2942
      ;;
 
2943
    *)
 
2944
            want_ares="yes"
 
2945
      if test -n "$enableval" && test "$enableval" != "yes"; then
 
2946
        want_ares_path="$enableval"
 
2947
      fi
 
2948
      ;;
 
2949
  esac
 
2950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
 
2951
$as_echo "$want_ares" >&6; }
 
2952
 
 
2953
 
 
2954
 
 
2955
 
 
2956
 
 
2957
#
 
2958
# save the configure arguments
 
2959
#
 
2960
CONFIGURE_OPTIONS="\"$ac_configure_args\""
2893
2961
 
2894
2962
 
2895
2963
# Extract the first word of "sed", so it can be a program name with args.
3148
3216
 
3149
3217
 
3150
3218
 
 
3219
if test -f ${srcdir}/include/curl/curlbuild.h; then
 
3220
  rm -f ${srcdir}/include/curl/curlbuild.h
 
3221
fi
 
3222
 
3151
3223
VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3152
3224
am__api_version="1.9"
3153
3225
ac_aux_dir=
3618
3690
 
3619
3691
 
3620
3692
 
3621
 
    curl_ssl_msg="no      (--with-ssl / --with-gnutls / --with-nss)"
 
3693
    curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl} )"
3622
3694
    curl_ssh_msg="no      (--with-libssh2)"
3623
3695
   curl_zlib_msg="no      (--with-zlib)"
3624
3696
   curl_krb4_msg="no      (--with-krb4*)"
3625
3697
    curl_gss_msg="no      (--with-gssapi)"
3626
3698
 curl_spnego_msg="no      (--with-spnego)"
3627
 
   curl_ares_msg="no      (--enable-ares)"
 
3699
    curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
3628
3700
   curl_ipv6_msg="no      (--enable-ipv6)"
3629
3701
    curl_idn_msg="no      (--with-libidn)"
3630
3702
 curl_manual_msg="no      (--enable-manual)"
3632
3704
   curl_sspi_msg="no      (--enable-sspi)"
3633
3705
   curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
3634
3706
  curl_ldaps_msg="no      (--enable-ldaps)"
 
3707
   curl_rtsp_msg="no      (--enable-rtsp)"
 
3708
   curl_rtmp_msg="no      (--with-librtmp)"
3635
3709
 
3636
3710
ALL_LIBS=$LIBS
3637
3711
 
4103
4177
... rest of stderr output deleted ...
4104
4178
         10q' conftest.err >conftest.er1
4105
4179
    cat conftest.er1 >&5
4106
 
    rm -f conftest.er1 conftest.err
4107
4180
  fi
 
4181
  rm -f conftest.er1 conftest.err
4108
4182
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109
4183
  test $ac_status = 0; }
4110
4184
done
4111
4185
 
4112
4186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113
4187
/* end confdefs.h.  */
4114
 
#include <stdio.h>
 
4188
 
4115
4189
int main (void)
4116
4190
{
4117
 
FILE *f = fopen ("conftest.out", "w");
4118
 
 return ferror (f) || fclose (f) != 0;
4119
4191
 
4120
4192
 ;
4121
4193
 return 0;
4122
4194
}
4123
4195
_ACEOF
4124
4196
ac_clean_files_save=$ac_clean_files
4125
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
 
4197
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4126
4198
# Try to create an executable without -o first, disregard a.out.
4127
4199
# It will help us diagnose broken compilers, and finding out an intuition
4128
4200
# of exeext.
4129
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4130
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
4201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
4202
$as_echo_n "checking whether the C compiler works... " >&6; }
4131
4203
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4132
4204
 
4133
4205
# The possible output files:
4189
4261
else
4190
4262
  ac_file=''
4191
4263
fi
 
4264
if test -z "$ac_file"; then :
 
4265
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4266
$as_echo "no" >&6; }
 
4267
$as_echo "$as_me: failed program was:" >&5
 
4268
sed 's/^/| /' conftest.$ac_ext >&5
 
4269
 
 
4270
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4271
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4272
{ as_fn_set_status 77
 
4273
as_fn_error "C compiler cannot create executables
 
4274
See \`config.log' for more details." "$LINENO" 5; }; }
 
4275
else
 
4276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4277
$as_echo "yes" >&6; }
 
4278
fi
 
4279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
4280
$as_echo_n "checking for C compiler default output file name... " >&6; }
4192
4281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4193
4282
$as_echo "$ac_file" >&6; }
4194
 
if test -z "$ac_file"; then :
4195
 
  $as_echo "$as_me: failed program was:" >&5
4196
 
sed 's/^/| /' conftest.$ac_ext >&5
4197
 
 
4198
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200
 
{ as_fn_set_status 77
4201
 
as_fn_error "C compiler cannot create executables
4202
 
See \`config.log' for more details." "$LINENO" 5; }; }
4203
 
fi
4204
4283
ac_exeext=$ac_cv_exeext
4205
4284
 
4206
 
# Check that the compiler produces executables we can run.  If not, either
4207
 
# the compiler is broken, or we cross compile.
4208
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4209
 
$as_echo_n "checking whether the C compiler works... " >&6; }
4210
 
# If not cross compiling, check that we can run a simple program.
4211
 
if test "$cross_compiling" != yes; then
4212
 
  if { ac_try='./$ac_file'
4213
 
  { { case "(($ac_try" in
4214
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215
 
  *) ac_try_echo=$ac_try;;
4216
 
esac
4217
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218
 
$as_echo "$ac_try_echo"; } >&5
4219
 
  (eval "$ac_try") 2>&5
4220
 
  ac_status=$?
4221
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4222
 
  test $ac_status = 0; }; }; then
4223
 
    cross_compiling=no
4224
 
  else
4225
 
    if test "$cross_compiling" = maybe; then
4226
 
        cross_compiling=yes
4227
 
    else
4228
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4229
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230
 
as_fn_error "cannot run C compiled programs.
4231
 
If you meant to cross compile, use \`--host'.
4232
 
See \`config.log' for more details." "$LINENO" 5; }
4233
 
    fi
4234
 
  fi
4235
 
fi
4236
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4237
 
$as_echo "yes" >&6; }
4238
 
 
4239
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
 
4285
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4240
4286
ac_clean_files=$ac_clean_files_save
4241
 
# Check that the compiler produces executables we can run.  If not, either
4242
 
# the compiler is broken, or we cross compile.
4243
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4244
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
4245
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4246
 
$as_echo "$cross_compiling" >&6; }
4247
 
 
4248
4287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4249
4288
$as_echo_n "checking for suffix of executables... " >&6; }
4250
4289
if { { ac_try="$ac_link"
4277
4316
as_fn_error "cannot compute suffix of executables: cannot compile and link
4278
4317
See \`config.log' for more details." "$LINENO" 5; }
4279
4318
fi
4280
 
rm -f conftest$ac_cv_exeext
 
4319
rm -f conftest conftest$ac_cv_exeext
4281
4320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4282
4321
$as_echo "$ac_cv_exeext" >&6; }
4283
4322
 
4284
4323
rm -f conftest.$ac_ext
4285
4324
EXEEXT=$ac_cv_exeext
4286
4325
ac_exeext=$EXEEXT
 
4326
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4327
/* end confdefs.h.  */
 
4328
#include <stdio.h>
 
4329
int main (void)
 
4330
{
 
4331
FILE *f = fopen ("conftest.out", "w");
 
4332
 return ferror (f) || fclose (f) != 0;
 
4333
 
 
4334
 ;
 
4335
 return 0;
 
4336
}
 
4337
_ACEOF
 
4338
ac_clean_files="$ac_clean_files conftest.out"
 
4339
# Check that the compiler produces executables we can run.  If not, either
 
4340
# the compiler is broken, or we cross compile.
 
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
4342
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
4343
if test "$cross_compiling" != yes; then
 
4344
  { { ac_try="$ac_link"
 
4345
case "(($ac_try" in
 
4346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4347
  *) ac_try_echo=$ac_try;;
 
4348
esac
 
4349
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4350
$as_echo "$ac_try_echo"; } >&5
 
4351
  (eval "$ac_link") 2>&5
 
4352
  ac_status=$?
 
4353
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4354
  test $ac_status = 0; }
 
4355
  if { ac_try='./conftest$ac_cv_exeext'
 
4356
  { { case "(($ac_try" in
 
4357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4358
  *) ac_try_echo=$ac_try;;
 
4359
esac
 
4360
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4361
$as_echo "$ac_try_echo"; } >&5
 
4362
  (eval "$ac_try") 2>&5
 
4363
  ac_status=$?
 
4364
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4365
  test $ac_status = 0; }; }; then
 
4366
    cross_compiling=no
 
4367
  else
 
4368
    if test "$cross_compiling" = maybe; then
 
4369
        cross_compiling=yes
 
4370
    else
 
4371
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4372
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4373
as_fn_error "cannot run C compiled programs.
 
4374
If you meant to cross compile, use \`--host'.
 
4375
See \`config.log' for more details." "$LINENO" 5; }
 
4376
    fi
 
4377
  fi
 
4378
fi
 
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
4380
$as_echo "$cross_compiling" >&6; }
 
4381
 
 
4382
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
4383
ac_clean_files=$ac_clean_files_save
4287
4384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4288
4385
$as_echo_n "checking for suffix of object files... " >&6; }
4289
4386
if test "${ac_cv_objext+set}" = set; then :
4668
4765
# include <inttypes.h>
4669
4766
#endif
4670
4767
/* includes end */"
 
4768
  case $host_os in
 
4769
    irix*)
 
4770
      ac_cv_header_stdint_h="no"
 
4771
      ;;
 
4772
  esac
4671
4773
  for ac_header in sys/types.h stdint.h inttypes.h
4672
4774
do :
4673
4775
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5774
5876
 
5775
5877
 
5776
5878
    #
 
5879
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
 
5880
$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
 
5881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5882
/* end confdefs.h.  */
 
5883
 
 
5884
 
 
5885
 
 
5886
int main (void)
 
5887
{
 
5888
 
 
5889
#ifdef _THREAD_SAFE
 
5890
      int dummy=1;
 
5891
#else
 
5892
      force compilation error
 
5893
#endif
 
5894
 
 
5895
 ;
 
5896
 return 0;
 
5897
}
 
5898
 
 
5899
_ACEOF
 
5900
if ac_fn_c_try_compile "$LINENO"; then :
 
5901
 
 
5902
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5903
$as_echo "yes" >&6; }
 
5904
    tmp_thread_safe_initially_defined="yes"
 
5905
 
 
5906
else
 
5907
 
 
5908
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5909
$as_echo "no" >&6; }
 
5910
    tmp_thread_safe_initially_defined="no"
 
5911
 
 
5912
fi
 
5913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5914
  #
 
5915
  if test "$tmp_thread_safe_initially_defined" = "no"; then
 
5916
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
 
5917
$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
 
5918
 
 
5919
  case $host_os in
 
5920
    aix[123].* | aix4.[012].*)
 
5921
            tmp_need_thread_safe="no"
 
5922
      ;;
 
5923
    aix*)
 
5924
            tmp_need_thread_safe="yes"
 
5925
      ;;
 
5926
    *)
 
5927
      tmp_need_thread_safe="no"
 
5928
      ;;
 
5929
  esac
 
5930
 
 
5931
    if test "$tmp_need_thread_safe" = "yes"; then
 
5932
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5933
$as_echo "yes" >&6; }
 
5934
    else
 
5935
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5936
$as_echo "no" >&6; }
 
5937
    fi
 
5938
  fi
 
5939
  #
 
5940
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
 
5941
$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
 
5942
  if test "$tmp_thread_safe_initially_defined" = "yes" ||
 
5943
    test "$tmp_need_thread_safe" = "yes"; then
 
5944
 
 
5945
 
 
5946
$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
 
5947
 
 
5948
cat >>confdefs.h <<_EOF
 
5949
#ifndef _THREAD_SAFE
 
5950
#  define _THREAD_SAFE
 
5951
#endif
 
5952
_EOF
 
5953
 
 
5954
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5955
$as_echo "yes" >&6; }
 
5956
  else
 
5957
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5958
$as_echo "no" >&6; }
 
5959
  fi
 
5960
  #
 
5961
 
 
5962
 
 
5963
    #
5777
5964
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
5778
5965
$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
5779
5966
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814
6001
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
5815
6002
$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
5816
6003
 
5817
 
  case $host in
5818
 
    *-*-solaris*)
 
6004
  case $host_os in
 
6005
    solaris*)
5819
6006
      tmp_need_reentrant="yes"
5820
6007
      ;;
5821
6008
    *)
7176
7363
    ;;
7177
7364
esac
7178
7365
 
 
7366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is icc (to build with PIC)" >&5
 
7367
$as_echo_n "checking if compiler is icc (to build with PIC)... " >&6; }
 
7368
case $CC in
 
7369
  icc | */icc)
 
7370
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7371
$as_echo "yes" >&6; }
 
7372
    with_pic=yes
 
7373
    ;;
 
7374
  *)
 
7375
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7376
$as_echo "no" >&6; }
 
7377
    ;;
 
7378
esac
 
7379
 
7179
7380
case `pwd` in
7180
7381
  *\ * | *\     *)
7181
7382
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7184
7385
 
7185
7386
 
7186
7387
 
7187
 
macro_version='2.2.6'
7188
 
macro_revision='1.3012'
 
7388
macro_version='2.2.6b'
 
7389
macro_revision='1.3017'
7189
7390
 
7190
7391
 
7191
7392
 
7655
7856
else
7656
7857
  lt_cv_nm_interface="BSD nm"
7657
7858
  echo "int some_variable = 0;" > conftest.$ac_ext
7658
 
  (eval echo "\"\$as_me:7658: $ac_compile\"" >&5)
 
7859
  (eval echo "\"\$as_me:7859: $ac_compile\"" >&5)
7659
7860
  (eval "$ac_compile" 2>conftest.err)
7660
7861
  cat conftest.err >&5
7661
 
  (eval echo "\"\$as_me:7661: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
7862
  (eval echo "\"\$as_me:7862: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7662
7863
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7663
7864
  cat conftest.err >&5
7664
 
  (eval echo "\"\$as_me:7664: output\"" >&5)
 
7865
  (eval echo "\"\$as_me:7865: output\"" >&5)
7665
7866
  cat conftest.out >&5
7666
7867
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7667
7868
    lt_cv_nm_interface="MS dumpbin"
8124
8325
  ;;
8125
8326
 
8126
8327
# This must be Linux ELF.
8127
 
linux* | k*bsd*-gnu)
 
8328
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8128
8329
  lt_cv_deplibs_check_method=pass_all
8129
8330
  ;;
8130
8331
 
8131
 
netbsd*)
 
8332
netbsd* | netbsdelf*-gnu)
8132
8333
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8133
8334
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8134
8335
  else
8863
9064
  ;;
8864
9065
*-*-irix6*)
8865
9066
  # Find out which ABI we are using.
8866
 
  echo '#line 8866 "configure"' > conftest.$ac_ext
 
9067
  echo '#line 9067 "configure"' > conftest.$ac_ext
8867
9068
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8868
9069
  (eval $ac_compile) 2>&5
8869
9070
  ac_status=$?
10121
10322
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10122
10323
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10123
10324
   -e 's:$: $lt_compiler_flag:'`
10124
 
   (eval echo "\"\$as_me:10124: $lt_compile\"" >&5)
 
10325
   (eval echo "\"\$as_me:10325: $lt_compile\"" >&5)
10125
10326
   (eval "$lt_compile" 2>conftest.err)
10126
10327
   ac_status=$?
10127
10328
   cat conftest.err >&5
10128
 
   echo "$as_me:10128: \$? = $ac_status" >&5
 
10329
   echo "$as_me:10329: \$? = $ac_status" >&5
10129
10330
   if (exit $ac_status) && test -s "$ac_outfile"; then
10130
10331
     # The compiler can only warn and ignore the option if not recognized
10131
10332
     # So say no if there are warnings other than the usual output.
10290
10491
      lt_prog_compiler_static='-non_shared'
10291
10492
      ;;
10292
10493
 
10293
 
    linux* | k*bsd*-gnu)
 
10494
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10294
10495
      case $cc_basename in
10295
10496
      # old Intel for x86_64 which still supported -KPIC.
10296
10497
      ecc*)
10460
10661
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10461
10662
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10462
10663
   -e 's:$: $lt_compiler_flag:'`
10463
 
   (eval echo "\"\$as_me:10463: $lt_compile\"" >&5)
 
10664
   (eval echo "\"\$as_me:10664: $lt_compile\"" >&5)
10464
10665
   (eval "$lt_compile" 2>conftest.err)
10465
10666
   ac_status=$?
10466
10667
   cat conftest.err >&5
10467
 
   echo "$as_me:10467: \$? = $ac_status" >&5
 
10668
   echo "$as_me:10668: \$? = $ac_status" >&5
10468
10669
   if (exit $ac_status) && test -s "$ac_outfile"; then
10469
10670
     # The compiler can only warn and ignore the option if not recognized
10470
10671
     # So say no if there are warnings other than the usual output.
10565
10766
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10566
10767
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10567
10768
   -e 's:$: $lt_compiler_flag:'`
10568
 
   (eval echo "\"\$as_me:10568: $lt_compile\"" >&5)
 
10769
   (eval echo "\"\$as_me:10769: $lt_compile\"" >&5)
10569
10770
   (eval "$lt_compile" 2>out/conftest.err)
10570
10771
   ac_status=$?
10571
10772
   cat out/conftest.err >&5
10572
 
   echo "$as_me:10572: \$? = $ac_status" >&5
 
10773
   echo "$as_me:10773: \$? = $ac_status" >&5
10573
10774
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10574
10775
   then
10575
10776
     # The compiler can only warn and ignore the option if not recognized
10620
10821
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10621
10822
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10622
10823
   -e 's:$: $lt_compiler_flag:'`
10623
 
   (eval echo "\"\$as_me:10623: $lt_compile\"" >&5)
 
10824
   (eval echo "\"\$as_me:10824: $lt_compile\"" >&5)
10624
10825
   (eval "$lt_compile" 2>out/conftest.err)
10625
10826
   ac_status=$?
10626
10827
   cat out/conftest.err >&5
10627
 
   echo "$as_me:10627: \$? = $ac_status" >&5
 
10828
   echo "$as_me:10828: \$? = $ac_status" >&5
10628
10829
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10629
10830
   then
10630
10831
     # The compiler can only warn and ignore the option if not recognized
10739
10940
  openbsd*)
10740
10941
    with_gnu_ld=no
10741
10942
    ;;
 
10943
  linux* | k*bsd*-gnu)
 
10944
    link_all_deplibs=no
 
10945
    ;;
10742
10946
  esac
10743
10947
 
10744
10948
  ld_shlibs=yes
10760
10964
    fi
10761
10965
    supports_anon_versioning=no
10762
10966
    case `$LD -v 2>&1` in
 
10967
      *GNU\ gold*) supports_anon_versioning=yes ;;
10763
10968
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10764
10969
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10765
10970
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10851
11056
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10852
11057
      ;;
10853
11058
 
10854
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
11059
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10855
11060
      tmp_diet=no
10856
11061
      if test "$host_os" = linux-dietlibc; then
10857
11062
        case $cc_basename in
10921
11126
      fi
10922
11127
      ;;
10923
11128
 
10924
 
    netbsd*)
 
11129
    netbsd* | netbsdelf*-gnu)
10925
11130
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10926
11131
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10927
11132
        wlarc=
11096
11301
        if test "$aix_use_runtimelinking" = yes; then
11097
11302
          shared_flag="$shared_flag "'${wl}-G'
11098
11303
        fi
 
11304
        link_all_deplibs=no
11099
11305
      else
11100
11306
        # not using gcc
11101
11307
        if test "$host_cpu" = ia64; then
11420
11626
      link_all_deplibs=yes
11421
11627
      ;;
11422
11628
 
11423
 
    netbsd*)
 
11629
    netbsd* | netbsdelf*-gnu)
11424
11630
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11425
11631
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11426
11632
      else
12310
12516
  ;;
12311
12517
 
12312
12518
# This must be Linux ELF.
12313
 
linux* | k*bsd*-gnu)
 
12519
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12314
12520
  version_type=linux
12315
12521
  need_lib_prefix=no
12316
12522
  need_version=no
12364
12570
  dynamic_linker='GNU/Linux ld.so'
12365
12571
  ;;
12366
12572
 
 
12573
netbsdelf*-gnu)
 
12574
  version_type=linux
 
12575
  need_lib_prefix=no
 
12576
  need_version=no
 
12577
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12578
  soname_spec='${libname}${release}${shared_ext}$major'
 
12579
  shlibpath_var=LD_LIBRARY_PATH
 
12580
  shlibpath_overrides_runpath=no
 
12581
  hardcode_into_libs=yes
 
12582
  dynamic_linker='NetBSD ld.elf_so'
 
12583
  ;;
 
12584
 
12367
12585
netbsd*)
12368
12586
  version_type=sunos
12369
12587
  need_lib_prefix=no
12969
13187
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12970
13188
  lt_status=$lt_dlunknown
12971
13189
  cat > conftest.$ac_ext <<_LT_EOF
12972
 
#line 12972 "configure"
 
13190
#line 13190 "configure"
12973
13191
#include "confdefs.h"
12974
13192
 
12975
13193
#if HAVE_DLFCN_H
13065
13283
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13066
13284
  lt_status=$lt_dlunknown
13067
13285
  cat > conftest.$ac_ext <<_LT_EOF
13068
 
#line 13068 "configure"
 
13286
#line 13286 "configure"
13069
13287
#include "confdefs.h"
13070
13288
 
13071
13289
#if HAVE_DLFCN_H
13803
14021
  fi
13804
14022
 
13805
14023
 
13806
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
 
14024
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
 
14025
$as_echo_n "checking if compiler is clang... " >&6; }
 
14026
 
 
14027
      if test -z "$SED"; then
 
14028
    as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5
 
14029
  fi
 
14030
  if test -z "$GREP"; then
 
14031
    as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
 
14032
  fi
 
14033
 
 
14034
  tmp_exp=""
 
14035
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14036
/* end confdefs.h.  */
 
14037
 
 
14038
 
 
14039
#ifdef __clang__
 
14040
CURL_DEF_TOKEN __clang__
 
14041
#endif
 
14042
 
 
14043
 
 
14044
_ACEOF
 
14045
if ac_fn_c_try_cpp "$LINENO"; then :
 
14046
 
 
14047
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
 
14048
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
 
14049
      "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
 
14050
      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
 
14051
    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
 
14052
      tmp_exp=""
 
14053
    fi
 
14054
 
 
14055
fi
 
14056
rm -f conftest.err conftest.$ac_ext
 
14057
  if test -z "$tmp_exp"; then
 
14058
    curl_cv_have_def___clang__=no
 
14059
 
 
14060
  else
 
14061
    curl_cv_have_def___clang__=yes
 
14062
    curl_cv_def___clang__=$tmp_exp
 
14063
 
 
14064
  fi
 
14065
 
 
14066
  if test "$curl_cv_have_def___clang__" = "yes"; then
 
14067
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
14068
$as_echo "yes" >&6; }
 
14069
    compiler_id="CLANG"
 
14070
    clangver=`$CC -dumpversion`
 
14071
    clangvhi=`echo $clangver | cut -d . -f1`
 
14072
    clangvlo=`echo $clangver | cut -d . -f2`
 
14073
    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
 
14074
    flags_dbg_all="-g -g0 -g1 -g2 -g3"
 
14075
    flags_dbg_all="$flags_dbg_all -ggdb"
 
14076
    flags_dbg_all="$flags_dbg_all -gstabs"
 
14077
    flags_dbg_all="$flags_dbg_all -gstabs+"
 
14078
    flags_dbg_all="$flags_dbg_all -gcoff"
 
14079
    flags_dbg_all="$flags_dbg_all -gxcoff"
 
14080
    flags_dbg_all="$flags_dbg_all -gdwarf-2"
 
14081
    flags_dbg_all="$flags_dbg_all -gvms"
 
14082
    flags_dbg_yes="-g"
 
14083
    flags_dbg_off="-g0"
 
14084
    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
 
14085
    flags_opt_yes="-Os"
 
14086
    flags_opt_off="-O0"
 
14087
  else
 
14088
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14089
$as_echo "no" >&6; }
 
14090
  fi
 
14091
 
 
14092
 
 
14093
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
13807
14094
$as_echo_n "checking if compiler is GNU C... " >&6; }
13808
14095
 
13809
14096
      if test -z "$SED"; then
14430
14717
      #
14431
14718
  if test "$compiler_id" != "unknown"; then
14432
14719
    #
14433
 
    if test "$compiler_id" = "GNU_C"; then
 
14720
    if test "$compiler_id" = "GNU_C" ||
 
14721
      test "$compiler_id" = "CLANG"; then
14434
14722
 
14435
14723
    tmp_has_include="no"
14436
14724
  tmp_chg_FLAGS="$CFLAGS"
14472
14760
    #
14473
14761
    case "$compiler_id" in
14474
14762
        #
 
14763
      CLANG)
 
14764
        #
 
14765
                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
 
14766
        ;;
 
14767
        #
14475
14768
      DEC_C)
14476
14769
        #
14477
14770
                tmp_CFLAGS="$tmp_CFLAGS -std1"
15124
15417
    #
15125
15418
    case "$compiler_id" in
15126
15419
        #
 
15420
      CLANG)
 
15421
        #
 
15422
        if test "$want_warnings" = "yes"; then
 
15423
                              tmp_CFLAGS="$tmp_CFLAGS -pedantic"
 
15424
          tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
 
15425
          tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
 
15426
          tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
 
15427
          tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
 
15428
          tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
 
15429
          tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
 
15430
          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
 
15431
          tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
 
15432
          tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
 
15433
          tmp_CFLAGS="$tmp_CFLAGS -Wundef"
 
15434
          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
 
15435
          tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
 
15436
          tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
 
15437
          tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
 
15438
          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
 
15439
          tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
 
15440
          #
 
15441
                    if test "$compiler_num" -ge "101"; then
 
15442
            tmp_CFLAGS="$tmp_CFLAGS -Wunused"
 
15443
          fi
 
15444
        fi
 
15445
        ;;
 
15446
        #
15127
15447
      DEC_C)
15128
15448
        #
15129
15449
        if test "$want_warnings" = "yes"; then
15242
15562
          fi
15243
15563
        fi
15244
15564
                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
15245
 
                tmp_CFLAGS="$tmp_CFLAGS -no-ansi-alias"
 
15565
                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
15246
15566
                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
15247
15567
                if test "$compiler_num" -ge "1000"; then
15248
15568
                    tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
15446
15766
  fi
15447
15767
 
15448
15768
 
15449
 
case $host in
15450
 
  #
15451
 
  x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
15452
 
    #
15453
 
    if test "$compiler_id" = "INTEL_UNIX_C"; then
15454
 
      #
15455
 
      if test "$compiler_num" -ge "900" &&
15456
 
        test "$compiler_num" -lt "1000"; then
15457
 
                CFLAGS="$CFLAGS -i-dynamic"
15458
 
      fi
15459
 
      #
15460
 
      if test "$compiler_num" -ge "1000"; then
15461
 
                CFLAGS="$CFLAGS -shared-intel"
15462
 
      fi
15463
 
      #
15464
 
    fi
15465
 
    ;;
15466
 
  #
15467
 
esac
 
15769
if test "$compiler_id" = "INTEL_UNIX_C"; then
 
15770
  #
 
15771
  if test "$compiler_num" -ge "1000"; then
 
15772
        CFLAGS="$CFLAGS -shared-intel"
 
15773
  elif test "$compiler_num" -ge "900"; then
 
15774
        CFLAGS="$CFLAGS -i-dynamic"
 
15775
  fi
 
15776
  #
 
15777
fi
15468
15778
 
15469
15779
 
15470
15780
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
16134
16444
 
16135
16445
$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
16136
16446
 
16137
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy" >&5
16138
 
$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy" >&2;}
 
16447
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
 
16448
$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
16139
16449
       CURL_DISABLE_HTTP=1
16140
16450
 
 
16451
 
 
16452
$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
 
16453
 
 
16454
       CURL_DISABLE_RTSP=1
 
16455
 
16141
16456
       ;;
16142
16457
  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16143
16458
$as_echo "yes" >&6; }
16212
16527
 
16213
16528
       ;;
16214
16529
  *)
16215
 
       case $host in
16216
 
         *-*-cygwin*)
16217
 
           # Force no ldap. config/build process is broken for cygwin
16218
 
 
16219
 
$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
16220
 
 
16221
 
           CURL_DISABLE_LDAP=1
16222
 
 
16223
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16224
 
$as_echo "no" >&6; }
16225
 
           ;;
16226
 
         *)
16227
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16530
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16228
16531
$as_echo "yes" >&6; }
16229
 
       esac
16230
16532
       ;;
16231
16533
  esac
16232
16534
else
16233
16535
 
16234
 
       case $host in
16235
 
         *-*-cygwin*)
16236
 
           # Force no ldap. config/build process is broken for cygwin
16237
 
 
16238
 
$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
16239
 
 
16240
 
           CURL_DISABLE_LDAP=1
16241
 
 
16242
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16243
 
$as_echo "no" >&6; }
16244
 
           ;;
16245
 
         *)
16246
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16536
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16247
16537
$as_echo "yes" >&6; }
16248
 
       esac
16249
16538
 
16250
16539
fi
16251
16540
 
16263
16552
       CURL_DISABLE_LDAPS=1
16264
16553
 
16265
16554
       ;;
16266
 
  *)   if test x$CURL_DISABLE_LDAP = x1 ; then
16267
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP support needs to be enabled in order to enable LDAPS support!" >&5
16268
 
$as_echo "LDAP support needs to be enabled in order to enable LDAPS support!" >&6; }
16269
 
 
16270
 
$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16271
 
 
16272
 
               CURL_DISABLE_LDAPS=1
16273
 
 
16274
 
       else
16275
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16276
 
$as_echo "yes" >&6; }
16277
 
 
16278
 
$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
16279
 
 
16280
 
               curl_ldaps_msg="enabled"
16281
 
       fi
16282
 
       ;;
16283
 
  esac
16284
 
else
16285
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286
 
$as_echo "no" >&6; }
16287
 
 
16288
 
$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16289
 
 
16290
 
       CURL_DISABLE_LDAPS=1
16291
 
 
 
16555
  *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
 
16556
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
 
16557
$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
 
16558
 
 
16559
$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
 
16560
 
 
16561
         CURL_DISABLE_LDAPS=1
 
16562
 
 
16563
       else
 
16564
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16565
$as_echo "yes" >&6; }
 
16566
 
 
16567
$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
 
16568
 
 
16569
         HAVE_LDAP_SSL=1
 
16570
 
 
16571
         curl_ldaps_msg="enabled"
 
16572
       fi
 
16573
       ;;
 
16574
  esac
 
16575
else
 
16576
 
 
16577
       if test "x$CURL_DISABLE_LDAP" = "x1" ; then
 
16578
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16579
$as_echo "no" >&6; }
 
16580
 
 
16581
$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
 
16582
 
 
16583
         CURL_DISABLE_LDAPS=1
 
16584
 
 
16585
       else
 
16586
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16587
$as_echo "yes" >&6; }
 
16588
 
 
16589
$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
 
16590
 
 
16591
         HAVE_LDAP_SSL=1
 
16592
 
 
16593
         curl_ldaps_msg="enabled"
 
16594
       fi
 
16595
 
 
16596
fi
 
16597
 
 
16598
 
 
16599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
 
16600
$as_echo_n "checking whether to support rtsp... " >&6; }
 
16601
# Check whether --enable-rtsp was given.
 
16602
if test "${enable_rtsp+set}" = set; then :
 
16603
  enableval=$enable_rtsp;  case "$enableval" in
 
16604
  no)
 
16605
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16606
$as_echo "no" >&6; }
 
16607
 
 
16608
$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
 
16609
 
 
16610
       CURL_DISABLE_RTSP=1
 
16611
 
 
16612
       ;;
 
16613
  *)   if test x$CURL_DISABLE_HTTP = x1 ; then
 
16614
          as_fn_error "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
 
16615
       else
 
16616
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16617
$as_echo "yes" >&6; }
 
16618
          curl_rtsp_msg="enabled"
 
16619
       fi
 
16620
       ;;
 
16621
  esac
 
16622
else
 
16623
  if test "x$CURL_DISABLE_HTTP" != "x1"; then
 
16624
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16625
$as_echo "yes" >&6; }
 
16626
          curl_rtsp_msg="enabled"
 
16627
       else
 
16628
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16629
$as_echo "no" >&6; }
 
16630
       fi
16292
16631
 
16293
16632
fi
16294
16633
 
16391
16730
fi
16392
16731
 
16393
16732
 
 
16733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
 
16734
$as_echo_n "checking whether to support pop3... " >&6; }
 
16735
# Check whether --enable-pop3 was given.
 
16736
if test "${enable_pop3+set}" = set; then :
 
16737
  enableval=$enable_pop3;  case "$enableval" in
 
16738
  no)
 
16739
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16740
$as_echo "no" >&6; }
 
16741
 
 
16742
$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
 
16743
 
 
16744
       CURL_DISABLE_POP3=1
 
16745
 
 
16746
       ;;
 
16747
  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16748
$as_echo "yes" >&6; }
 
16749
       ;;
 
16750
  esac
 
16751
else
 
16752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16753
$as_echo "yes" >&6; }
 
16754
 
 
16755
fi
 
16756
 
 
16757
 
 
16758
 
 
16759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
 
16760
$as_echo_n "checking whether to support imap... " >&6; }
 
16761
# Check whether --enable-imap was given.
 
16762
if test "${enable_imap+set}" = set; then :
 
16763
  enableval=$enable_imap;  case "$enableval" in
 
16764
  no)
 
16765
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16766
$as_echo "no" >&6; }
 
16767
 
 
16768
$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
 
16769
 
 
16770
       CURL_DISABLE_IMAP=1
 
16771
 
 
16772
       ;;
 
16773
  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16774
$as_echo "yes" >&6; }
 
16775
       ;;
 
16776
  esac
 
16777
else
 
16778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16779
$as_echo "yes" >&6; }
 
16780
 
 
16781
fi
 
16782
 
 
16783
 
 
16784
 
 
16785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
 
16786
$as_echo_n "checking whether to support smtp... " >&6; }
 
16787
# Check whether --enable-smtp was given.
 
16788
if test "${enable_smtp+set}" = set; then :
 
16789
  enableval=$enable_smtp;  case "$enableval" in
 
16790
  no)
 
16791
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16792
$as_echo "no" >&6; }
 
16793
 
 
16794
$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
 
16795
 
 
16796
       CURL_DISABLE_SMTP=1
 
16797
 
 
16798
       ;;
 
16799
  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16800
$as_echo "yes" >&6; }
 
16801
       ;;
 
16802
  esac
 
16803
else
 
16804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16805
$as_echo "yes" >&6; }
 
16806
 
 
16807
fi
 
16808
 
 
16809
 
 
16810
 
16394
16811
 
16395
16812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
16396
16813
$as_echo_n "checking whether to provide built-in manual... " >&6; }
17769
18186
 
17770
18187
 
17771
18188
  if test -z "$LDAPLIBNAME" ; then
17772
 
    case $host in
17773
 
      *-*-cygwin* | *-*-mingw* | *-*-pw32*)
17774
 
                LDAPLIBNAME="wldap32"
17775
 
        LBERLIBNAME="no"
17776
 
        ;;
17777
 
    esac
 
18189
    if test "$ac_cv_native_windows" = "yes"; then
 
18190
            LDAPLIBNAME="wldap32"
 
18191
      LBERLIBNAME="no"
 
18192
    fi
17778
18193
  fi
17779
18194
 
17780
18195
  if test "$LDAPLIBNAME" ; then
18024
18439
fi
18025
18440
 
18026
18441
if test x$CURL_DISABLE_LDAP != x1 ; then
18027
 
  for ac_func in ldap_url_parse
 
18442
  for ac_func in ldap_url_parse ldap_init_fd
18028
18443
do :
18029
 
  ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
18030
 
if test "x$ac_cv_func_ldap_url_parse" = x""yes; then :
 
18444
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18445
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
18446
eval as_val=\$$as_ac_var
 
18447
   if test "x$as_val" = x""yes; then :
18031
18448
  cat >>confdefs.h <<_ACEOF
18032
 
#define HAVE_LDAP_URL_PARSE 1
 
18449
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033
18450
_ACEOF
18034
18451
 
18035
18452
fi
18041
18458
 
18042
18459
$as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
18043
18460
 
18044
 
    case $host in
18045
 
      *-*-cygwin* | *-*-pw32*)
18046
 
 
18047
 
$as_echo "#define CURL_LDAP_HYBRID 1" >>confdefs.h
18048
 
 
18049
 
        ;;
18050
 
    esac
18051
18461
  else
18052
18462
    curl_ldap_msg="enabled (OpenLDAP)"
 
18463
    if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
 
18464
 
 
18465
$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
 
18466
 
 
18467
      USE_OPENLDAP=1
 
18468
 
 
18469
    fi
18053
18470
  fi
18054
18471
fi
18055
18472
 
18537
18954
  if test -z "$GSSAPI_INCS"; then
18538
18955
     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
18539
18956
        GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
18540
 
        GSSAPI_LIBS=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
18541
18957
     elif test "$GSSAPI_ROOT" != "yes"; then
18542
18958
        GSSAPI_INCS="-I$GSSAPI_ROOT/include"
18543
 
        GSSAPI_LIBS="-lgssapi"
18544
18959
     fi
18545
18960
  fi
18546
18961
 
18547
18962
  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
18548
 
  LIBS="$LIBS $GSSAPI_LIBS"
18549
18963
 
18550
18964
  ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
18551
18965
if test "x$ac_cv_header_gss_h" = x""yes; then :
18557
18971
 
18558
18972
else
18559
18973
 
18560
 
            for ac_header in gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
 
18974
            for ac_header in gssapi/gssapi.h
 
18975
do :
 
18976
  ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
 
18977
if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then :
 
18978
  cat >>confdefs.h <<_ACEOF
 
18979
#define HAVE_GSSAPI_GSSAPI_H 1
 
18980
_ACEOF
 
18981
 
 
18982
else
 
18983
  not_mit=1
 
18984
fi
 
18985
 
 
18986
done
 
18987
 
 
18988
      for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
18561
18989
do :
18562
18990
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18563
 
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
18991
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
 
18992
$ac_includes_default
 
18993
#ifdef HAVE_GSSAPI_GSSAPI_H
 
18994
#include <gssapi/gssapi.h>
 
18995
#endif
 
18996
 
 
18997
"
18564
18998
eval as_val=\$$as_ac_Header
18565
18999
   if test "x$as_val" = x""yes; then :
18566
19000
  cat >>confdefs.h <<_ACEOF
18656
19090
    LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
18657
19091
    LIBS="$LIBS -lgss"
18658
19092
  elif test -z "$GSSAPI_LIB_DIR"; then
18659
 
     if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
18660
 
                        gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
18661
 
        LIBS="$LIBS $gss_libs"
18662
 
     elif test "$GSSAPI_ROOT" != "yes"; then
18663
 
        LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
18664
 
        LIBS="$LIBS -lgssapi"
18665
 
     else
18666
 
        LIBS="$LIBS -lgssapi"
18667
 
     fi
 
19093
     case $host in
 
19094
     *-*-darwin*)
 
19095
        LIBS="$LIBS -lgssapi_krb5 -lresolv"
 
19096
        ;;
 
19097
     *)
 
19098
        if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
 
19099
                                 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
 
19100
           LIBS="$LIBS $gss_libs"
 
19101
        elif test "$GSSAPI_ROOT" != "yes"; then
 
19102
           LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
 
19103
           LIBS="$LIBS -lgssapi"
 
19104
        else
 
19105
           LIBS="$LIBS -lgssapi"
 
19106
        fi
 
19107
        ;;
 
19108
     esac
18668
19109
  else
18669
19110
     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
18670
19111
     LIBS="$LIBS -lgssapi"
18705
19146
  *)
18706
19147
        PKGTEST="no"
18707
19148
    PREFIX_OPENSSL=$OPT_SSL
18708
 
    LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
 
19149
 
 
19150
                OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
 
19151
    { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
 
19152
$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
 
19153
    if test -e "$OPENSSL_PCDIR/openssl.pc"; then
 
19154
      PKGTEST="yes"
 
19155
    fi
 
19156
 
 
19157
            LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
18709
19158
    if test "$PREFIX_OPENSSL" != "/usr" ; then
18710
 
      LDFLAGS="$LDFLAGS -L$LIB_OPENSSL"
18711
 
      CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include"
 
19159
      SSL_LDFLAGS="-L$LIB_OPENSSL"
 
19160
      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
18712
19161
    fi
18713
 
    CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
 
19162
    SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
18714
19163
    ;;
18715
19164
  esac
18716
19165
 
18813
19262
    if test x$PKGCONFIG != xno; then
18814
19263
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
18815
19264
$as_echo_n "checking for openssl options with pkg-config... " >&6; }
18816
 
            $PKGCONFIG --exists openssl
18817
 
      if test "$?" -ne "0"; then
 
19265
            itexists=`
 
19266
    if test -n "$OPENSSL_PCDIR"; then
 
19267
      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
 
19268
      export PKG_CONFIG_LIBDIR
 
19269
    fi
 
19270
         $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
 
19271
 
 
19272
      if test -z "$itexists"; then
18818
19273
                        PKGCONFIG="no"
18819
19274
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820
19275
$as_echo "no" >&6; }
18826
19281
 
18827
19282
 
18828
19283
    if test "$PKGCONFIG" != "no" ; then
18829
 
      SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
18830
 
      SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
18831
 
      SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
 
19284
      SSL_LIBS=`
 
19285
    if test -n "$OPENSSL_PCDIR"; then
 
19286
      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
 
19287
      export PKG_CONFIG_LIBDIR
 
19288
    fi
 
19289
         $PKGCONFIG --libs-only-l openssl 2>/dev/null`
 
19290
 
 
19291
      SSL_LDFLAGS=`
 
19292
    if test -n "$OPENSSL_PCDIR"; then
 
19293
      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
 
19294
      export PKG_CONFIG_LIBDIR
 
19295
    fi
 
19296
         $PKGCONFIG --libs-only-L openssl 2>/dev/null`
 
19297
 
 
19298
      SSL_CPPFLAGS=`
 
19299
    if test -n "$OPENSSL_PCDIR"; then
 
19300
      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
 
19301
      export PKG_CONFIG_LIBDIR
 
19302
    fi
 
19303
         $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
 
19304
 
 
19305
      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
 
19306
$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
 
19307
      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
 
19308
$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
 
19309
      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
 
19310
$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
18832
19311
 
18833
19312
      LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
18834
19313
 
18835
 
            LIBS="$LIBS $SSL_LIBS"
18836
 
      CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
18837
 
      LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
 
19314
                                          LIBS="$LIBS $SSL_LIBS"
18838
19315
    fi
18839
19316
  fi
18840
19317
 
 
19318
    CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
 
19319
  LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
 
19320
 
18841
19321
    case $host in
18842
19322
    *-*-msys* | *-*-mingw*)
18843
19323
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
19175
19655
    for ac_func in RAND_status \
19176
19656
                    RAND_screen \
19177
19657
                    RAND_egd \
 
19658
                    ENGINE_cleanup \
19178
19659
                    CRYPTO_cleanup_all_ex_data \
19179
19660
                    SSL_get_shutdown
19180
19661
do :
19580
20061
    if test x$PKGCONFIG != xno; then
19581
20062
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
19582
20063
$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
19583
 
            $PKGCONFIG --exists gnutls
19584
 
      if test "$?" -ne "0"; then
 
20064
            itexists=`
 
20065
    if test -n ""; then
 
20066
      PKG_CONFIG_LIBDIR=""
 
20067
      export PKG_CONFIG_LIBDIR
 
20068
    fi
 
20069
         $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
 
20070
 
 
20071
      if test -z "$itexists"; then
19585
20072
                        PKGCONFIG="no"
19586
20073
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19587
20074
$as_echo "no" >&6; }
19710
20197
  fi
19711
20198
fi
19712
20199
 
 
20200
OPT_POLARSSL=no
 
20201
 
 
20202
_cppflags=$CPPFLAGS
 
20203
_ldflags=$LDFLAGS
 
20204
 
 
20205
# Check whether --with-polarssl was given.
 
20206
if test "${with_polarssl+set}" = set; then :
 
20207
  withval=$with_polarssl; OPT_POLARSSL=$withval
 
20208
fi
 
20209
 
 
20210
 
 
20211
if test "$OPENSSL_ENABLED" != "1"; then
 
20212
 
 
20213
  if test X"$OPT_POLARSSL" != Xno; then
 
20214
 
 
20215
    if test "$OPT_POLARSSL" = "yes"; then
 
20216
      OPT_POLARSSL=""
 
20217
    fi
 
20218
 
 
20219
    if test -z "$OPT_POLARSSL" ; then
 
20220
 
 
20221
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
 
20222
$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
 
20223
if test "${ac_cv_lib_polarssl_havege_init+set}" = set; then :
 
20224
  $as_echo_n "(cached) " >&6
 
20225
else
 
20226
  ac_check_lib_save_LIBS=$LIBS
 
20227
LIBS="-lpolarssl  $LIBS"
 
20228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20229
/* end confdefs.h.  */
 
20230
 
 
20231
 
 
20232
#ifdef __cplusplus
 
20233
extern "C"
 
20234
#endif
 
20235
char havege_init ();
 
20236
int main (void)
 
20237
{
 
20238
return havege_init ();
 
20239
 ;
 
20240
 return 0;
 
20241
}
 
20242
_ACEOF
 
20243
if ac_fn_c_try_link "$LINENO"; then :
 
20244
  ac_cv_lib_polarssl_havege_init=yes
 
20245
else
 
20246
  ac_cv_lib_polarssl_havege_init=no
 
20247
fi
 
20248
rm -f core conftest.err conftest.$ac_objext \
 
20249
    conftest$ac_exeext conftest.$ac_ext
 
20250
LIBS=$ac_check_lib_save_LIBS
 
20251
fi
 
20252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
 
20253
$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
 
20254
if test "x$ac_cv_lib_polarssl_havege_init" = x""yes; then :
 
20255
 
 
20256
 
 
20257
$as_echo "#define USE_POLARSSL 1" >>confdefs.h
 
20258
 
 
20259
         USE_POLARSSL=1
 
20260
 
 
20261
         POLARSSL_ENABLED=1
 
20262
         USE_POLARSSL="yes"
 
20263
         curl_ssl_msg="enabled (PolarSSL)"
 
20264
 
 
20265
fi
 
20266
 
 
20267
    fi
 
20268
 
 
20269
    if test "x$USE_POLARSSL" != "xyes"; then
 
20270
            addld=-L$OPT_POLARSSL/lib$libsuff
 
20271
      addcflags=-I$OPT_POLARSSL/include
 
20272
      polarssllib=$OPT_POLARSSL/lib$libsuff
 
20273
 
 
20274
      LDFLAGS="$LDFLAGS $addld"
 
20275
      if test "$addcflags" != "-I/usr/include"; then
 
20276
         CPPFLAGS="$CPPFLAGS $addcflags"
 
20277
      fi
 
20278
 
 
20279
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
 
20280
$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
 
20281
if test "${ac_cv_lib_polarssl_ssl_init+set}" = set; then :
 
20282
  $as_echo_n "(cached) " >&6
 
20283
else
 
20284
  ac_check_lib_save_LIBS=$LIBS
 
20285
LIBS="-lpolarssl  $LIBS"
 
20286
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20287
/* end confdefs.h.  */
 
20288
 
 
20289
 
 
20290
#ifdef __cplusplus
 
20291
extern "C"
 
20292
#endif
 
20293
char ssl_init ();
 
20294
int main (void)
 
20295
{
 
20296
return ssl_init ();
 
20297
 ;
 
20298
 return 0;
 
20299
}
 
20300
_ACEOF
 
20301
if ac_fn_c_try_link "$LINENO"; then :
 
20302
  ac_cv_lib_polarssl_ssl_init=yes
 
20303
else
 
20304
  ac_cv_lib_polarssl_ssl_init=no
 
20305
fi
 
20306
rm -f core conftest.err conftest.$ac_objext \
 
20307
    conftest$ac_exeext conftest.$ac_ext
 
20308
LIBS=$ac_check_lib_save_LIBS
 
20309
fi
 
20310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
 
20311
$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
 
20312
if test "x$ac_cv_lib_polarssl_ssl_init" = x""yes; then :
 
20313
 
 
20314
 
 
20315
$as_echo "#define USE_POLARSSL 1" >>confdefs.h
 
20316
 
 
20317
       USE_POLARSSL=1
 
20318
 
 
20319
       POLARSSL_ENABLED=1
 
20320
       USE_POLARSSL="yes"
 
20321
       curl_ssl_msg="enabled (PolarSSL)"
 
20322
 
 
20323
else
 
20324
 
 
20325
         CPPFLAGS=$_cppflags
 
20326
         LDFLAGS=$_ldflags
 
20327
 
 
20328
fi
 
20329
 
 
20330
    fi
 
20331
 
 
20332
    if test "x$USE_POLARSSL" = "xyes"; then
 
20333
      { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
 
20334
$as_echo "$as_me: detected PolarSSL" >&6;}
 
20335
 
 
20336
      CURL_LIBS="$CURL_LIBS -lpolarssl"
 
20337
      LIBS="$LIBS -lpolarssl"
 
20338
 
 
20339
      if test -n "$polarssllib"; then
 
20340
 
 
20341
        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
 
20342
        export LD_LIBRARY_PATH
 
20343
        { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
 
20344
$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
 
20345
      fi
 
20346
 
 
20347
    fi
 
20348
 
 
20349
  fi
 
20350
fi
 
20351
 
19713
20352
OPT_NSS=no
19714
20353
 
19715
20354
 
19821
20460
    if test x$PKGCONFIG != xno; then
19822
20461
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
19823
20462
$as_echo_n "checking for nss options with pkg-config... " >&6; }
19824
 
            $PKGCONFIG --exists nss
19825
 
      if test "$?" -ne "0"; then
 
20463
            itexists=`
 
20464
    if test -n ""; then
 
20465
      PKG_CONFIG_LIBDIR=""
 
20466
      export PKG_CONFIG_LIBDIR
 
20467
    fi
 
20468
         $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
 
20469
 
 
20470
      if test -z "$itexists"; then
19826
20471
                        PKGCONFIG="no"
19827
20472
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19828
20473
$as_echo "no" >&6; }
19852
20497
          version="unknown"
19853
20498
        fi
19854
20499
      fi
 
20500
    else
 
20501
        # Without pkg-config, we'll kludge in some defaults
 
20502
        addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
 
20503
        addcflags="-I$OPT_NSS/include"
 
20504
        version="unknown"
 
20505
        nssprefix=$OPT_NSS
19855
20506
    fi
19856
20507
 
19857
20508
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreateGenericObject in -lnss3" >&5
19974
20625
 
19975
20626
  fi
19976
20627
fi
19977
 
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED" = "x"; then
 
20628
if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED" = "x"; then
19978
20629
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
19979
20630
$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
19980
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&5
19981
 
$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&2;}
 
20631
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl or --with-nss to address this." >&5
 
20632
$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl or --with-nss to address this." >&2;}
19982
20633
else
19983
20634
  # SSL is enabled, genericly
19984
20635
 
20203
20854
    if test x$PKGCONFIG != xno; then
20204
20855
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
20205
20856
$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
20206
 
            $PKGCONFIG --exists libssh2
20207
 
      if test "$?" -ne "0"; then
 
20857
            itexists=`
 
20858
    if test -n ""; then
 
20859
      PKG_CONFIG_LIBDIR=""
 
20860
      export PKG_CONFIG_LIBDIR
 
20861
    fi
 
20862
         $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
 
20863
 
 
20864
      if test -z "$itexists"; then
20208
20865
                        PKGCONFIG="no"
20209
20866
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20210
20867
$as_echo "no" >&6; }
20312
20969
  if test "$LIBSSH2_ENABLED" = "1"; then
20313
20970
    if test -n "$DIR_SSH2"; then
20314
20971
 
20315
 
              for ac_func in libssh2_version
 
20972
                     for ac_func in libssh2_version libssh2_init libssh2_exit
20316
20973
do :
20317
20974
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20318
20975
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20339
20996
fi
20340
20997
 
20341
20998
 
 
20999
OPT_LIBRTMP=off
 
21000
 
 
21001
# Check whether --with-librtmp was given.
 
21002
if test "${with_librtmp+set}" = set; then :
 
21003
  withval=$with_librtmp; OPT_LIBRTMP=$withval
 
21004
fi
 
21005
 
 
21006
 
 
21007
if test X"$OPT_LIBRTMP" != Xno; then
 
21008
    CLEANLDFLAGS="$LDFLAGS"
 
21009
  CLEANCPPFLAGS="$CPPFLAGS"
 
21010
  CLEANLIBS="$LIBS"
 
21011
 
 
21012
  case "$OPT_LIBRTMP" in
 
21013
  yes)
 
21014
 
 
21015
 
 
21016
    PKGCONFIG="no"
 
21017
 
 
21018
    if test x$cross_compiling = xyes; then
 
21019
            # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
 
21020
set dummy ${host}-pkg-config; ac_word=$2
 
21021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21022
$as_echo_n "checking for $ac_word... " >&6; }
 
21023
if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
 
21024
  $as_echo_n "(cached) " >&6
 
21025
else
 
21026
  case $PKGCONFIG in
 
21027
  [\\/]* | ?:[\\/]*)
 
21028
  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
 
21029
  ;;
 
21030
  *)
 
21031
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21032
as_dummy="$PATH:/usr/bin:/usr/local/bin"
 
21033
for as_dir in $as_dummy
 
21034
do
 
21035
  IFS=$as_save_IFS
 
21036
  test -z "$as_dir" && as_dir=.
 
21037
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21038
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21039
    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21040
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21041
    break 2
 
21042
  fi
 
21043
done
 
21044
  done
 
21045
IFS=$as_save_IFS
 
21046
 
 
21047
  test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
 
21048
  ;;
 
21049
esac
 
21050
fi
 
21051
PKGCONFIG=$ac_cv_path_PKGCONFIG
 
21052
if test -n "$PKGCONFIG"; then
 
21053
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
 
21054
$as_echo "$PKGCONFIG" >&6; }
 
21055
else
 
21056
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21057
$as_echo "no" >&6; }
 
21058
fi
 
21059
 
 
21060
 
 
21061
    fi
 
21062
 
 
21063
    if test x$PKGCONFIG = xno; then
 
21064
      # Extract the first word of "pkg-config", so it can be a program name with args.
 
21065
set dummy pkg-config; ac_word=$2
 
21066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21067
$as_echo_n "checking for $ac_word... " >&6; }
 
21068
if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
 
21069
  $as_echo_n "(cached) " >&6
 
21070
else
 
21071
  case $PKGCONFIG in
 
21072
  [\\/]* | ?:[\\/]*)
 
21073
  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
 
21074
  ;;
 
21075
  *)
 
21076
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21077
as_dummy="$PATH:/usr/bin:/usr/local/bin"
 
21078
for as_dir in $as_dummy
 
21079
do
 
21080
  IFS=$as_save_IFS
 
21081
  test -z "$as_dir" && as_dir=.
 
21082
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21083
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21084
    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21085
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21086
    break 2
 
21087
  fi
 
21088
done
 
21089
  done
 
21090
IFS=$as_save_IFS
 
21091
 
 
21092
  test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
 
21093
  ;;
 
21094
esac
 
21095
fi
 
21096
PKGCONFIG=$ac_cv_path_PKGCONFIG
 
21097
if test -n "$PKGCONFIG"; then
 
21098
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
 
21099
$as_echo "$PKGCONFIG" >&6; }
 
21100
else
 
21101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21102
$as_echo "no" >&6; }
 
21103
fi
 
21104
 
 
21105
 
 
21106
    fi
 
21107
 
 
21108
    if test x$PKGCONFIG != xno; then
 
21109
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
 
21110
$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
 
21111
            itexists=`
 
21112
    if test -n ""; then
 
21113
      PKG_CONFIG_LIBDIR=""
 
21114
      export PKG_CONFIG_LIBDIR
 
21115
    fi
 
21116
         $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
 
21117
 
 
21118
      if test -z "$itexists"; then
 
21119
                        PKGCONFIG="no"
 
21120
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21121
$as_echo "no" >&6; }
 
21122
      else
 
21123
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 
21124
$as_echo "found" >&6; }
 
21125
      fi
 
21126
    fi
 
21127
 
 
21128
 
 
21129
    if test "$PKGCONFIG" != "no" ; then
 
21130
      LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
 
21131
      LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
 
21132
      CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
 
21133
      version=`$PKGCONFIG --modversion librtmp`
 
21134
      DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
 
21135
    fi
 
21136
 
 
21137
    ;;
 
21138
  off)
 
21139
        ;;
 
21140
  *)
 
21141
        PREFIX_RTMP=$OPT_LIBRTMP
 
21142
    ;;
 
21143
  esac
 
21144
 
 
21145
    if test -n "$PREFIX_RTMP"; then
 
21146
    LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
 
21147
    CPP_RTMP=-I${PREFIX_RTMP}/include
 
21148
    DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
 
21149
  fi
 
21150
 
 
21151
  LDFLAGS="$LDFLAGS $LD_RTMP"
 
21152
  CPPFLAGS="$CPPFLAGS $CPP_RTMP"
 
21153
  LIBS="$LIBS $LIB_RTMP"
 
21154
 
 
21155
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
 
21156
$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
 
21157
if test "${ac_cv_lib_rtmp_RTMP_Init+set}" = set; then :
 
21158
  $as_echo_n "(cached) " >&6
 
21159
else
 
21160
  ac_check_lib_save_LIBS=$LIBS
 
21161
LIBS="-lrtmp  $LIBS"
 
21162
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21163
/* end confdefs.h.  */
 
21164
 
 
21165
 
 
21166
#ifdef __cplusplus
 
21167
extern "C"
 
21168
#endif
 
21169
char RTMP_Init ();
 
21170
int main (void)
 
21171
{
 
21172
return RTMP_Init ();
 
21173
 ;
 
21174
 return 0;
 
21175
}
 
21176
_ACEOF
 
21177
if ac_fn_c_try_link "$LINENO"; then :
 
21178
  ac_cv_lib_rtmp_RTMP_Init=yes
 
21179
else
 
21180
  ac_cv_lib_rtmp_RTMP_Init=no
 
21181
fi
 
21182
rm -f core conftest.err conftest.$ac_objext \
 
21183
    conftest$ac_exeext conftest.$ac_ext
 
21184
LIBS=$ac_check_lib_save_LIBS
 
21185
fi
 
21186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
 
21187
$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
 
21188
if test "x$ac_cv_lib_rtmp_RTMP_Init" = x""yes; then :
 
21189
  cat >>confdefs.h <<_ACEOF
 
21190
#define HAVE_LIBRTMP 1
 
21191
_ACEOF
 
21192
 
 
21193
  LIBS="-lrtmp $LIBS"
 
21194
 
 
21195
fi
 
21196
 
 
21197
 
 
21198
  for ac_header in librtmp/rtmp.h
 
21199
do :
 
21200
  ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
 
21201
if test "x$ac_cv_header_librtmp_rtmp_h" = x""yes; then :
 
21202
  cat >>confdefs.h <<_ACEOF
 
21203
#define HAVE_LIBRTMP_RTMP_H 1
 
21204
_ACEOF
 
21205
 curl_rtmp_msg="enabled (librtmp)"
 
21206
    LIBRTMP_ENABLED=1
 
21207
 
 
21208
$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
 
21209
 
 
21210
    USE_LIBRTMP=1
 
21211
 
 
21212
 
 
21213
fi
 
21214
 
 
21215
done
 
21216
 
 
21217
 
 
21218
  if test X"$OPT_LIBRTMP" != Xoff &&
 
21219
     test "$LIBRTMP_ENABLED" != "1"; then
 
21220
    as_fn_error "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
 
21221
  fi
 
21222
 
 
21223
  if test "$LIBRTMP_ENABLED" != "1"; then
 
21224
        LDFLAGS=$CLEANLDFLAGS
 
21225
    CPPFLAGS=$CLEANCPPFLAGS
 
21226
    LIBS=$CLEANLIBS
 
21227
  fi
 
21228
fi
 
21229
 
 
21230
 
20342
21231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
20343
21232
$as_echo_n "checking whether to build with libidn... " >&6; }
20344
21233
 
20497
21386
       ;;
20498
21387
esac
20499
21388
 
20500
 
OPT_THREAD=on
20501
 
 
20502
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking AIX 4.3 or later" >&5
20503
 
$as_echo_n "checking AIX 4.3 or later... " >&6; }
20504
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505
 
/* end confdefs.h.  */
20506
 
 
20507
 
#if defined(_AIX) && defined(_AIX43)
20508
 
printf("just fine");
20509
 
#else
20510
 
#error "this is not AIX 4.3 or later"
20511
 
#endif
20512
 
 
20513
 
_ACEOF
20514
 
if ac_fn_c_try_cpp "$LINENO"; then :
20515
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20516
 
$as_echo "yes" >&6; }
20517
 
   RECENTAIX=yes
20518
 
   OPT_THREAD=off
20519
 
else
20520
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20521
 
$as_echo "no" >&6; }
20522
 
 
20523
 
fi
20524
 
rm -f conftest.err conftest.$ac_ext
20525
 
 
20526
 
# Check whether --enable-thread was given.
20527
 
if test "${enable_thread+set}" = set; then :
20528
 
  enableval=$enable_thread;  case "$enableval" in
20529
 
  no)
20530
 
    OPT_THREAD=off
20531
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl will not get built using thread-safe functions" >&5
20532
 
$as_echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
20533
 
    ;;
20534
 
  *)
20535
 
    ;;
20536
 
  esac
20537
 
 
20538
 
 
20539
 
fi
20540
 
 
20541
 
 
20542
 
if test X"$OPT_THREAD" = Xoff
20543
 
then
20544
 
 
20545
 
$as_echo "#define DISABLED_THREADSAFE 1" >>confdefs.h
20546
 
 
20547
 
else
20548
 
 
20549
 
 
20550
 
 
20551
 
 
20552
 
 
20553
 
  checkfor_gmtime_r="yes"
20554
 
fi
20555
 
 
20556
 
 
20557
 
 
20558
 
if test "x$RECENTAIX" = "xyes"; then
20559
 
 
20560
 
 
20561
 
$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
20562
 
 
20563
 
 
20564
 
 
20565
 
 
20566
 
  checkfor_gmtime_r="yes"
20567
 
fi
 
21389
 
20568
21390
 
20569
21391
 
20570
21392
 
21332
22154
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21333
22155
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21334
22156
# This bug is HP SR number 8606223364.
 
22157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
22158
$as_echo_n "checking size of long... " >&6; }
 
22159
if test "${ac_cv_sizeof_long+set}" = set; then :
 
22160
  $as_echo_n "(cached) " >&6
 
22161
else
 
22162
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
22163
 
 
22164
else
 
22165
  if test "$ac_cv_type_long" = yes; then
 
22166
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
22167
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
22168
{ as_fn_set_status 77
 
22169
as_fn_error "cannot compute sizeof (long)
 
22170
See \`config.log' for more details." "$LINENO" 5; }; }
 
22171
   else
 
22172
     ac_cv_sizeof_long=0
 
22173
   fi
 
22174
fi
 
22175
 
 
22176
fi
 
22177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
22178
$as_echo "$ac_cv_sizeof_long" >&6; }
 
22179
 
 
22180
 
 
22181
 
 
22182
cat >>confdefs.h <<_ACEOF
 
22183
#define SIZEOF_LONG $ac_cv_sizeof_long
 
22184
_ACEOF
 
22185
 
 
22186
 
 
22187
# The cast to long int works around a bug in the HP C Compiler
 
22188
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22189
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22190
# This bug is HP SR number 8606223364.
21335
22191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21336
22192
$as_echo_n "checking size of int... " >&6; }
21337
22193
if test "${ac_cv_sizeof_int+set}" = set; then :
21366
22222
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21367
22223
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21368
22224
# This bug is HP SR number 8606223364.
21369
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21370
 
$as_echo_n "checking size of long... " >&6; }
21371
 
if test "${ac_cv_sizeof_long+set}" = set; then :
 
22225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
 
22226
$as_echo_n "checking size of short... " >&6; }
 
22227
if test "${ac_cv_sizeof_short+set}" = set; then :
21372
22228
  $as_echo_n "(cached) " >&6
21373
22229
else
21374
 
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
22230
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
21375
22231
 
21376
22232
else
21377
 
  if test "$ac_cv_type_long" = yes; then
 
22233
  if test "$ac_cv_type_short" = yes; then
21378
22234
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21379
22235
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21380
22236
{ as_fn_set_status 77
21381
 
as_fn_error "cannot compute sizeof (long)
 
22237
as_fn_error "cannot compute sizeof (short)
21382
22238
See \`config.log' for more details." "$LINENO" 5; }; }
21383
22239
   else
21384
 
     ac_cv_sizeof_long=0
 
22240
     ac_cv_sizeof_short=0
21385
22241
   fi
21386
22242
fi
21387
22243
 
21388
22244
fi
21389
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21390
 
$as_echo "$ac_cv_sizeof_long" >&6; }
 
22245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
 
22246
$as_echo "$ac_cv_sizeof_short" >&6; }
21391
22247
 
21392
22248
 
21393
22249
 
21394
22250
cat >>confdefs.h <<_ACEOF
21395
 
#define SIZEOF_LONG $ac_cv_sizeof_long
 
22251
#define SIZEOF_SHORT $ac_cv_sizeof_short
21396
22252
_ACEOF
21397
22253
 
21398
22254
 
25030
25886
  tst_compi_getaddrinfo="unknown"
25031
25887
  tst_works_getaddrinfo="unknown"
25032
25888
  tst_allow_getaddrinfo="unknown"
 
25889
  tst_tsafe_getaddrinfo="unknown"
25033
25890
  #
25034
25891
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
25035
25892
$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
25230
26087
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25231
26088
$as_echo "no" >&6; }
25232
26089
    ac_cv_func_getaddrinfo="no"
 
26090
    ac_cv_func_getaddrinfo_threadsafe="no"
 
26091
  fi
 
26092
  #
 
26093
  if test "$ac_cv_func_getaddrinfo" = "yes"; then
 
26094
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
 
26095
$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
 
26096
    case $host_os in
 
26097
      aix[1234].* | aix5.[01].*)
 
26098
                tst_tsafe_getaddrinfo="no"
 
26099
        ;;
 
26100
      aix*)
 
26101
                tst_tsafe_getaddrinfo="yes"
 
26102
        ;;
 
26103
      darwin[12345].*)
 
26104
                tst_tsafe_getaddrinfo="no"
 
26105
        ;;
 
26106
      darwin*)
 
26107
                tst_tsafe_getaddrinfo="yes"
 
26108
        ;;
 
26109
      freebsd[1234].* | freebsd5.[1234]*)
 
26110
                tst_tsafe_getaddrinfo="no"
 
26111
        ;;
 
26112
      freebsd*)
 
26113
                tst_tsafe_getaddrinfo="yes"
 
26114
        ;;
 
26115
      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
 
26116
                tst_tsafe_getaddrinfo="no"
 
26117
        ;;
 
26118
      hpux*)
 
26119
                tst_tsafe_getaddrinfo="yes"
 
26120
        ;;
 
26121
      netbsd[123].*)
 
26122
                tst_tsafe_getaddrinfo="no"
 
26123
        ;;
 
26124
      netbsd*)
 
26125
                tst_tsafe_getaddrinfo="yes"
 
26126
        ;;
 
26127
      *bsd*)
 
26128
                tst_tsafe_getaddrinfo="no"
 
26129
        ;;
 
26130
      solaris2*)
 
26131
                tst_tsafe_getaddrinfo="yes"
 
26132
        ;;
 
26133
    esac
 
26134
    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
 
26135
 
 
26136
 
 
26137
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26138
/* end confdefs.h.  */
 
26139
 
 
26140
 
 
26141
        $curl_includes_ws2tcpip
 
26142
        $curl_includes_sys_socket
 
26143
        $curl_includes_netdb
 
26144
 
 
26145
int main (void)
 
26146
{
 
26147
#ifdef h_errno
 
26148
  return 0;
 
26149
#else
 
26150
  force compilation error
 
26151
#endif
 
26152
}
 
26153
 
 
26154
 
 
26155
_ACEOF
 
26156
if ac_fn_c_try_compile "$LINENO"; then :
 
26157
 
 
26158
    tst_symbol_defined="yes"
 
26159
 
 
26160
else
 
26161
 
 
26162
    tst_symbol_defined="no"
 
26163
 
 
26164
fi
 
26165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
26166
  if test "$tst_symbol_defined" = "yes"; then
 
26167
    curl_cv_have_def_h_errno=yes
 
26168
 
 
26169
  else
 
26170
    curl_cv_have_def_h_errno=no
 
26171
 
 
26172
  fi
 
26173
 
 
26174
      if test "$curl_cv_have_def_h_errno" = "no"; then
 
26175
        tst_tsafe_getaddrinfo="no"
 
26176
      fi
 
26177
    fi
 
26178
    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
 
26179
      tst_tsafe_getaddrinfo="yes"
 
26180
    fi
 
26181
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
 
26182
$as_echo "$tst_tsafe_getaddrinfo" >&6; }
 
26183
    if test "$tst_tsafe_getaddrinfo" = "yes"; then
 
26184
 
 
26185
cat >>confdefs.h <<_ACEOF
 
26186
#define HAVE_GETADDRINFO_THREADSAFE 1
 
26187
_ACEOF
 
26188
 
 
26189
      ac_cv_func_getaddrinfo_threadsafe="yes"
 
26190
    else
 
26191
      ac_cv_func_getaddrinfo_threadsafe="no"
 
26192
    fi
25233
26193
  fi
25234
26194
 
25235
26195
 
28777
29737
  tst_allow_poll="unknown"
28778
29738
  #
28779
29739
  case $host_os in
28780
 
    darwin*)
28781
 
            curl_disallow_poll="yes"
 
29740
    darwin*|interix*)
 
29741
                              curl_disallow_poll="yes"
28782
29742
      ;;
28783
29743
  esac
28784
29744
  #
33154
34114
fi
33155
34115
 
33156
34116
 
33157
 
aresembedded="unknown"
33158
 
configure_rundir=`pwd`
33159
 
embedded_ares_builddir="$configure_rundir/ares"
33160
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares" >&5
33161
 
$as_echo_n "checking whether to enable c-ares... " >&6; }
33162
 
 
33163
 
 
33164
 
# Check whether --enable-ares was given.
33165
 
if test "${enable_ares+set}" = set; then :
33166
 
  enableval=$enable_ares;  case "$enableval" in
33167
 
  no)
33168
 
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33169
 
$as_echo "no" >&6; }
33170
 
       ;;
33171
 
  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33172
 
$as_echo "yes" >&6; }
33173
 
 
33174
 
       if test "x$IPV6_ENABLED" = "x1"; then
33175
 
         { $as_echo "$as_me:${as_lineno-$LINENO}: c-ares may not work properly with ipv6" >&5
33176
 
$as_echo "$as_me: c-ares may not work properly with ipv6" >&6;}
33177
 
       fi
33178
 
 
33179
 
 
33180
 
$as_echo "#define USE_ARES 1" >>confdefs.h
33181
 
 
33182
 
              HAVE_ARES="1"
33183
 
 
33184
 
       curl_ares_msg="enabled"
33185
 
 
33186
 
       LIBS="-lcares $LIBS"
33187
 
 
33188
 
                                   if test "x$enableval" = "xyes" ; then
33189
 
         if test -d "$srcdir/ares"; then
33190
 
            aresembedded="yes"
33191
 
            subdirs="$subdirs ares"
33192
 
 
33193
 
                                    LDFLAGS="$LDFLAGS -L$embedded_ares_builddir"
33194
 
         fi
33195
 
       else
33196
 
         CPPFLAGS="$CPPFLAGS -I$enableval/include"
33197
 
         LDFLAGS="$LDFLAGS -L$enableval/lib"
33198
 
       fi
33199
 
 
33200
 
       if test -z "$aresembedded"; then
33201
 
                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
 
34117
 
 
34118
 
 
34119
 
 
34120
  #
 
34121
  if test "$want_ares" = "yes"; then
 
34122
        clean_CPPFLAGS="$CPPFLAGS"
 
34123
    clean_LDFLAGS="$LDFLAGS"
 
34124
    clean_LIBS="$LIBS"
 
34125
    embedded_ares="unknown"
 
34126
    configure_runpath=`pwd`
 
34127
    embedded_ares_builddir="$configure_runpath/ares"
 
34128
    if test -n "$want_ares_path"; then
 
34129
            ares_CPPFLAGS="-I$want_ares_path/include"
 
34130
      ares_LDFLAGS="-L$want_ares_path/lib"
 
34131
      ares_LIBS="-lcares"
 
34132
    else
 
34133
            if test -d "$srcdir/ares"; then
 
34134
                embedded_ares="yes"
 
34135
        subdirs="$subdirs ares"
 
34136
 
 
34137
                        ares_CPPFLAGS=""
 
34138
        ares_LDFLAGS="-L$embedded_ares_builddir"
 
34139
        ares_LIBS="-lcares"
 
34140
      else
 
34141
                ares_CPPFLAGS=""
 
34142
        ares_LDFLAGS=""
 
34143
        ares_LIBS="-lcares"
 
34144
      fi
 
34145
    fi
 
34146
    #
 
34147
    CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
 
34148
    LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
 
34149
    LIBS="$ares_LIBS $clean_LIBS"
 
34150
    #
 
34151
    if test "$embedded_ares" != "yes"; then
 
34152
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
33202
34153
$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
33203
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
34154
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33204
34155
/* end confdefs.h.  */
33205
34156
 
33206
34157
 
33207
34158
#include <ares.h>
33208
 
             /* set of dummy functions in case c-ares was built with debug */
33209
 
             void curl_dofree() { }
33210
 
             void curl_sclose() { }
33211
 
             void curl_domalloc() { }
33212
 
             void curl_docalloc() { }
33213
 
             void curl_socket() { }
 
34159
          /* set of dummy functions in case c-ares was built with debug */
 
34160
          void curl_dofree() { }
 
34161
          void curl_sclose() { }
 
34162
          void curl_domalloc() { }
 
34163
          void curl_docalloc() { }
 
34164
          void curl_socket() { }
33214
34165
 
33215
34166
int main (void)
33216
34167
{
33217
34168
 
33218
 
             ares_channel channel;
33219
 
             ares_cancel(channel); /* added in 1.2.0 */
33220
 
             ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
 
34169
          ares_channel channel;
 
34170
          ares_cancel(channel); /* added in 1.2.0 */
 
34171
          ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
33221
34172
 
33222
34173
 ;
33223
34174
 return 0;
33226
34177
_ACEOF
33227
34178
if ac_fn_c_try_link "$LINENO"; then :
33228
34179
 
33229
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
34180
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33230
34181
$as_echo "yes" >&6; }
33231
34182
 
33232
34183
else
33233
34184
 
33234
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
34185
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33235
34186
$as_echo "no" >&6; }
33236
 
           as_fn_error "c-ares library defective or too old" "$LINENO" 5
 
34187
        as_fn_error "c-ares library defective or too old" "$LINENO" 5
 
34188
                CPPFLAGS="$clean_CPPFLAGS"
 
34189
        LDFLAGS="$clean_LDFLAGS"
 
34190
        LIBS="$clean_LIBS"
 
34191
        # prevent usage
 
34192
        want_ares="no"
33237
34193
 
33238
34194
fi
33239
34195
rm -f core conftest.err conftest.$ac_objext \
33240
34196
    conftest$ac_exeext conftest.$ac_ext
33241
 
       fi
33242
 
       ;;
33243
 
  esac
33244
 
else
33245
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33246
 
$as_echo "no" >&6; }
33247
 
 
33248
 
fi
33249
 
 
33250
 
 
33251
 
 
33252
 
 
33253
 
if test x$aresembedded = xyes; then
 
34197
    fi
 
34198
    if test "$want_ares" = "yes"; then
 
34199
 
 
34200
$as_echo "#define USE_ARES 1" >>confdefs.h
 
34201
 
 
34202
      USE_ARES=1
 
34203
 
 
34204
      curl_res_msg="c-ares"
 
34205
    fi
 
34206
  fi
 
34207
 
 
34208
 
 
34209
 
 
34210
if test x$embedded_ares = xyes; then
33254
34211
  USE_EMBEDDED_ARES_TRUE=
33255
34212
  USE_EMBEDDED_ARES_FALSE='#'
33256
34213
else
33259
34216
fi
33260
34217
 
33261
34218
 
 
34219
 
 
34220
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
 
34221
$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
 
34222
  OPT_THRES="default"
 
34223
  # Check whether --enable-threaded_resolver was given.
 
34224
if test "${enable_threaded_resolver+set}" = set; then :
 
34225
  enableval=$enable_threaded_resolver; OPT_THRES=$enableval
 
34226
fi
 
34227
 
 
34228
  case "$OPT_THRES" in
 
34229
    yes)
 
34230
            want_thres="yes"
 
34231
      ;;
 
34232
    *)
 
34233
            want_thres="no"
 
34234
      ;;
 
34235
  esac
 
34236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
 
34237
$as_echo "$want_thres" >&6; }
 
34238
 
 
34239
 
 
34240
if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
 
34241
  as_fn_error "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
 
34242
fi
 
34243
 
 
34244
if test "$want_thres" = "yes"; then
 
34245
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
34246
if test "x$ac_cv_header_pthread_h" = x""yes; then :
 
34247
 
 
34248
$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
 
34249
 
 
34250
      save_CFLAGS="$CFLAGS"
 
34251
      CFLAGS="$CFLAGS -pthread"
 
34252
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
 
34253
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
 
34254
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
 
34255
  $as_echo_n "(cached) " >&6
 
34256
else
 
34257
  ac_check_lib_save_LIBS=$LIBS
 
34258
LIBS="-lpthread  $LIBS"
 
34259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
34260
/* end confdefs.h.  */
 
34261
 
 
34262
 
 
34263
#ifdef __cplusplus
 
34264
extern "C"
 
34265
#endif
 
34266
char pthread_create ();
 
34267
int main (void)
 
34268
{
 
34269
return pthread_create ();
 
34270
 ;
 
34271
 return 0;
 
34272
}
 
34273
_ACEOF
 
34274
if ac_fn_c_try_link "$LINENO"; then :
 
34275
  ac_cv_lib_pthread_pthread_create=yes
 
34276
else
 
34277
  ac_cv_lib_pthread_pthread_create=no
 
34278
fi
 
34279
rm -f core conftest.err conftest.$ac_objext \
 
34280
    conftest$ac_exeext conftest.$ac_ext
 
34281
LIBS=$ac_check_lib_save_LIBS
 
34282
fi
 
34283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
 
34284
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
 
34285
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
 
34286
   { $as_echo "$as_me:${as_lineno-$LINENO}: using POSIX threaded DNS lookup" >&5
 
34287
$as_echo "$as_me: using POSIX threaded DNS lookup" >&6;}
 
34288
 
 
34289
$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
 
34290
 
 
34291
          USE_THREADS_POSIX=1
 
34292
          curl_res_msg="threaded"
 
34293
 
 
34294
else
 
34295
   CFLAGS="$save_CFLAGS"
 
34296
fi
 
34297
 
 
34298
 
 
34299
fi
 
34300
 
 
34301
 
 
34302
fi
 
34303
 
33262
34304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
33263
34305
$as_echo_n "checking whether to enable verbose strings... " >&6; }
33264
34306
# Check whether --enable-verbose was given.
33297
34339
 
33298
34340
         USE_WINDOWS_SSPI=1
33299
34341
 
33300
 
         curl_sspi_msg="yes"
 
34342
         curl_sspi_msg="enabled"
33301
34343
       else
33302
34344
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33303
34345
$as_echo "no" >&6; }
33376
34418
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports it" >&5
33377
34419
$as_echo_n "checking whether $CC supports it... " >&6; }
33378
34420
       if test "$GCC" = yes ; then
33379
 
         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
 
34421
         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ||
 
34422
                                 test "$compiler_id" = "CLANG"; then
33380
34423
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33381
34424
$as_echo "yes" >&6; }
33382
34425
 
33489
34532
if test "x$HAVE_LIBZ" = "x1"; then
33490
34533
  SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
33491
34534
fi
33492
 
if test "x$HAVE_ARES" = "x1"; then
 
34535
if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
33493
34536
  SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
33494
34537
fi
33495
34538
if test "x$IDN_ENABLED" = "x1"; then
33524
34567
fi
33525
34568
if test "x$CURL_DISABLE_LDAP" != "x1"; then
33526
34569
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
33527
 
fi
33528
 
if test "x$CURL_DISABLE_LDAPS" != "x1"; then
33529
 
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
 
34570
  if test "x$CURL_DISABLE_LDAPS" != "x1"; then
 
34571
    if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
 
34572
      (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
 
34573
      SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
 
34574
    fi
 
34575
  fi
33530
34576
fi
33531
34577
if test "x$CURL_DISABLE_DICT" != "x1"; then
33532
34578
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
33534
34580
if test "x$CURL_DISABLE_TFTP" != "x1"; then
33535
34581
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
33536
34582
fi
 
34583
if test "x$CURL_DISABLE_POP3" != "x1"; then
 
34584
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
 
34585
  if test "x$SSL_ENABLED" = "x1"; then
 
34586
    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
 
34587
  fi
 
34588
fi
 
34589
if test "x$CURL_DISABLE_IMAP" != "x1"; then
 
34590
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
 
34591
  if test "x$SSL_ENABLED" = "x1"; then
 
34592
    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
 
34593
  fi
 
34594
fi
 
34595
if test "x$CURL_DISABLE_SMTP" != "x1"; then
 
34596
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
 
34597
  if test "x$SSL_ENABLED" = "x1"; then
 
34598
    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
 
34599
  fi
 
34600
fi
33537
34601
if test "x$USE_LIBSSH2" = "x1"; then
33538
34602
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
33539
34603
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
33540
34604
fi
 
34605
if test "x$CURL_DISABLE_RTSP" != "x1"; then
 
34606
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
 
34607
fi
 
34608
if test "x$USE_LIBRTMP" = "x1"; then
 
34609
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
 
34610
fi
 
34611
 
 
34612
SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
33541
34613
 
33542
34614
 
33543
34615
 
33552
34624
squeeze LIBCURL_LIBS
33553
34625
squeeze TEST_SERVER_LIBS
33554
34626
 
 
34627
squeeze SUPPORT_FEATURES
 
34628
squeeze SUPPORT_PROTOCOLS
 
34629
 
33555
34630
if test "x$want_curldebug_assumed" = "xyes" &&
33556
 
  test "x$want_curldebug" = "xyes" && test "x$HAVE_ARES" = "x1"; then
 
34631
  test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
33557
34632
  ac_configure_args="$ac_configure_args --enable-curldebug"
33558
34633
fi
33559
34634
 
34109
35184
# values after options handling.
34110
35185
ac_log="
34111
35186
This file was extended by curl $as_me -, which was
34112
 
generated by GNU Autoconf 2.64.  Invocation command line was
 
35187
generated by GNU Autoconf 2.65.  Invocation command line was
34113
35188
 
34114
35189
  CONFIG_FILES    = $CONFIG_FILES
34115
35190
  CONFIG_HEADERS  = $CONFIG_HEADERS
34149
35224
 
34150
35225
  -h, --help       print this help, then exit
34151
35226
  -V, --version    print version number and configuration settings, then exit
 
35227
      --config     print configuration, then exit
34152
35228
  -q, --quiet, --silent
34153
35229
                   do not print progress messages
34154
35230
  -d, --debug      don't remove temporary files
34171
35247
 
34172
35248
_ACEOF
34173
35249
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
35250
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34174
35251
ac_cs_version="\\
34175
35252
curl config.status -
34176
 
configured by $0, generated by GNU Autoconf 2.64,
34177
 
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
35253
configured by $0, generated by GNU Autoconf 2.65,
 
35254
  with options \\"\$ac_cs_config\\"
34178
35255
 
34179
35256
Copyright (C) 2009 Free Software Foundation, Inc.
34180
35257
This config.status script is free software; the Free Software Foundation
34211
35288
    ac_cs_recheck=: ;;
34212
35289
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34213
35290
    $as_echo "$ac_cs_version"; exit ;;
 
35291
  --config | --confi | --conf | --con | --co | --c )
 
35292
    $as_echo "$ac_cs_config"; exit ;;
34214
35293
  --debug | --debu | --deb | --de | --d | -d )
34215
35294
    debug=: ;;
34216
35295
  --file | --fil | --fi | --f )
34684
35763
t delim
34685
35764
:nl
34686
35765
h
34687
 
s/\(.\{148\}\).*/\1/
 
35766
s/\(.\{148\}\)..*/\1/
34688
35767
t more1
34689
35768
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34690
35769
p
34698
35777
t nl
34699
35778
:delim
34700
35779
h
34701
 
s/\(.\{148\}\).*/\1/
 
35780
s/\(.\{148\}\)..*/\1/
34702
35781
t more2
34703
35782
s/["\\]/\\&/g; s/^/"/; s/$/"/
34704
35783
p
36078
37157
  krb4 support:    ${curl_krb4_msg}
36079
37158
  GSSAPI support:  ${curl_gss_msg}
36080
37159
  SPNEGO support:  ${curl_spnego_msg}
36081
 
  c-ares support:  ${curl_ares_msg}
 
37160
  resolver:        ${curl_res_msg}
36082
37161
  ipv6 support:    ${curl_ipv6_msg}
36083
37162
  IDN support:     ${curl_idn_msg}
36084
37163
  Build libcurl:   Shared=${enable_shared}, Static=${enable_static}
36089
37168
  ca cert path:    ${capath}
36090
37169
  LDAP support:    ${curl_ldap_msg}
36091
37170
  LDAPS support:   ${curl_ldaps_msg}
 
37171
  RTSP support:    ${curl_rtsp_msg}
 
37172
  RTMP support:    ${curl_rtmp_msg}
 
37173
  Protocols:       ${SUPPORT_PROTOCOLS}
36092
37174
" >&5
36093
37175
$as_echo "$as_me: Configured to build curl/libcurl:
36094
37176
 
36102
37184
  krb4 support:    ${curl_krb4_msg}
36103
37185
  GSSAPI support:  ${curl_gss_msg}
36104
37186
  SPNEGO support:  ${curl_spnego_msg}
36105
 
  c-ares support:  ${curl_ares_msg}
 
37187
  resolver:        ${curl_res_msg}
36106
37188
  ipv6 support:    ${curl_ipv6_msg}
36107
37189
  IDN support:     ${curl_idn_msg}
36108
37190
  Build libcurl:   Shared=${enable_shared}, Static=${enable_static}
36113
37195
  ca cert path:    ${capath}
36114
37196
  LDAP support:    ${curl_ldap_msg}
36115
37197
  LDAPS support:   ${curl_ldaps_msg}
 
37198
  RTSP support:    ${curl_rtsp_msg}
 
37199
  RTMP support:    ${curl_rtmp_msg}
 
37200
  Protocols:       ${SUPPORT_PROTOCOLS}
36116
37201
" >&6;}
36117
37202
 
36118
37203
if test "x$soname_bump" = "xyes"; then