As per bug #9024, make --disable-ntdb work again.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Wed Jul 4 08:11:33 CEST 2012 on sn-devel-104
#include "dbwrap/dbwrap.h"
#include "dbwrap/dbwrap_tdb.h"
#include "tdb.h"
+#ifndef DISABLE_NTDB
#include "lib/util/util_ntdb.h"
+#endif
#include "lib/param/param.h"
#include "system/filesys.h"
#include "ccan/str/str.h"
private_library=True
)
-bld.SAMBA_LIBRARY('util_ntdb',
- source='util_ntdb.c',
- local_include=False,
- public_deps='ntdb talloc samba-util samba-hostconfig',
- private_library=True
- )
+if not bld.env.disable_ntdb:
+ bld.SAMBA_LIBRARY('util_ntdb',
+ source='util_ntdb.c',
+ local_include=False,
+ public_deps='ntdb talloc samba-util samba-hostconfig',
+ private_library=True
+ )
bld.SAMBA_LIBRARY('tevent-util',
source='tevent_unix.c tevent_ntstatus.c tevent_werror.c',
conf.env.disable_ntdb = getattr(Options.options, 'disable_ntdb', False)
if not Options.options.disable_ntdb:
conf.RECURSE('lib/ntdb')
+ else:
+ conf.DEFINE('DISABLE_NTDB', 1)
conf.RECURSE('lib/zlib')
conf.RECURSE('lib/util/charset')
conf.RECURSE('source4/auth')