ldb: Support building with system ldb library
authorJelmer Vernooij <jelmer@samba.org>
Mon, 31 May 2010 02:48:00 +0000 (04:48 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 31 May 2010 02:48:00 +0000 (04:48 +0200)
source4/lib/ldb/wscript

index a2855dcf42cf8d55c21709209d78067aac3ac681..02820737dc75c510db48c489f72e7eedb0fec0d7 100644 (file)
@@ -39,19 +39,18 @@ def configure(conf):
 
     conf.env.standalone_ldb = conf.IN_LAUNCH_DIR()
 
-    if not s4_build:
-        if not conf.env.standalone_ldb:
-            if conf.CHECK_BUNDLED_SYSTEM('ldb', minversion=VERSION,
-                                         onlyif='talloc tdb tevent',
-                                         implied_deps='replace talloc tdb tevent'):
-                conf.define('USING_SYSTEM_LDB', 1)
-
-        if conf.env.standalone_ldb:
-            conf.find_program('xsltproc', var='XSLTPROC')
-
-        # we need this for the ldap backend
-        if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
-            conf.env.ENABLE_LDAP_BACKEND = True
+    if not conf.env.standalone_ldb:
+        if conf.CHECK_BUNDLED_SYSTEM('ldb', minversion=VERSION,
+                                     onlyif='talloc tdb tevent',
+                                     implied_deps='replace talloc tdb tevent'):
+            conf.define('USING_SYSTEM_LDB', 1)
+
+    if conf.env.standalone_ldb:
+        conf.find_program('xsltproc', var='XSLTPROC')
+
+    # we need this for the ldap backend
+    if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'):
+        conf.env.ENABLE_LDAP_BACKEND = True
 
     conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)