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()
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: