From: Max Dymond Date: Thu, 10 Jul 2025 19:15:03 +0000 (+0100) Subject: ldap: avoid automake caching issues with LDAP library names X-Git-Tag: curl-8_15_0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=272ec8692592467ca16615f179561de56cdf26fc;p=thirdparty%2Fcurl.git ldap: avoid automake caching issues with LDAP library names --- diff --git a/configure.ac b/configure.ac index a0e63d5dc3..578b67b9be 100644 --- a/configure.ac +++ b/configure.ac @@ -1675,8 +1675,8 @@ if test x$CURL_DISABLE_LDAP != x1 && test "$want_ldap" != "no"; then dnl Try LDAP first, then with LBER if needed AC_CHECK_LIB("$LDAPLIBNAME", ldap_init, [ldap_lib_ok=yes], [ldap_lib_ok=no]) if test "$ldap_lib_ok" = "no"; then - dnl LDAP alone failed, try with LBER - AC_CHECK_LIB("$LDAPLIBNAME", ldap_init, [ldap_lib_ok=yes], [ldap_lib_ok=no], [-l$LBERLIBNAME]) + dnl LDAP alone failed, try with LBER using a different function + AC_CHECK_LIB("$LDAPLIBNAME", ldap_unbind, [ldap_lib_ok=yes], [ldap_lib_ok=no], [-l$LBERLIBNAME]) if test "$ldap_lib_ok" = "yes"; then dnl We need both libraries LIBS="-l$LDAPLIBNAME -l$LBERLIBNAME $LIBS"