summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-13 21:33:04 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-13 23:03:27 +1000
commitc10d267a7620d53e34f79c2514849cd82a47b9aa (patch)
treeeff77c4b1036a66a4f313819b744adeedafcbb4c /source4/lib/ldb/wscript
parent483d059c8e08473c9c9b27025bfb80f0d6b89c4a (diff)
downloadsamba-c10d267a7620d53e34f79c2514849cd82a47b9aa.tar.gz
samba-c10d267a7620d53e34f79c2514849cd82a47b9aa.tar.bz2
samba-c10d267a7620d53e34f79c2514849cd82a47b9aa.zip
s4-waf: don't try to use the system lib for the library build
when building library FOO, don't try to find the system library FOO Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/lib/ldb/wscript')
-rw-r--r--source4/lib/ldb/wscript10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript
index d796bc0011..ea0219ff4b 100644
--- a/source4/lib/ldb/wscript
+++ b/source4/lib/ldb/wscript
@@ -37,12 +37,14 @@ def configure(conf):
s4_build = getattr(conf.env, '_SAMBA_BUILD_', 0) == 4
+ conf.env.standalone_ldb = conf.IN_LAUNCH_DIR()
if not s4_build:
- 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 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)
# we need this for the ldap backend
if conf.CHECK_FUNCS_IN('ber_flush ldap_open', 'lber ldap', headers='lber.h ldap.h'):
conf.env.ENABLE_LDAP_BACKEND = True