tdb2: add --disable-tdb2
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 2 Feb 2012 01:06:49 +0000 (11:36 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 2 Feb 2012 02:43:08 +0000 (03:43 +0100)
I thought you could --disable-tdb2=false, apparently not!  Thanks
Michael Adam...

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Thu Feb  2 03:43:08 CET 2012 on sn-devel-104

lib/tdb2/wscript

index 12115234608cb8109ac09f62756f0b75f9543c46..e4fb62bd2a412bdd3911ea93495a41e08334b7c2 100644 (file)
@@ -24,6 +24,9 @@ def set_options(opt):
     opt.add_option('--enable-tdb2',
                    help=("Use tdb2 API instead of tdb1 [True]"),
                    action="store_true", dest='BUILD_TDB2', default=True)
+    opt.add_option('--disable-tdb2',
+                   help=("Use old tdb1 API instead of tdb2"),
+                   action="store_false", dest='BUILD_TDB2')
     if opt.IN_LAUNCH_DIR():
         opt.add_option('--disable-python',
                        help=("disable the pytdb module"),