r18903: merge from samba3:
authorStefan Metzmacher <metze@samba.org>
Mon, 25 Sep 2006 16:59:00 +0000 (16:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:19 +0000 (14:20 -0500)
define HAVE_LDB_LDAP and HAVE_LDB_SQLITE3

metze

source/lib/ldb/common/ldb_modules.c
source/lib/ldb/configure.ac
source/lib/ldb/ldap.m4
source/lib/ldb/sqlite3.m4

index 06a8a4bcf654a72b3b85bc36fe59109075332ec9..adbbe58e1010f5572b6893e35e1460fa348acbc9 100644 (file)
@@ -137,13 +137,13 @@ static const struct ldb_module_ops *ldb_find_module_ops(const char *name)
 
 #ifndef STATIC_ldb_MODULES
 
-#ifdef HAVE_LDAP
+#ifdef HAVE_LDB_LDAP
 #define LDAP_INIT ldb_ldap_init,
 #else
 #define LDAP_INIT
 #endif
 
-#ifdef HAVE_SQLITE3
+#ifdef HAVE_LDB_SQLITE3
 #define SQLITE3_INIT ldb_sqlite3_init,
 #else
 #define SQLITE3_INIT
index 70a410045108a21af9910d985ffac0c0caab4ceb..e1e9d49ceebe97e0076eb1ba745a373d6b63daac 100644 (file)
@@ -54,7 +54,7 @@ m4_include(libtdb.m4)
 m4_include(ldap.m4)
 if test x"$with_ldap_support" = x"yes"; then
    LIBS="$LIBS -llber -lldap"
-   CFLAGS="$CFLAGS -DHAVE_LDAP=1"
+   CFLAGS="$CFLAGS -DHAVE_LDB_LDAP=1"
    EXTRA_OBJ="$EXTRA_OBJ ldb_ldap/ldb_ldap.o"
    TESTS="$TESTS test-ldap.sh"
 fi
@@ -62,7 +62,7 @@ fi
 m4_include(sqlite3.m4)
 if test x"$with_sqlite3_support" = x"yes"; then
    LIBS="$LIBS -lsqlite3"
-   CFLAGS="$CFLAGS -DHAVE_SQLITE3=1"
+   CFLAGS="$CFLAGS -DHAVE_LDB_SQLITE3=1"
    EXTRA_OBJ="$EXTRA_OBJ ldb_sqlite3/ldb_sqlite3.o"
    TESTS="$TESTS test-sqlite3.sh"
 fi
index 911c1364c89a12fe487431f8d6914b268a7a1fe0..417083ed61c09c18d19068670ebaf09d3d9a0da0 100644 (file)
@@ -69,6 +69,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])
+    AC_DEFINE(HAVE_LDB_LDAP,1,[Whether ldb_ldap is available])
     with_ldap_support=yes
     AC_MSG_CHECKING(whether LDAP support is used)
     AC_MSG_RESULT(yes)
index 49e3807730a5097d356f1fd0fa89c3737eb7ae4f..d0a74ee53ccf33c3337d1b51412f0c455f8e7658 100644 (file)
@@ -40,6 +40,7 @@ if test x"$with_sqlite3_support" != x"no"; then
 
   if test x"$ac_cv_lib_ext_sqlite3_sqlite3_open" = x"yes"; then
     AC_DEFINE(HAVE_SQLITE3,1,[Whether sqlite3 is available])
+    AC_DEFINE(HAVE_LDB_SQLITE3,1,[Whether ldb_sqlite3 is available])
     AC_MSG_CHECKING(whether SQLITE3 support is used)
     AC_MSG_RESULT(yes)
     with_sqlite3_support=yes