summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/ldb/wscript20
1 files changed, 12 insertions, 8 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index 7a233d4a9d..e67ff9482f 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -46,6 +46,10 @@ def configure(conf):
onlyif='talloc tdb tevent',
implied_deps='replace talloc tdb tevent'):
conf.define('USING_SYSTEM_LDB', 1)
+ if conf.CHECK_BUNDLED_SYSTEM('pyldb', minversion=VERSION,
+ onlyif='talloc tdb tevent ldb',
+ implied_deps='replace talloc tdb tevent ldb'):
+ conf.define('USING_SYSTEM_PYLDB', 1)
if conf.env.standalone_ldb:
conf.CHECK_XSLTPROC_MANPAGES()
@@ -101,14 +105,14 @@ def build(bld):
bld.env.PACKAGE_VERSION = VERSION
bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
-
- bld.SAMBA_LIBRARY('pyldb_util',
- deps='ldb',
- source='pyldb_util.c',
- public_headers='pyldb.h',
- vnum=VERSION,
- pc_files='pyldb.pc',
- pyext=True)
+ if not bld.CONFIG_SET('USING_SYSTEM_PYLDB'):
+ bld.SAMBA_LIBRARY('pyldb_util',
+ deps='ldb',
+ source='pyldb_util.c',
+ public_headers='pyldb.h',
+ vnum=VERSION,
+ pc_files='pyldb.pc',
+ pyext=True)
if not bld.CONFIG_SET('USING_SYSTEM_LDB'):
if Options.is_install: