• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:with +full:- +full:gssapi

21 # SPDX-License-Identifier: curl
24 dnl Process this file with autoconf to produce a configure script.
29 AC_INIT([curl], [-], [a suitable curl mailing list: https://curl.se/mail/])
69 if test -z "$SED"; then
73 if test -z "$SED" || test "$SED" = "not_found"; then
81 if test -z "$GREP"; then
85 if test -z "$GREP" || test "$GREP" = "not_found"; then
91 dnl 'grep -E' is mandatory for configure process and libtool.
93 if test -z "$EGREP"; then
95 AC_MSG_CHECKING([that grep -E works])
96 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
97 EGREP="$GREP -E"
105 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
106 AC_MSG_ERROR([grep -E is not working and egrep is not found in PATH. Cannot continue.])
112 if test -z "$AR"; then
116 if test -z "$AR" || test "$AR" = "not_found"; then
125 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
129 dnl for --enable-code-coverage
139 dnl we extract the numerical version for curl-config only
140 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/c…
145 …curl_ssl_msg="no (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bea…
146 curl_ssh_msg="no (--with-{libssh,libssh2})"
147 curl_zlib_msg="no (--with-zlib)"
148 curl_brotli_msg="no (--with-brotli)"
149 curl_zstd_msg="no (--with-zstd)"
150 curl_gss_msg="no (--with-gssapi)"
151 curl_gsasl_msg="no (--with-gsasl)"
152 curl_tls_srp_msg="no (--enable-tls-srp)"
153 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
154 curl_ipv6_msg="no (--enable-ipv6)"
155 curl_unix_sockets_msg="no (--enable-unix-sockets)"
156 curl_idn_msg="no (--with-{libidn2,winidn})"
157 curl_docs_msg="enabled (--disable-docs)"
158 curl_manual_msg="no (--enable-manual)"
159 curl_libcurl_msg="enabled (--disable-libcurl-option)"
160 curl_verbose_msg="enabled (--disable-verbose)"
161 curl_sspi_msg="no (--enable-sspi)"
162 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
163 curl_ldaps_msg="no (--enable-ldaps)"
164 curl_ipfs_msg="no (--enable-ipfs)"
165 curl_rtsp_msg="no (--enable-rtsp)"
166 curl_rtmp_msg="no (--with-librtmp)"
167 curl_psl_msg="no (--with-libpsl)"
168 curl_altsvc_msg="enabled (--disable-alt-svc)"
169 curl_headers_msg="enabled (--disable-headers-api)"
170 curl_hsts_msg="enabled (--disable-hsts)"
173 curl_h2_msg="no (--with-nghttp2)"
174 …curl_h3_msg="no (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-openssl-quic, --with-msh…
186 dnl Generates a shell script to run the compiler with LD_LIBRARY_PATH set to
191 compilersh="run-compiler"
210 AS_HELP_STRING([--with-schannel],[enable Windows native SSL/TLS]),
215 AC_ARG_WITH(secure-transport,dnl
216 AS_HELP_STRING([--with-secure-transport],[enable Apple OS native SSL/TLS]),[
218 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
223 AS_HELP_STRING([--with-amissl],[enable Amiga native SSL/TLS (AmiSSL)]),[
232 AS_HELP_STRING([--with-ssl=PATH],[old version of --with-openssl])
233 AS_HELP_STRING([--without-ssl], [build without any TLS library]),[
244 AS_HELP_STRING([--with-openssl=PATH],[Where to look for OpenSSL, PATH points to the SSL installatio…
253 AS_HELP_STRING([--with-gnutls=PATH],[where to look for GnuTLS, PATH points to the installation root…
262 AS_HELP_STRING([--with-mbedtls=PATH],[where to look for mbedTLS, PATH points to the installation ro…
271 AS_HELP_STRING([--with-wolfssl=PATH],[where to look for wolfSSL, PATH points to the installation ro…
280 AS_HELP_STRING([--with-bearssl=PATH],[where to look for BearSSL, PATH points to the installation ro…
289 AS_HELP_STRING([--with-rustls=PATH],[where to look for Rustls, PATH points to the installation root…
298 AC_ARG_WITH(test-nghttpx,dnl
299 AS_HELP_STRING([--with-test-nghttpx=PATH],[where to find nghttpx for testing]),
308 AC_ARG_WITH(test-caddy,dnl
309 AS_HELP_STRING([--with-test-caddy=PATH],[where to find caddy for testing]),
318 AC_ARG_WITH(test-vsftpd,dnl
319 AS_HELP_STRING([--with-test-vsftpd=PATH],[where to find vsftpd for testing]),
330 AC_ARG_WITH(test-httpd, [AS_HELP_STRING([--with-test-httpd=PATH],
333 if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then
334 if test -x "/usr/sbin/apache2"; then
339 AC_MSG_NOTICE([apache2-dev not installed, httpd tests disabled])
360 if test ! -x "${HTTPD}"; then
363 elif test ! -x "${APXS}"; then
378 if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then
396 if test -z "$TLSCHOICE"; then
398 AC_MSG_ERROR([select TLS backend(s) or disable TLS with --without-ssl.
402 --with-amissl
403 --with-bearssl
404 --with-gnutls
405 --with-mbedtls
406 --with-openssl (also works for BoringSSL and LibreSSL)
407 --with-rustls
408 --with-schannel
409 --with-secure-transport
410 --with-wolfssl
416 AC_MSG_ERROR([--with-darwin-ssl and --without-darwin-ssl no longer work!]))
424 AC_DEFINE_UNQUOTED(CURL_OS, "${host}", [cpu-machine-OS])
461 # the '-DPIC' CFLAG that libtool provides is not valid given that the
462 # user might for example choose to build static libraries with PIC.
479 LIBCURL_PC_CFLAGS_PRIVATE='-DCURL_STATICLIB'
499 *-DWINSTORECOMPAT*) curl_cv_winuwp='yes';;
510 if test "$compiler_num" -ge "1000"; then
512 CFLAGS="$CFLAGS -shared-intel"
513 elif test "$compiler_num" -ge "900"; then
515 CFLAGS="$CFLAGS -i-dynamic"
522 CURL_CFLAG_EXTRAS="-Werror"
524 dnl enable -pedantic-errors for GCC 5 and later,
525 dnl as before that it was the same as -Werror=pedantic
526 if test "$compiler_num" -ge "500"; then
527 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
529 elif test "$compiler_id" = "CLANG" -o "$compiler_id" = "APPLECLANG"; then
530 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
542 # cross-compilation of unit tests static library/programs fails when
551 # a problem related with OpenSSL headers and library versions not matching.
554 mips-sgi-irix6.5)
562 # due to unittests library being built with no symbols or members. Libtool ?
574 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
578 dnl Build unit tests when option --enable-debug is given.
597 *-apple-*)
608 [test "$curl_cv_native_windows" = "yes" && test -n "${RC}"])
615 dnl ----------------------------------------
617 dnl ----------------------------------------
622 AS_HELP_STRING([--enable-unity],[Enable unity mode])
623 AS_HELP_STRING([--disable-unity],[Disable unity (default)]),
638 dnl -----------------------
640 dnl -----------------------
643 AC_MSG_CHECKING([whether to build tests into single-binary bundles])
644 AC_ARG_ENABLE(test-bundles,
645 AS_HELP_STRING([--enable-test-bundles],[Enable test bundles])
646 AS_HELP_STRING([--disable-test-bundles],[Disable test bundles (default)]),
666 AS_HELP_STRING([--enable-http],[Enable HTTP support])
667 AS_HELP_STRING([--disable-http],[Disable HTTP support]),
679 dnl toggle off alt-svc too when HTTP is disabled
680 AC_DEFINE(CURL_DISABLE_ALTSVC, 1, [disable alt-svc])
682 curl_h1_msg="no (--enable-http)"
684 curl_hsts_msg="no (--enable-hsts)";
696 AS_HELP_STRING([--enable-ftp],[Enable FTP support])
697 AS_HELP_STRING([--disable-ftp],[Disable FTP support]),
712 AS_HELP_STRING([--enable-file],[Enable FILE support])
713 AS_HELP_STRING([--disable-file],[Disable FILE support]),
728 AS_HELP_STRING([--enable-ipfs],[Enable IPFS support])
729 AS_HELP_STRING([--disable-ipfs],[Disable IPFS support]),
754 AS_HELP_STRING([--enable-ldap],[Enable LDAP support])
755 AS_HELP_STRING([--disable-ldap],[Disable LDAP support]),
774 AS_HELP_STRING([--enable-ldaps],[Enable LDAPS support])
775 AS_HELP_STRING([--disable-ldaps],[Disable LDAPS support]),
807 AS_HELP_STRING([--enable-rtsp],[Enable RTSP support])
808 AS_HELP_STRING([--disable-rtsp],[Disable RTSP support]),
834 AS_HELP_STRING([--enable-proxy],[Enable proxy support])
835 AS_HELP_STRING([--disable-proxy],[Disable proxy support]),
852 AS_HELP_STRING([--enable-dict],[Enable DICT support])
853 AS_HELP_STRING([--disable-dict],[Disable DICT support]),
869 AS_HELP_STRING([--enable-telnet],[Enable TELNET support])
870 AS_HELP_STRING([--disable-telnet],[Disable TELNET support]),
891 AS_HELP_STRING([--enable-tftp],[Enable TFTP support])
892 AS_HELP_STRING([--disable-tftp],[Disable TFTP support]),
908 AS_HELP_STRING([--enable-pop3],[Enable POP3 support])
909 AS_HELP_STRING([--disable-pop3],[Disable POP3 support]),
925 AS_HELP_STRING([--enable-imap],[Enable IMAP support])
926 AS_HELP_STRING([--disable-imap],[Disable IMAP support]),
942 AS_HELP_STRING([--enable-smb],[Enable SMB/CIFS support])
943 AS_HELP_STRING([--disable-smb],[Disable SMB/CIFS support]),
959 AS_HELP_STRING([--enable-smtp],[Enable SMTP support])
960 AS_HELP_STRING([--disable-smtp],[Disable SMTP support]),
976 AS_HELP_STRING([--enable-gopher],[Enable Gopher support])
977 AS_HELP_STRING([--disable-gopher],[Disable Gopher support]),
993 AS_HELP_STRING([--enable-mqtt],[Enable MQTT support])
994 AS_HELP_STRING([--disable-mqtt],[Disable MQTT support]),
1009 dnl Check for built-in manual
1012 AC_MSG_CHECKING([whether to provide built-in manual])
1014 AS_HELP_STRING([--enable-manual],[Enable built-in manual])
1015 AS_HELP_STRING([--disable-manual],[Disable built-in manual]),
1037 AS_HELP_STRING([--enable-docs],[Enable documentation])
1038 AS_HELP_STRING([--disable-docs],[Disable documentation]),
1062 AS_HELP_STRING([--enable-libcurl-option],[Enable --libcurl C code generation support])
1063 AS_HELP_STRING([--disable-libcurl-option],[Disable --libcurl C code generation support]),
1067 AC_DEFINE(CURL_DISABLE_LIBCURL_OPTION, 1, [to disable --libcurl C code generation option])
1083 AS_HELP_STRING([--enable-libgcc],[use libgcc when linking]),
1086 LIBS="-lgcc $LIBS"
1107 LIBS="-lnsl $LIBS"
1118 LIBS="-lsocket $LIBS"
1127 CPPFLAGS="-I${WATT_ROOT}/inc"
1128 LDFLAGS="-L${WATT_ROOT}/lib"
1132 LIBS="-lwatt $LIBS"
1133 AC_DEFINE(USE_WATT32, 1, [if Watt-32 is in use])
1145 AC_MSG_CHECKING([for gethostbyname with both nsl and socket libs])
1147 LIBS="-lnsl -lsocket $LIBS"
1164 if test "$HAVE_GETHOSTBYNAME" != "1" -o "$curl_cv_winuwp" = "yes"; then
1167 winsock_LIB="-lws2_32"
1168 if test ! -z "$winsock_LIB"; then
1214 dnl This is for eCos with a stubbed DNS implementation
1231 if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set; then
1232 dnl This is for AmigaOS with bsdsocket.library - needs testing before -lnet
1257 dnl gethostbyname in the network lib - for Haiku OS
1261 LIBS="-lnetwork $LIBS"
1269 dnl In case that function clock_gettime with monotonic timer is available,
1289 dnl Check for & handle argument to --with-zlib.
1296 AS_HELP_STRING([--with-zlib=PATH],[search for zlib in PATH])
1297 AS_HELP_STRING([--without-zlib],[disable use of zlib]),
1307 if test -z "$OPT_ZLIB"; then
1311 ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`"
1312 if test -n "$ZLIB_LIBS"; then
1313 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
1315 ZLIB_LIBS="`$PKGCONFIG --libs zlib`"
1318 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`"
1323 if test -z "$HAVE_LIBZ"; then
1332 ZLIB_LIBS="-lz"
1344 if test -n "$OPT_ZLIB"; then
1345 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
1346 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
1353 dnl if the lib wasn't found already, try again with the new paths
1359 ZLIB_LIBS="-lz"
1415 AS_HELP_STRING([--with-brotli=PATH],[Where to look for brotli, PATH points to the BROTLI installati…
1416 AS_HELP_STRING([--without-brotli], [disable BROTLI]),
1420 dnl backup the pre-brotli variables
1428 dnl --with-brotli (without path) used
1432 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
1433 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
1434 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
1435 version=`$PKGCONFIG --modversion libbrotlidec`
1436 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
1441 dnl no --with-brotli option given, just check default places
1444 dnl use the given --with-brotli spot
1449 dnl if given with a prefix, we set -L and -I based on that
1450 if test -n "$PREFIX_BROTLI"; then
1451 LIB_BROTLI="-lbrotlidec"
1452 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
1453 CPP_BROTLI=-I${PREFIX_BROTLI}/include
1476 if test -n "$DIR_BROTLI"; then
1477 dnl when the brotli shared libs were found in a path that the run-time
1504 AS_HELP_STRING([--with-zstd=PATH],[Where to look for libzstd, PATH points to the libzstd installati…
1505 AS_HELP_STRING([--without-zstd], [disable libzstd]),
1509 dnl backup the pre-zstd variables
1517 dnl --with-zstd (without path) used
1521 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
1522 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
1523 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
1524 version=`$PKGCONFIG --modversion libzstd`
1525 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
1530 dnl no --with-zstd option given, just check default places
1533 dnl use the given --with-zstd spot
1538 dnl if given with a prefix, we set -L and -I based on that
1539 if test -n "$PREFIX_ZSTD"; then
1540 LIB_ZSTD="-lzstd"
1541 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
1542 CPP_ZSTD=-I${PREFIX_ZSTD}/include
1565 if test -n "$DIR_ZSTD"; then
1566 dnl when the zstd shared lib were found in a path that the run-time
1592 AC_ARG_WITH(ldap-lib,
1593 AS_HELP_STRING([--with-ldap-lib=libname],[Specify name of ldap lib file]),
1597 AC_ARG_WITH(lber-lib,
1598 AS_HELP_STRING([--with-lber-lib=libname],[Specify name of lber lib file]),
1607 if test -z "$LDAPLIBNAME"; then
1608 if test "$curl_cv_native_windows" = "yes" -a "$curl_cv_winuwp" != "yes"; then
1617 if test -n "$ldap_askedfor"; then
1630 case X-"$curl_cv_ldap_LIBS" in
1631 X-unknown)
1632 if test -n "$ldap_askedfor"; then
1673 AC_DEFINE(USE_OPENLDAP, 1, [Use OpenLDAP-specific code])
1691 AS_HELP_STRING([--enable-ipv6],[Enable IPv6 (with IPv4) support])
1692 AS_HELP_STRING([--disable-ipv6],[Disable IPv6 support]),
1806 dnl Check for GSS-API libraries
1809 dnl check for GSS-API stuff in the /usr as default
1812 AC_ARG_WITH(gssapi-includes,
1813 AS_HELP_STRING([--with-gssapi-includes=DIR], [Specify location of GSS-API headers]), [
1814 GSSAPI_INCS="-I$withval"
1819 AC_ARG_WITH(gssapi-libs,
1820 AS_HELP_STRING([--with-gssapi-libs=DIR], [Specify location of GSS-API libs]), [
1821 GSSAPI_LIB_DIR="-L$withval"
1826 AC_ARG_WITH(gssapi, optwith
1827 AS_HELP_STRING([--with-gssapi=DIR], [Where to look for GSS-API]), [
1839 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
1842 AC_MSG_CHECKING([if GSS-API support is requested])
1847 CURL_CHECK_PKGCONFIG(mit-krb5-gssapi, $GSSAPI_ROOT/lib/pkgconfig)
1849 CURL_CHECK_PKGCONFIG(mit-krb5-gssapi)
1851 if test -z "$GSSAPI_INCS"; then
1852 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
1853 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
1855 GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
1856 elif test -f "$KRB5CONFIG"; then
1857 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
1859 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
1873 AC_CHECK_HEADERS([gssapi/gssapi.h], [], [not_mit=1])
1875 [gssapi/gssapi_generic.h gssapi/gssapi_krb5.h],
1881 #include <gssapi/gssapi.h>
1886 AC_CHECK_HEADER(gssapi.h,
1891 AC_MSG_WARN(disabling GSS-API support since no header files were found)
1897 AC_MSG_CHECKING([if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE])
1900 #include <gssapi/gssapi.h>
1901 #include <gssapi/gssapi_generic.h>
1902 #include <gssapi/gssapi_krb5.h>
1924 AC_DEFINE(HAVE_GSSAPI, 1, [if you have GSS-API libraries])
1929 if test -n "$gnu_gss"; then
1933 LIBS="-lgss $LIBS"
1935 elif test -z "$GSSAPI_LIB_DIR"; then
1937 *-apple-*)
1938 LIBS="-lgssapi_krb5 -lresolv $LIBS"
1942 CURL_CHECK_PKGCONFIG(mit-krb5-gssapi, $GSSAPI_ROOT/lib/pkgconfig)
1944 CURL_CHECK_PKGCONFIG(mit-krb5-gssapi)
1946 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
1947 dnl krb5-config doesn't have --libs-only-L or similar, put everything
1949 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
1952 gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
1955 elif test -f "$KRB5CONFIG"; then
1956 dnl krb5-config doesn't have --libs-only-L or similar, put everything
1958 gss_libs=`$KRB5CONFIG --libs gssapi`
1963 *-hp-hpux*)
1967 gss_libname="gssapi"
1972 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
1973 LDFLAGSPC="$LDFLAGSPC -L$GSSAPI_ROOT/lib$libsuff"
1974 LIBS="-l$gss_libname $LIBS"
1976 LIBS="-l$gss_libname $LIBS"
1985 *-hp-hpux*)
1986 LIBS="-lgss $LIBS"
1989 LIBS="-lgssapi $LIBS"
1993 if test -n "$link_pkgconfig"; then
1994 if test -n "$gnu_gss"; then
1997 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE heimdal-gssapi"
1999 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE mit-krb5-gssapi"
2007 AC_MSG_CHECKING([if we can link against GSS-API library])
2014 AC_MSG_ERROR([--with-gssapi was specified, but a GSS-API library was not found.])
2025 dnl -------------------------------------------------------------
2026 dnl parse --with-default-ssl-backend so it can be validated below
2027 dnl -------------------------------------------------------------
2031 AC_ARG_WITH(default-ssl-backend,
2032 AS_HELP_STRING([--with-default-ssl-backend=NAME],[Use NAME as default SSL backend])
2033 AS_HELP_STRING([--without-default-ssl-backend],[Use implicit default SSL backend]),
2037 dnl --without-default-ssl-backend option used
2040 dnl --with-default-ssl-backend option used without name
2044 dnl --with-default-ssl-backend option used with name
2061 if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$SCHANNEL_ENABLED" = "x1"; then
2062 LIBS="-ladvapi32 -lcrypt32 $LIBS"
2067 LIBS="-lbcrypt $LIBS"
2073 Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-t…
2078 AC_MSG_NOTICE([built with one SSL backend])
2084 AC_MSG_ERROR([--without-ssl has been set together with an explicit option to use an ssl library
2085 …e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure
2092 AC_DEFINE(CURL_WITH_MULTI_SSL, 1, [built with multiple SSL backends])
2093 AC_MSG_NOTICE([built with multiple SSL backends])
2097 if test -n "$ssl_backends"; then
2102 if test -n "$SSL_ENABLED"; then
2115 if test -n "$check_for_ca_bundle"; then
2122 dnl ----------------------
2124 dnl ----------------------
2128 AC_ARG_ENABLE(ca-search,
2129 AS_HELP_STRING([--enable-ca-search],[Enable unsafe CA bundle search in PATH on Windows (default)])
2130 AS_HELP_STRING([--disable-ca-search],[Disable unsafe CA bundle search in PATH on Windows]),
2144 dnl --------------------
2146 dnl --------------------
2150 AC_ARG_ENABLE(ca-search-safe,
2151 AS_HELP_STRING([--enable-ca-search-safe],[Enable safe CA bundle search])
2152 AS_HELP_STRING([--disable-ca-search-safe],[Disable safe CA bundle search (default)]),
2173 AS_HELP_STRING([--with-libpsl=PATH],[Where to look for libpsl, PATH points to the LIBPSL installati…
2174 AS_HELP_STRING([--without-libpsl], [disable LIBPSL]),
2178 dnl backup the pre-libpsl variables
2186 dnl --with-libpsl (without path) used
2190 LIB_PSL=`$PKGCONFIG --libs-only-l libpsl`
2191 LD_PSL=`$PKGCONFIG --libs-only-L libpsl`
2192 CPP_PSL=`$PKGCONFIG --cflags-only-I libpsl`
2194 dnl no libpsl pkg-config found
2195 LIB_PSL="-lpsl"
2200 dnl use the given --with-libpsl spot
2201 LIB_PSL="-lpsl"
2206 dnl if given with a prefix, we set -L and -I based on that
2207 if test -n "$PREFIX_PSL"; then
2208 LD_PSL=-L${PREFIX_PSL}/lib$libsuff
2209 CPP_PSL=-I${PREFIX_PSL}/include
2245 AS_HELP_STRING([--without-libgsasl],
2263 AC_MSG_ERROR([--with-libmetalink and --without-libmetalink no longer work!]))
2272 AS_HELP_STRING([--with-libssh2=PATH],[Where to look for libssh2, PATH points to the libssh2 install…
2273 AS_HELP_STRING([--with-libssh2], [enable libssh2]),
2279 AS_HELP_STRING([--with-libssh=PATH],[Where to look for libssh, PATH points to the libssh installati…
2280 AS_HELP_STRING([--with-libssh], [enable libssh]),
2285 AS_HELP_STRING([--with-wolfssh=PATH],[Where to look for wolfssh, PATH points to the wolfSSH install…
2286 AS_HELP_STRING([--with-wolfssh], [enable wolfssh]),
2290 dnl backup the pre-libssh2 variables
2298 dnl --with-libssh2 (without path) used
2302 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
2303 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
2304 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
2305 version=`$PKGCONFIG --modversion libssh2`
2306 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
2311 dnl no --with-libssh2 option given, just check default places
2314 dnl use the given --with-libssh2 spot
2319 dnl if given with a prefix, we set -L and -I based on that
2320 if test -n "$PREFIX_SSH2"; then
2321 LIB_SSH2="-lssh2"
2322 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
2323 CPP_SSH2=-I${PREFIX_SSH2}/include
2347 if test -n "$DIR_SSH2"; then
2348 dnl when the libssh2 shared libs were found in a path that the run-time
2367 dnl backup the pre-libssh variables
2375 dnl --with-libssh (without path) used
2379 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
2380 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
2381 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
2382 version=`$PKGCONFIG --modversion libssh`
2383 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
2388 dnl no --with-libssh option given, just check default places
2391 dnl use the given --with-libssh spot
2396 dnl if given with a prefix, we set -L and -I based on that
2397 if test -n "$PREFIX_SSH"; then
2398 LIB_SSH="-lssh"
2399 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
2400 CPP_SSH=-I${PREFIX_SSH}/include
2425 LIBS="-liphlpapi $LIBS"
2427 if test -n "$DIR_SSH"; then
2428 dnl when the libssh shared libs were found in a path that the run-time
2447 dnl backup the pre-wolfssh variables
2454 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
2455 WOLFSSH_LIBS=`$WOLFCONFIG --libs`
2458 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
2477 AS_HELP_STRING([--with-librtmp=PATH],[Where to look for librtmp, PATH points to the LIBRTMP install…
2478 AS_HELP_STRING([--without-librtmp], [disable LIBRTMP]),
2482 dnl backup the pre-librtmp variables
2490 dnl --with-librtmp (without path) used
2494 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
2495 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
2496 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
2497 version=`$PKGCONFIG --modversion librtmp`
2498 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
2500 dnl To avoid link errors, we do not allow --librtmp without
2502 AC_MSG_ERROR([--librtmp was specified but could not find librtmp pkgconfig file.])
2507 dnl no --with-librtmp option given, just check default places
2508 LIB_RTMP="-lrtmp"
2511 dnl use the given --with-librtmp spot
2512 LIB_RTMP="-lrtmp"
2517 dnl if given with a prefix, we set -L and -I based on that
2518 if test -n "$PREFIX_RTMP"; then
2519 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
2520 CPP_RTMP=-I${PREFIX_RTMP}/include
2557 AC_ARG_ENABLE(versioned-symbols,
2558 AS_HELP_STRING([--enable-versioned-symbols], [Enable versioned symbols in shared library])
2559 AS_HELP_STRING([--disable-versioned-symbols], [Disable versioned symbols in shared library]),
2567 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
2568 if test -z "$GLD"; then
2570 AC_MSG_WARN([You need an ld version supporting the --version-script option])
2603 AC_SUBST([CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME], ["4"]) dnl Keep in sync with VERSIONCHANGE - VER…
2607 dnl ----------------------------
2609 dnl ----------------------------
2617 AC_ARG_ENABLE(windows-unicode,
2618 AS_HELP_STRING([--enable-windows-unicode],[Enable Windows Unicode])
2619 AS_HELP_STRING([--disable-windows-unicode],[Disable Windows Unicode (default)]),
2634 CPPFLAGS="${CPPFLAGS} -DUNICODE -D_UNICODE"
2640 dnl -------------------------------------------------
2642 dnl -------------------------------------------------
2649 AS_HELP_STRING([--with-winidn=PATH],[enable Windows native IDN])
2650 AS_HELP_STRING([--without-winidn], [disable Windows native IDN]),
2654 dnl --without-winidn option used or configure option not specified
2659 dnl --with-winidn option used without path
2665 dnl --with-winidn option used with path
2678 WINIDN_LIBS="-lnormaliz"
2683 dnl pkg-config not available or provides no info
2684 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
2685 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
2717 …AC_DEFINE(USE_WIN32_IDN, 1, [Define to 1 if you have the `normaliz' (WinIDN) library (-lnormaliz).…
2719 curl_idn_msg="enabled (Windows-native)"
2736 *-apple-*)
2737 AC_MSG_CHECKING([whether to build with Apple IDN])
2739 AC_ARG_WITH(apple-idn,
2740 AS_HELP_STRING([--with-apple-idn],[Enable AppleIDN])
2741 AS_HELP_STRING([--without-apple-idn],[Disable AppleIDN]),
2745 dnl --with-apple-idn option used
2754 LIBS="-licucore -liconv $LIBS"
2770 AC_MSG_CHECKING([whether to build with libidn2])
2773 AS_HELP_STRING([--with-libidn2=PATH],[Enable libidn2 usage])
2774 AS_HELP_STRING([--without-libidn2],[Disable libidn2 usage]),
2785 dnl --without-libidn2 option used
2796 dnl --with-libidn2 option used without path
2802 dnl --with-libidn2 option used with path
2824 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
2826 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
2828 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
2829 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
2831 dnl pkg-config not available or provides no info
2832 IDN_LIBS="-lidn2"
2833 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
2834 IDN_CPPFLAGS="-I$want_idn_path/include"
2841 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
2842 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
2843 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
2844 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
2846 dnl pkg-config not available or provides no info
2847 IDN_LIBS="-lidn2"
2852 AC_MSG_NOTICE([pkg-config: IDN_LIBS: "$IDN_LIBS"])
2853 AC_MSG_NOTICE([pkg-config: IDN_LDFLAGS: "$IDN_LDFLAGS"])
2854 AC_MSG_NOTICE([pkg-config: IDN_CPPFLAGS: "$IDN_CPPFLAGS"])
2855 AC_MSG_NOTICE([pkg-config: IDN_DIR: "$IDN_DIR"])
2882 AC_DEFINE(HAVE_LIBIDN2, 1, [Define to 1 if you have the `idn2' library (-lidn2).])
2887 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
2915 AS_HELP_STRING([--with-nghttp2=PATH],[Enable nghttp2 usage])
2916 AS_HELP_STRING([--without-nghttp2],[Disable nghttp2 usage]),
2920 dnl --without-nghttp2 option used
2924 dnl --with-nghttp2 option used without path
2930 dnl --with-nghttp2 option used with path
2938 dnl backup the pre-nghttp2 variables
2948 $PKGCONFIG --libs-only-l libnghttp2`
2949 AC_MSG_NOTICE([-l is $LIB_H2])
2952 $PKGCONFIG --cflags-only-I libnghttp2`
2953 AC_MSG_NOTICE([-I is $CPP_H2])
2956 $PKGCONFIG --libs-only-L libnghttp2`
2957 AC_MSG_NOTICE([-L is $LD_H2])
2959 DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
2961 LIB_H2="-lnghttp2"
2962 LD_H2=-L${want_nghttp2_path}/lib$libsuff
2963 CPP_H2=-I${want_nghttp2_path}/include
2966 dnl no nghttp2 pkg-config found and no custom directory specified,
2967 dnl deal with it
2968 AC_MSG_ERROR([--with-nghttp2 was specified but could not find libnghttp2 pkg-config file.])
2970 LIB_H2="-lnghttp2"
3013 AS_HELP_STRING([--with-ngtcp2=PATH],[Enable ngtcp2 usage])
3014 AS_HELP_STRING([--without-ngtcp2],[Disable ngtcp2 usage]),
3018 dnl --without-ngtcp2 option used
3022 dnl --with-ngtcp2 option used without path
3027 dnl --with-ngtcp2 option used with path
3033 curl_tcp2_msg="no (--with-ngtcp2)"
3037 AC_MSG_ERROR([the detected TLS library does not support QUIC, making --with-ngtcp2 a no-no])
3040 dnl backup the pre-ngtcp2 variables
3050 $PKGCONFIG --libs-only-l libngtcp2`
3051 AC_MSG_NOTICE([-l is $LIB_TCP2])
3054 $PKGCONFIG --cflags-only-I libngtcp2`
3055 AC_MSG_NOTICE([-I is $CPP_TCP2])
3058 $PKGCONFIG --libs-only-L libngtcp2`
3059 AC_MSG_NOTICE([-L is $LD_TCP2])
3067 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
3088 dnl no ngtcp2 pkg-config found, deal with it
3090 dnl To avoid link errors, we do not allow --with-ngtcp2 without
3092 AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file.])
3097 if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" != "x1"; th…
3098 dnl backup the pre-ngtcp2_crypto_quictls variables
3108 $PKGCONFIG --libs-only-l libngtcp2_crypto_quictls`
3109 AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_QUICTLS])
3112 $PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls`
3113 AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_QUICTLS])
3116 $PKGCONFIG --libs-only-L libngtcp2_crypto_quictls`
3117 AC_MSG_NOTICE([-L is $LD_NGTCP2_CRYPTO_QUICTLS])
3125 DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'`
3145 dnl no ngtcp2_crypto_quictls pkg-config found, deal with it
3147 dnl To avoid link errors, we do not allow --with-ngtcp2 without
3149 …AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file…
3154 if test "x$USE_NGTCP2" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" = "x1"; then
3155 dnl backup the pre-ngtcp2_crypto_boringssl variables
3165 $PKGCONFIG --libs-only-l libngtcp2_crypto_boringssl`
3166 AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_BORINGSSL])
3169 $PKGCONFIG --cflags-only-I libngtcp2_crypto_boringssl`
3170 AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_BORINGSSL])
3173 $PKGCONFIG --libs-only-L libngtcp2_crypto_boringssl`
3174 AC_MSG_NOTICE([-L is $LD_NGTCP2_CRYPTO_BORINGSSL])
3182 DIR_NGTCP2_CRYPTO_BORINGSSL=`echo $LD_NGTCP2_CRYPTO_BORINGSSL | $SED -e 's/^-L//'`
3202 dnl no ngtcp2_crypto_boringssl pkg-config found, deal with it
3204 dnl To avoid link errors, we do not allow --with-ngtcp2 without
3206 …AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_boringssl pkg-config fi…
3211 if test "x$USE_NGTCP2" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
3212 dnl backup the pre-ngtcp2_crypto_gnutls variables
3222 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
3223 AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_GNUTLS])
3226 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
3227 AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_GNUTLS])
3230 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
3231 AC_MSG_NOTICE([-L is $LD_NGTCP2_CRYPTO_GNUTLS])
3239 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
3259 dnl no ngtcp2_crypto_gnutls pkg-config found, deal with it
3261 dnl To avoid link errors, we do not allow --with-ngtcp2 without
3263 …AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file.…
3268 if test "x$USE_NGTCP2" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
3269 dnl backup the pre-ngtcp2_crypto_wolfssl variables
3279 $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
3280 AC_MSG_NOTICE([-l is $LIB_NGTCP2_CRYPTO_WOLFSSL])
3283 $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
3284 AC_MSG_NOTICE([-I is $CPP_NGTCP2_CRYPTO_WOLFSSL])
3287 $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
3288 AC_MSG_NOTICE([-L is $LD_NGTCP2_CRYPTO_WOLFSSL])
3296 DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
3316 dnl no ngtcp2_crypto_wolfssl pkg-config found, deal with it
3318 dnl To avoid link errors, we do not allow --with-ngtcp2 without
3320 …AC_MSG_ERROR([--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file…
3331 if test "x$disable_http" = "xyes" -o "x$OPENSSL_ENABLED" != "x1"; then
3336 AC_ARG_WITH(openssl-quic,
3337 AS_HELP_STRING([--with-openssl-quic],[Enable OpenSSL QUIC usage])
3338 AS_HELP_STRING([--without-openssl-quic],[Disable OpenSSL QUIC usage]),
3342 dnl --without-openssl-quic option used
3346 dnl --with-openssl-quic option used
3351 curl_openssl_quic_msg="no (--with-openssl-quic)"
3355 AC_MSG_ERROR([--with-openssl-quic and --with-ngtcp2 are mutually exclusive])
3358 AC_MSG_ERROR([--with-openssl-quic requires quic support and OpenSSL >= 3.3.0])
3365 dnl Check for nghttp3 (HTTP/3 with ngtcp2)
3370 if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then
3377 AS_HELP_STRING([--with-nghttp3=PATH],[Enable nghttp3 usage])
3378 AS_HELP_STRING([--without-nghttp3],[Disable nghttp3 usage]),
3382 dnl --without-nghttp3 option used
3386 dnl --with-nghttp3 option used without path
3391 dnl --with-nghttp3 option used with path
3397 curl_http3_msg="no (--with-nghttp3)"
3400 if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then
3402 AC_MSG_ERROR([nghttp3 enabled without a QUIC library; enable ngtcp2 or OpenSSL-QUIC])
3405 dnl backup the pre-nghttp3 variables
3415 $PKGCONFIG --libs-only-l libnghttp3`
3416 AC_MSG_NOTICE([-l is $LIB_NGHTTP3])
3419 $PKGCONFIG --cflags-only-I libnghttp3`
3420 AC_MSG_NOTICE([-I is $CPP_NGHTTP3])
3423 $PKGCONFIG --libs-only-L libnghttp3`
3424 AC_MSG_NOTICE([-L is $LD_NGHTTP3])
3432 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
3453 dnl no nghttp3 pkg-config found, deal with it
3455 dnl To avoid link errors, we do not allow --with-nghttp3 without
3457 AC_MSG_ERROR([--with-nghttp3 was specified but could not find nghttp3 pkg-config file.])
3463 dnl Check for ngtcp2 and nghttp3 (HTTP/3 with ngtcp2 + nghttp3)
3466 if test "x$USE_NGTCP2" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
3473 dnl Check for OpenSSL and nghttp3 (HTTP/3 with nghttp3 using OpenSSL QUIC)
3476 if test "x$USE_OPENSSL_QUIC" = "x1" -a "x$USE_NGHTTP3" = "x1"; then
3489 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
3490 # without HTTP or with ngtcp2, quiche is no use
3495 AS_HELP_STRING([--with-quiche=PATH],[Enable quiche usage])
3496 AS_HELP_STRING([--without-quiche],[Disable quiche usage]),
3500 dnl --without-quiche option used
3504 dnl --with-quiche option used without path
3509 dnl --with-quiche option used with path
3518 AC_MSG_ERROR([the detected TLS library does not support QUIC, making --with-quiche a no-no])
3522 AC_MSG_ERROR([--with-quiche and --with-ngtcp2 are mutually exclusive])
3525 dnl backup the pre-quiche variables
3535 $PKGCONFIG --libs-only-l quiche`
3536 AC_MSG_NOTICE([-l is $LIB_QUICHE])
3539 $PKGCONFIG --cflags-only-I quiche`
3540 AC_MSG_NOTICE([-I is $CPP_QUICHE])
3543 $PKGCONFIG --libs-only-L quiche`
3544 AC_MSG_NOTICE([-L is $LD_QUICHE])
3552 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
3578 dnl no quiche pkg-config found, deal with it
3580 dnl To avoid link errors, we do not allow --with-quiche without
3582 AC_MSG_ERROR([--with-quiche was specified but could not find quiche pkg-config file.])
3593 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
3594 # without HTTP or with ngtcp2, msh3 is no use
3599 AS_HELP_STRING([--with-msh3=PATH],[Enable msh3 usage])
3600 AS_HELP_STRING([--without-msh3],[Disable msh3 usage]),
3604 dnl --without-msh3 option used
3608 dnl --with-msh3 option used without path
3613 dnl --with-msh3 option used with path
3621 dnl msh3 on non-Windows needs an OpenSSL with the QUIC API
3624 AC_MSG_ERROR([the detected TLS library does not support QUIC, making --with-msh3 a no-no])
3632 AC_MSG_ERROR([--with-msh3 and --with-ngtcp2 are mutually exclusive])
3635 AC_MSG_ERROR([--with-msh3 and --with-quiche are mutually exclusive])
3638 dnl backup the pre-msh3 variables
3644 if test -n "$want_msh3_path"; then
3645 LD_MSH3="-L$want_msh3_path/lib"
3646 CPP_MSH3="-I$want_msh3_path/include"
3652 LIBS="-lmsh3 $LIBS"
3663 dnl FIXME: Enable when msh3 was detected via pkg-config
3684 AS_HELP_STRING([--with-libuv=PATH],[Enable libuv])
3685 AS_HELP_STRING([--without-libuv],[Disable libuv]),
3689 dnl --without-libuv option used
3693 dnl --with-libuv option used without path
3698 dnl --with-libuv option used with path
3709 dnl backup the pre-libuv variables
3719 $PKGCONFIG --libs-only-l libuv`
3720 AC_MSG_NOTICE([-l is $LIB_LIBUV])
3723 $PKGCONFIG --cflags-only-I libuv`
3724 AC_MSG_NOTICE([-I is $CPP_LIBUV])
3727 $PKGCONFIG --libs-only-L libuv`
3728 AC_MSG_NOTICE([-L is $LD_LIBUV])
3736 DIR_LIBUV=`echo $LD_LIBUV | $SED -e 's/^-L//'`
3757 dnl no libuv pkg-config found, deal with it
3759 dnl To avoid link errors, we do not allow --with-libuv without
3761 AC_MSG_ERROR([--with-libuv was specified but could not find libuv pkg-config file.])
3772 AC_ARG_WITH(zsh-functions-dir,
3773 AS_HELP_STRING([--with-zsh-functions-dir=PATH],[Install zsh completions to PATH])
3774 AS_HELP_STRING([--without-zsh-functions-dir],[Do not install zsh completions]),
3778 dnl --without-zsh-functions-dir option used
3781 dnl --with-zsh-functions-dir option used without path
3782 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
3786 dnl --with-zsh-functions-dir option used with path
3798 AC_ARG_WITH(fish-functions-dir,
3799 AS_HELP_STRING([--with-fish-functions-dir=PATH],[Install fish completions to PATH])
3800 AS_HELP_STRING([--without-fish-functions-dir],[Do not install fish completions]),
3804 dnl --without-fish-functions-dir option used
3807 dnl --with-fish-functions-dir option used without path
3810 FISH_FUNCTIONS_DIR=`$PKGCONFIG --variable completionsdir fish`
3817 dnl --with-fish-functions-dir option used with path
3825 dnl ones as default-headers when checking for the rest!
3908 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
3923 if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
3993 time_t t = -1;
4002 dnl cross-compiling, most systems are signed
4089 if test "$curl_cv_native_windows" = 'yes' -o "$curl_cv_cygwin" = 'yes'; then
4093 if test -z "$ssl_backends"; then
4116 if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0" -o "x$CURL_CA_EMBED" != "x"; then
4117 if test -z "$PERL"; then
4126 dnl If the manual variable still is set, then we go with providing a built-in
4145 AC_MSG_ERROR([options --enable-pthreads and --disable-rt are mutually exclusive])
4160 dnl When statically linking against BoringSSL, -lpthread is added to LIBS.
4162 dnl -pthread in CFLAGS as recommended for GCC. This also ensures that
4163 dnl lib1541 and lib1565 tests are built with these options. Otherwise
4172 dnl on HP-UX, life is more complicated...
4174 *-hp-hpux*)
4175 dnl it doesn't actually work without -lpthread
4184 # assign PTHREAD for pkg-config use
4185 PTHREAD=" -pthread"
4188 *-ibm-aix*)
4190 COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
4192 CFLAGS="$CFLAGS -pthread"
4194 CFLAGS="$CFLAGS -qthreaded"
4197 powerpc-*amigaos*)
4198 dnl No -pthread option, but link with -lpthread
4199 PTHREAD=" -lpthread"
4202 CFLAGS="$CFLAGS -pthread"
4218 if test "$want_threaded_resolver" != "no" -a "x$USE_THREADS_POSIX" != "x1" -a "x$USE_THREADS_WIN32"…
4235 AS_HELP_STRING([--enable-verbose],[Enable verbose strings])
4236 AS_HELP_STRING([--disable-verbose],[Disable verbose strings]),
4255 AS_HELP_STRING([--enable-sspi],[Enable SSPI])
4256 AS_HELP_STRING([--disable-sspi],[Disable SSPI]),
4266 AC_MSG_WARN([--enable-sspi Ignored. Only supported on native Windows builds.])
4271 # --with-schannel implies --enable-sspi
4279 # --with-schannel implies --enable-sspi
4290 AC_ARG_ENABLE(basic-auth,
4291 AS_HELP_STRING([--enable-basic-auth],[Enable basic authentication (default)])
4292 AS_HELP_STRING([--disable-basic-auth],[Disable basic authentication]),
4309 AC_ARG_ENABLE(bearer-auth,
4310 AS_HELP_STRING([--enable-bearer-auth],[Enable bearer authentication (default)])
4311 AS_HELP_STRING([--disable-bearer-auth],[Disable bearer authentication]),
4328 AC_ARG_ENABLE(digest-auth,
4329 AS_HELP_STRING([--enable-digest-auth],[Enable digest authentication (default)])
4330 AS_HELP_STRING([--disable-digest-auth],[Disable digest authentication]),
4347 AC_ARG_ENABLE(kerberos-auth,
4348 AS_HELP_STRING([--enable-kerberos-auth],[Enable kerberos authentication (default)])
4349 AS_HELP_STRING([--disable-kerberos-auth],[Disable kerberos authentication]),
4367 AC_ARG_ENABLE(negotiate-auth,
4368 AS_HELP_STRING([--enable-negotiate-auth],[Enable negotiate authentication (default)])
4369 AS_HELP_STRING([--disable-negotiate-auth],[Disable negotiate authentication]),
4388 AS_HELP_STRING([--enable-aws],[Enable AWS sig support (default)])
4389 AS_HELP_STRING([--disable-aws],[Disable AWS sig support]),
4407 AS_HELP_STRING([--enable-ntlm],[Enable NTLM support])
4408 AS_HELP_STRING([--disable-ntlm],[Disable NTLM support]),
4423 dnl disable TLS-SRP authentication
4425 AC_MSG_CHECKING([whether to enable TLS-SRP authentication])
4426 AC_ARG_ENABLE(tls-srp,
4427 AS_HELP_STRING([--enable-tls-srp],[Enable TLS-SRP authentication])
4428 AS_HELP_STRING([--disable-tls-srp],[Disable TLS-SRP authentication]),
4444 AC_DEFINE(USE_TLS_SRP, 1, [Use TLS-SRP authentication])
4453 AC_ARG_ENABLE(unix-sockets,
4454 AS_HELP_STRING([--enable-unix-sockets],[Enable Unix domain sockets])
4455 AS_HELP_STRING([--disable-unix-sockets],[Disable Unix domain sockets]),
4482 AC_MSG_ERROR([--enable-unix-sockets is not available on this platform!])
4495 AS_HELP_STRING([--enable-cookies],[Enable cookies support])
4496 AS_HELP_STRING([--disable-cookies],[Disable cookies support]),
4514 AS_HELP_STRING([--enable-socketpair],[Enable socketpair support])
4515 AS_HELP_STRING([--disable-socketpair],[Disable socketpair support]),
4532 AC_ARG_ENABLE(http-auth,
4533 AS_HELP_STRING([--enable-http-auth],[Enable HTTP authentication support])
4534 AS_HELP_STRING([--disable-http-auth],[Disable HTTP authentication support]),
4552 AS_HELP_STRING([--enable-doh],[Enable DoH support])
4553 AS_HELP_STRING([--disable-doh],[Disable DoH support]),
4571 AS_HELP_STRING([--enable-mime],[Enable mime API support])
4572 AS_HELP_STRING([--disable-mime],[Disable mime API support]),
4590 AS_HELP_STRING([--enable-bindlocal],[Enable local binding support])
4591 AS_HELP_STRING([--disable-bindlocal],[Disable local binding support]),
4608 AC_ARG_ENABLE(form-api,
4609 AS_HELP_STRING([--enable-form-api],[Enable form API support])
4610 AS_HELP_STRING([--disable-form-api],[Disable form API support]),
4637 AS_HELP_STRING([--enable-dateparse],[Enable date parsing])
4638 AS_HELP_STRING([--disable-dateparse],[Disable date parsing]),
4656 AS_HELP_STRING([--enable-netrc],[Enable netrc parsing])
4657 AS_HELP_STRING([--disable-netrc],[Disable netrc parsing]),
4671 dnl disable progress-meter
4673 AC_MSG_CHECKING([whether to support progress-meter])
4674 AC_ARG_ENABLE(progress-meter,
4675 AS_HELP_STRING([--enable-progress-meter],[Enable progress-meter])
4676 AS_HELP_STRING([--disable-progress-meter],[Disable progress-meter]),
4680 AC_DEFINE(CURL_DISABLE_PROGRESS_METER, 1, [disable progress-meter])
4690 dnl disable SHA-512/256 hash algorithm
4692 AC_MSG_CHECKING([whether to support the SHA-512/256 hash algorithm])
4693 AC_ARG_ENABLE(sha512-256,
4694 AS_HELP_STRING([--enable-sha512-256],[Enable SHA-512/256 hash algorithm (default)])
4695 AS_HELP_STRING([--disable-sha512-256],[Disable SHA-512/256 hash algorithm]),
4699 AC_DEFINE(CURL_DISABLE_SHA512_256, 1, [disable SHA-512/256 hash algorithm])
4713 AS_HELP_STRING([--enable-dnsshuffle],[Enable DNS shuffling])
4714 AS_HELP_STRING([--disable-dnsshuffle],[Disable DNS shuffling]),
4731 AC_ARG_ENABLE(get-easy-options,
4732 AS_HELP_STRING([--enable-get-easy-options],[Enable curl_easy_options])
4733 AS_HELP_STRING([--disable-get-easy-options],[Disable curl_easy_options]),
4747 dnl switch on/off alt-svc
4749 AC_MSG_CHECKING([whether to support alt-svc])
4750 AC_ARG_ENABLE(alt-svc,
4751 AS_HELP_STRING([--enable-alt-svc],[Enable alt-svc support])
4752 AS_HELP_STRING([--disable-alt-svc],[Disable alt-svc support]),
4756 AC_DEFINE(CURL_DISABLE_ALTSVC, 1, [disable alt-svc])
4768 dnl switch on/off headers-api
4770 AC_MSG_CHECKING([whether to support headers-api])
4771 AC_ARG_ENABLE(headers-api,
4772 AS_HELP_STRING([--enable-headers-api],[Enable headers-api support])
4773 AS_HELP_STRING([--disable-headers-api],[Disable headers-api support]),
4777 curl_headers_msg="no (--enable-headers-api)"
4778 AC_DEFINE(CURL_DISABLE_HEADERS_API, 1, [disable headers-api])
4788 if test -n "$SSL_ENABLED"; then
4794 AS_HELP_STRING([--enable-hsts],[Enable HSTS support])
4795 AS_HELP_STRING([--disable-hsts],[Disable HSTS support]),
4813 curl_hsts_msg="no (--enable-hsts)";
4814 AC_DEFINE(CURL_DISABLE_HSTS, 1, [disable alt-svc])
4831 ECH_SUPPORT="ECH support available via BoringSSL with SSL_set1_ech_config_list"
4836 ECH_SUPPORT="ECH support available via wolfSSL with wolfSSL_CTX_GenerateEchConfig"
4840 dnl now deal with whatever we found
4848 AC_MSG_ERROR([--enable-ech ignored: No ECH support found])
4859 curl_httpsrr_msg="enabled (--disable-httpsrr)"
4876 AS_HELP_STRING([--enable-websockets],[Enable WebSockets support])
4877 AS_HELP_STRING([--disable-websockets],[Disable WebSockets support]),
4885 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
4905 dnl check whether experimental SSL Session Im-/Export is enabled
4915 AC_MSG_ERROR([--enable-ssls-export ignored: No SSL support])
4919 AC_MSG_RESULT("SSL session im-/export enabled")
4920 experimental="$experimental SSLS-EXPORT"
4934 set -- $INITIAL_LDFLAGS
4935 while test -n "$1"; do
4937 -L* | --library-path=* | -F*)
4940 -framework)
4941 if test -n "$2"; then
4969 dnl to let curl-config output the static libraries correctly
4978 dnl Merge pkg-config private fields into public ones when static-only
4992 dnl For keeping supported features and protocols also in pkg-config file
4993 dnl since it is more cross-compile friendly than curl-config
4998 elif test -n "$SSL_ENABLED"; then
5016 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
5017 -o "x$USE_THREADS_WIN32" = "x1"; then
5020 if test "x$USE_ARES" = "x1" -a "$want_threaded_resolver" = "yes"; then
5021 SUPPORT_FEATURES="$SUPPORT_FEATURES asyn-rr"
5031 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
5043 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
5049 if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \
5050 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
5054 if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \
5055 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
5062 if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
5063 -o "x$GNUTLS_ENABLED" = "x1" \
5064 -o "x$SECURETRANSPORT_ENABLED" = "x1" \
5065 -o "x$USE_WIN32_CRYPTO" = "x1" \
5066 -o "x$WOLFSSL_NTLM" = "x1"; then
5071 -o "x$USE_WINDOWS_SSPI" = "x1"; then
5077 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
5084 if test "x$USE_NGTCP2_H3" = "x1" -o "x$USE_QUICHE" = "x1" \
5085 -o "x$USE_OPENSSL_H3" = "x1" -o "x$USE_MSH3" = "x1"; then
5087 AC_MSG_ERROR([MultiSSL cannot be enabled with HTTP/3 and vice versa])
5096 AC_MSG_CHECKING([if this build supports HTTPS-proxy])
5097 dnl if not explicitly turned off, HTTPS-proxy comes with some TLS backends
5101 -o "x$GNUTLS_ENABLED" = "x1" \
5102 -o "x$SECURETRANSPORT_ENABLED" = "x1" \
5103 -o "x$RUSTLS_ENABLED" = "x1" \
5104 -o "x$BEARSSL_ENABLED" = "x1" \
5105 -o "x$SCHANNEL_ENABLED" = "x1" \
5106 -o "x$GNUTLS_ENABLED" = "x1" \
5107 -o "x$MBEDTLS_ENABLED" = "x1"; then
5108 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
5110 elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$WOLFSSL_BIO" = "x1"; then
5111 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
5123 if test "x$OPENSSL_ENABLED" = "x1" -o -n "$SSL_ENABLED"; then
5134 SUPPORT_FEATURES="$SUPPORT_FEATURES SSLS-EXPORT"
5137 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
5138 if test ${ac_cv_sizeof_off_t} -gt 4 -o \
5146 elif test "x$USE_THREADS_POSIX" = "x1" -a \
5180 dnl replace spaces with newlines
5183 if sort -f </dev/null >/dev/null 2>&1; then
5184 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort -f | tr '\012' ' '`
5190 dnl For supported protocols in pkg-config file
5246 -a "x$use_curl_ntlm_core" = "xyes"; then
5285 dnl replace spaces with newlines
5314 ac_configure_args="$ac_configure_args --enable-curldebug"
5325 docs/cmdline-opts/Makefile \
5346 curl-config \
5351 SUPPORT_PROTOCOLS_LOWER=`echo "$SUPPORT_PROTOCOLS" | tr A-Z a-z`
5362 curl-config: ${LIBCURL_PC_LDFLAGS_PRIVATE}
5371 GSS-API: ${curl_gss_msg}
5373 TLS-SRP: ${curl_tls_srp_msg}
5380 Built-in manual: ${curl_manual_msg}
5381 --libcurl option: ${curl_libcurl_msg}
5395 Alt-svc: ${curl_altsvc_msg}
5403 SSLS-EXPORT: ${curl_ssls_export_msg}
5408 # grep -o would simplify this, but is nonportable
5409 [non13=`echo "$TLSCHOICE" | $AWK '{split("bearssl secure-transport", a); for (i in a) if(match(tolo…
5410 if test -n "$non13"; then
5416 if test -n "$experimental"; then
5418 AC_MSG_WARN([$a is enabled but marked EXPERIMENTAL. Use with caution!])
5424 if test -n "$CURL_BUILDINFO$CURL_CI$CI"; then