summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 23:48:57 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:46 +1000
commit6a8c43672bc5d33ea7edbe7879a4284cbc6df12f (patch)
tree9205e17b66e0306bcf38c64b3818518a96e838e3
parentdd2aba149c7176594a311cbc4c42065c3074c696 (diff)
downloadsamba-6a8c43672bc5d33ea7edbe7879a4284cbc6df12f.tar.gz
samba-6a8c43672bc5d33ea7edbe7879a4284cbc6df12f.tar.bz2
samba-6a8c43672bc5d33ea7edbe7879a4284cbc6df12f.zip
build: added wrapper options
-rw-r--r--lib/nss_wrapper/wscript11
-rw-r--r--lib/socket_wrapper/wscript11
-rw-r--r--lib/uid_wrapper/wscript11
-rw-r--r--source4/wscript6
4 files changed, 39 insertions, 0 deletions
diff --git a/lib/nss_wrapper/wscript b/lib/nss_wrapper/wscript
new file mode 100644
index 0000000000..ee95e7bbd9
--- /dev/null
+++ b/lib/nss_wrapper/wscript
@@ -0,0 +1,11 @@
+import Options
+
+def set_options(opt):
+ opt.add_option('--enable-nss-wrapper',
+ help=("Turn on nss wrapper library (default=no)"),
+ action="store_true", dest='enable_nss_wrapper', default=False)
+
+def configure(conf):
+ if Options.options.enable_nss_wrapper or Options.options.developer:
+ conf.DEFINE('NSS_WRAPPER', 1)
+
diff --git a/lib/socket_wrapper/wscript b/lib/socket_wrapper/wscript
new file mode 100644
index 0000000000..0534fbcda4
--- /dev/null
+++ b/lib/socket_wrapper/wscript
@@ -0,0 +1,11 @@
+import Options
+
+def set_options(opt):
+ opt.add_option('--enable-socket-wrapper',
+ help=("Turn on socket wrapper library (default=no)"),
+ action="store_true", dest='enable_socket_wrapper', default=False)
+
+def configure(conf):
+ if Options.options.enable_socket_wrapper or Options.options.developer:
+ conf.DEFINE('SOCKET_WRAPPER', 1)
+
diff --git a/lib/uid_wrapper/wscript b/lib/uid_wrapper/wscript
new file mode 100644
index 0000000000..2ca2af6648
--- /dev/null
+++ b/lib/uid_wrapper/wscript
@@ -0,0 +1,11 @@
+import Options
+
+def set_options(opt):
+ opt.add_option('--enable-uid-wrapper',
+ help=("Turn on uid wrapper library (default=no)"),
+ action="store_true", dest='enable_uid_wrapper', default=False)
+
+def configure(conf):
+ if Options.options.enable_uid_wrapper or Options.options.developer:
+ conf.DEFINE('UID_WRAPPER', 1)
+
diff --git a/source4/wscript b/source4/wscript
index 25a64c89d9..68ea1e02f0 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -15,6 +15,9 @@ def set_options(opt):
opt.recurse(LIBLDB_DIR)
opt.recurse('selftest')
opt.recurse('lib/tls')
+ opt.recurse('../lib/nss_wrapper')
+ opt.recurse('../lib/socket_wrapper')
+ opt.recurse('../lib/uid_wrapper')
def configure(conf):
@@ -30,6 +33,9 @@ def configure(conf):
conf.sub_config('../lib/zlib')
conf.sub_config('../lib/util/charset')
conf.sub_config('auth')
+ conf.sub_config('../lib/nss_wrapper')
+ conf.sub_config('../lib/socket_wrapper')
+ conf.sub_config('../lib/uid_wrapper')
conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)
conf.ADD_EXTRA_INCLUDES('#source4 #lib #source4/lib #source4/include #lib/socket_wrapper #lib/talloc #lib/replace #lib/event')