build: only enable pytdb on s4 build
authorAndrew Tridgell <tridge@samba.org>
Wed, 17 Mar 2010 06:52:41 +0000 (17:52 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:51 +0000 (20:26 +1000)
lib/tdb/wscript

index 9dd039f43c1c5035601ee218bdeeebe87bab2730..7a67c20dae7d5ccefdf168585ed0636743e66892 100644 (file)
@@ -47,8 +47,11 @@ def build(bld):
                      'tools/tdbtool.c',
                      'tdb')
 
+    s4_build = getattr(bld.env, '_SAMBA_BUILD_', 0) == 4
+
     bld.SAMBA_PYTHON('pytdb',
                      'pytdb.c',
                      deps='tdb',
+                     enabled=s4_build,
                      realname='tdb.so')