From: Todd C. Miller Date: Fri, 4 Jan 2008 14:56:10 +0000 (+0000) Subject: add check for ldap_create X-Git-Tag: SUDO_1_7_0~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b564d51861cbdebdbb43b7e5bc060a94dc2a6f77;p=sudo add check for ldap_create --- diff --git a/config.h.in b/config.h.in index dfbc189a4..bde5d8dd4 100644 --- a/config.h.in +++ b/config.h.in @@ -215,6 +215,9 @@ /* Define to 1 if you use LDAP for sudoers. */ #undef HAVE_LDAP +/* Define to 1 if you have the `ldap_create' function. */ +#undef HAVE_LDAP_CREATE + /* Define to 1 if you have the `ldap_initialize' function. */ #undef HAVE_LDAP_INITIALIZE diff --git a/configure b/configure index 7917530ae..52058cea7 100755 --- a/configure +++ b/configure @@ -21955,7 +21955,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 + +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 do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/configure.in b/configure.in index 50ab17b94..409507233 100644 --- a/configure.in +++ b/configure.in @@ -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) + 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_HEADERS([sasl/sasl.h]) AC_CHECK_LIB(gssapi, gss_krb5_ccache_name,