r10977: Get rid of tons of new warnings when building with OpenLDAP 2.3.7 or higher.
authorGünther Deschner <gd@samba.org>
Thu, 13 Oct 2005 23:03:30 +0000 (23:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:04:59 +0000 (11:04 -0500)
Guenther
(This used to be commit 380c6133240f8cb2da79453d08e77778d157d176)

source3/configure.in

index b331387a3fcf8ba9ed89e6fcf128699b62c02adc..1aaf65e13ffdf03481b9803c1d74e2cc04efa3ac 100644 (file)
@@ -2820,6 +2820,7 @@ if test x"$with_ldap_support" != x"no"; then
   
   if test x"$ac_cv_lib_ext_ldap_ldap_init" = x"yes" -a x"$ac_cv_func_ext_ldap_domain2hostlist" = x"yes"; then
     AC_DEFINE(HAVE_LDAP,1,[Whether ldap is available])
+    CPPFLAGS="$CPPFLAGS -DLDAP_DEPRECATED"
     default_static_modules="$default_static_modules pdb_ldap idmap_ldap";
     default_shared_modules="$default_shared_modules";
     SMBLDAP="lib/smbldap.o"