summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorIra Cooper <ira@samba.org>2014-07-22 21:34:17 -0700
committerIra Cooper <ira@samba.org>2014-08-09 18:26:17 +0200
commit38de110b02ff7e622d6394e12d99c3e01568db3e (patch)
tree8fad8fd60021300e6b300f17bd520018ef9aacc6 /wscript
parent8cc966747df8531eb0afc8870dac29a306fb4352 (diff)
downloadsamba-38de110b02ff7e622d6394e12d99c3e01568db3e.tar.gz
third_party/popt: Initial support for popt.
ctdb, ldb, and samba are supported builds for third_party popt. Signed-off-by: Ira Cooper <ira@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/wscript b/wscript
index 377ab66edc6..76e1f384cd7 100644
--- a/wscript
+++ b/wscript
@@ -124,6 +124,7 @@ def configure(conf):
if conf.CHECK_FOR_THIRD_PARTY():
conf.RECURSE('third_party/iniparser/src')
conf.RECURSE('third_party/zlib')
+ conf.RECURSE('third_party/popt')
else:
if not conf.CHECK_INIPARSER():
raise Utils.WafError('iniparser development packages have not been found.\nIf third_party is installed, check that it is in the proper place.')
@@ -133,7 +134,12 @@ def configure(conf):
if not conf.CHECK_ZLIB():
raise Utils.WafError('zlib development packages have not been found.\nIf third_party is installed, check that it is in the proper place.')
else:
- conf.define('USING_SYSTEM_ZLIB',1);
+ conf.define('USING_SYSTEM_ZLIB',1)
+
+ if not conf.CHECK_POPT():
+ raise Utils.WafError('popt development packages have not been found.\nIf third_party is installed, check that it is in the proper place.')
+ else:
+ conf.define('USING_SYSTEM_POPT', 1)
conf.RECURSE('lib/ldb')
@@ -159,7 +165,6 @@ def configure(conf):
conf.RECURSE('nsswitch')
conf.RECURSE('lib/socket_wrapper')
conf.RECURSE('lib/uid_wrapper')
- conf.RECURSE('lib/popt')
conf.RECURSE('lib/subunit/c')
conf.RECURSE('libcli/smbreadline')
conf.RECURSE('lib/crypto')