Lines Matching +full:- +full:- +full:enable +full:- +full:ldap
21 # SPDX-License-Identifier: curl
26 dnl -------------------------------------------------
27 dnl Use the C preprocessor to find out if the given object-style symbol
31 dnl result in a set of double-quoted strings the returned expansion will
32 dnl actually be a single double-quoted string concatenating all them.
41 if test -z "$SED"; then
44 if test -z "$GREP"; then
61 if test -z "$tmp_exp" || test "$tmp_exp" = "$1"; then
65 if test -z "$tmp_exp"; then
80 dnl -------------------------------------------------
118 dnl -------------------------------------------------
139 LIBS="-lxnet $LIBS"
146 dnl -------------------------------------------------
174 dnl -------------------------------------------------
199 dnl -------------------------------------------------
201 dnl and check if it is needed even with ldap.h
257 #include <ldap.h>
272 [Define to 1 if you need the lber.h header file even with ldap.h])
280 dnl -------------------------------------------------
281 dnl Check for compilable and valid ldap.h header
285 AC_CACHE_CHECK([for ldap.h], [curl_cv_header_ldap_h], [
305 #include <ldap.h>
307 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
319 [Define to 1 if you have the ldap.h header file.])
326 dnl -------------------------------------------------
352 #include <ldap.h>
356 LDAP *ldp = ldapssl_init("0.0.0.0", LDAPS_PORT, 1);
374 dnl -------------------------------------------------
391 -l*)
395 l_lib="-l$x_lib"
398 if test -z "$u_libs"; then
410 '-lwldap32' ; do
412 if test -z "$x_nlibs"; then
433 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
445 case X-"$curl_cv_ldap_LIBS" in
446 X-unknown)
449 X-)
453 if test -z "$curl_cv_save_LIBS"; then
466 dnl -------------------------------------------------
467 dnl Check for libraries needed for LDAP support,
476 AC_MSG_CHECKING([for LDAP libraries])
483 -l*)
487 l_lib="-l$x_lib"
490 if test -z "$u_libs"; then
502 '-lldap' \
503 '-lldap -llber' \
504 '-llber -lldap' \
505 '-lldapssl -lldapx -lldapsdk' \
506 '-lldapsdk -lldapx -lldapssl' \
507 '-lldap -llber -lssl -lcrypto'; do
510 if test -z "$x_nlibs"; then
538 #include <ldap.h>
543 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
555 case X-"$curl_cv_ldap_LIBS" in
556 X-unknown)
557 AC_MSG_RESULT([cannot find LDAP libraries])
559 X-)
563 if test -z "$curl_cv_save_LIBS"; then
568 # FIXME: Enable when ldap was detected via pkg-config
570 LIBCURL_PC_REQUIRES_PRIVATE="ldap $LIBCURL_PC_REQUIRES_PRIVATE"
580 dnl -------------------------------------------------
581 dnl Check for struct sockaddr_storage. Most IPv6-enabled
614 dnl -------------------------------------------------
662 dnl -------------------------------------------------
709 dnl -------------------------------------------------
750 dnl -------------------------------------------------
797 dnl -------------------------------------------------
875 dnl -------------------------------------------------
905 dnl until library linking and run-time checks for clock_gettime succeed.
909 dnl -------------------------------------------------
942 dnl -------------------------------------------------
956 for x_xlibs in '' '-lrt' '-lposix4' ; do
958 if test -z "$x_xlibs"; then
984 case X-"$curl_cv_gclk_LIBS" in
985 X-unknown)
990 X-)
995 if test -z "$curl_cv_save_LIBS"; then
1005 dnl only do runtime verification when not cross-compiling
1049 dnl -------------------------------------------------
1059 for tst_lib in '' '-lsocket' ; do
1080 case X-"$tst_connect_need_LIBS" in
1081 X-unknown)
1085 X-)
1097 dnl -------------------------------------------------
1153 dnl -------------------------------------------------
1160 dnl macro. It must also run AFTER all lib-checking macros are complete.
1164 dnl this test is of course not sensible if we are cross-compiling!
1168 dnl point also is available run-time!
1169 AC_MSG_CHECKING([run-time libs availability])
1178 …AC_MSG_ERROR([one or more libs available at link-time are not available run-time. Libs used at lin…
1187 dnl -------------------------------------------------
1188 dnl Check if a default ca-bundle should be used
1191 dnl /etc/ssl/certs/ca-certificates.crt Debian systems
1192 dnl /etc/pki/tls/certs/ca-bundle.crt Redhat and Mandriva
1193 dnl /usr/share/ssl/certs/ca-bundle.crt old(er) Redhat
1194 dnl /usr/local/share/certs/ca-root-nss.crt MidnightBSD
1202 AC_ARG_WITH(ca-bundle,
1203 AS_HELP_STRING([--with-ca-bundle=FILE],
1204 [Absolute path to a file containing CA certificates (example: /etc/ca-bundle.crt)])
1205 AS_HELP_STRING([--without-ca-bundle], [Don't use a default CA bundle]),
1209 AC_MSG_ERROR([--with-ca-bundle=FILE requires a path to the CA bundle])
1213 AC_ARG_WITH(ca-path,
1214 AS_HELP_STRING([--with-ca-path=DIRECTORY],
1219 AS_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
1223 AC_MSG_ERROR([--with-ca-path=DIRECTORY requires a path to the CA path directory])
1232 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
1233 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
1237 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
1238 dnl --with-ca-bundle given
1241 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
1242 dnl --with-ca-path given
1246 dnl First try auto-detecting a CA bundle, then a CA path.
1247 dnl Both auto-detections can be skipped by --without-ca-*
1250 if test "x$cross_compiling" != "xyes" -a \
1252 dnl NOT cross-compiling and...
1253 dnl neither of the --with-ca-* options are provided
1259 cac="${prefix}/share/curl/curl-ca-bundle.crt"
1261 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
1264 for a in /etc/ssl/certs/ca-certificates.crt \
1265 /etc/pki/tls/certs/ca-bundle.crt \
1266 /usr/share/ssl/certs/ca-bundle.crt \
1267 /usr/local/share/certs/ca-root-nss.crt \
1270 if test -f "$a"; then
1281 dnl no option given and cross-compiling
1282 AC_MSG_WARN([skipped the ca-cert path detection when cross-compiling])
1286 if test "x$ca" = "xno" || test -f "$ca"; then
1294 if test ! -z "$check_capath"; then
1296 …if test -d "$a" && ls "$a"/[[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]].0 >/…
1325 AC_MSG_CHECKING([whether to use built-in CA store of SSL library])
1326 AC_ARG_WITH(ca-fallback,
1327 AS_HELP_STRING([--with-ca-fallback], [Use the built-in CA store of the SSL library])
1328 AS_HELP_STRING([--without-ca-fallback], [Don't use the built-in CA store of the SSL library]),
1330 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
1331 AC_MSG_ERROR([--with-ca-fallback only allows yes or no as parameter])
1337 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
1338 AC_MSG_ERROR([--with-ca-fallback only works with OpenSSL or GnuTLS])
1340 AC_DEFINE_UNQUOTED(CURL_CA_FALLBACK, 1, [define "1" to use built-in CA store of SSL library])
1346 dnl -------------------------------------------------
1347 dnl Check if a ca-bundle should be embedded
1353 AC_ARG_WITH(ca-embed,
1354 AS_HELP_STRING([--with-ca-embed=FILE],
1355 …[Absolute path to a file containing CA certificates to embed in the curl tool (example: /etc/ca-bu…
1356 AS_HELP_STRING([--without-ca-embed], [Don't embed a default CA bundle in the curl tool]),
1360 AC_MSG_ERROR([--with-ca-embed=FILE requires a path to the CA bundle])
1366 if test "x$want_ca_embed" != "xno" -a "x$want_ca_embed" != "xunset" -a -f "$want_ca_embed"; then
1376 dnl -------------------------------------------------
1389 dnl All mingw-w64 versions support large files
1411 dnl -------------------------------------------------
1418 if test "$curl_cv_native_windows" = "yes" -a "$curl_cv_winuwp" != "yes"; then
1452 dnl ------------------------
1455 dnl we need this macro since pkg-config distinguishes among empty and unset
1460 if test -n "$1"; then
1467 dnl ------------------------
1468 dnl search for the pkg-config tool. Set the PKGCONFIG variable to hold the
1471 dnl If pkg-config is present, check that it has info about the $module or
1478 if test -n "$PKG_CONFIG"; then
1481 AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no],
1486 AC_MSG_CHECKING([for $1 options with pkg-config])
1487 dnl ask pkg-config about $1
1489 $PKGCONFIG --exists $1 >/dev/null 2>&1 && echo 1`
1491 if test -z "$itexists"; then
1492 dnl pkg-config does not have info about the given module! set the
1504 dnl -------------------------------------------------
1513 if test -z "$tmp_cpp"; then
1521 dnl -------------------------------------------------
1527 *-apple-*) curl_pflags="${curl_pflags} APPLE";;
1530 …*-*-*bsd*|*-*-aix*|*-*-hpux*|*-*-interix*|*-*-irix*|*-*-linux*|*-*-solaris*|*-*-sunos*|*-apple-*|*…
1534 *-*-*bsd*)
1538 *-*-android*)
1540 ANDROID_PLATFORM_LEVEL=`echo "$host_os" | $SED -ne 's/.*android\(@<:@0-9@:>@*\).*/\1/p'`
1541 if test -n "${ANDROID_PLATFORM_LEVEL}"; then
1542 curl_pflags="${curl_pflags}-${ANDROID_PLATFORM_LEVEL}"
1588 dnl Check if $cpp -P should be used for extract define values due to gcc 5
1590 dnl (without -P) will show TEST EINVAL TEST as
1600 AC_MSG_CHECKING([if cpp -P is needed])
1607 dnl we need cpp -P so check if it works then
1609 AC_MSG_CHECKING([if cpp -P works])
1611 CPPFLAGS="$CPPFLAGS -P"
1619 AC_MSG_WARN([failed to figure out cpp -P alternative])
1620 # without -P
1623 # with -P
1624 CPPPFLAG="-P"
1629 # without -P
1637 dnl Set -Werror=partial-availability to detect possible breaking code
1645 *-apple-*)
1650 AC_MSG_CHECKING([for good-to-use Darwin CFLAGS])
1655 CFLAGS="$CFLAGS -Werror=partial-availability"
1656 AC_MSG_CHECKING([whether $CC accepts -Werror=partial-availability])
1668 dnl Check to see if the compiler supports __builtin_available. This built-in