Add check for ldap_sasl_bind_s()

Remove -DLDAP_DEPRECATED from CFLAGS
This commit is contained in:
Todd C. Miller
2008-01-05 12:56:39 +00:00
parent b564d51861
commit f1377429a1
3 changed files with 6 additions and 6 deletions

View File

@@ -221,6 +221,9 @@
/* Define to 1 if you have the `ldap_initialize' function. */
#undef HAVE_LDAP_INITIALIZE
/* Define to 1 if you have the `ldap_sasl_bind_s' function. */
#undef HAVE_LDAP_SASL_BIND_S
/* Define to 1 if you have the `ldap_sasl_interactive_bind_s' function. */
#undef HAVE_LDAP_SASL_INTERACTIVE_BIND_S

5
configure vendored
View File

@@ -21956,7 +21956,8 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
for ac_func in ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create
for ac_func in ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -22684,8 +22685,6 @@ echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Make
SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
LIBS="$_LIBS"
LDFLAGS="$_LDFLAGS"
# XXX - OpenLDAP has deprecated ldap_get_values()
CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
fi
if test -n "$blibpath"; then

View File

@@ -2302,7 +2302,7 @@ if test ${with_ldap-'no'} != "no"; then
AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_LBER_H)])
AC_CHECK_FUNCS(ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create)
AC_CHECK_FUNCS(ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s)
AC_CHECK_HEADERS([sasl/sasl.h])
AC_CHECK_LIB(gssapi, gss_krb5_ccache_name,
@@ -2333,8 +2333,6 @@ if test ${with_ldap-'no'} != "no"; then
SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
LIBS="$_LIBS"
LDFLAGS="$_LDFLAGS"
# XXX - OpenLDAP has deprecated ldap_get_values()
CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
fi
dnl