summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-05-11 17:44:25 +0200
committerKai Blin <kai@samba.org>2010-05-20 22:16:15 +0200
commit8e04ad2db1e3071e3297a315021fc5158134f575 (patch)
tree37b652042283a3be4a28a477cedec7891b3deca8 /source3/wscript
parent2650198ff70320cc9f251f2ce881c25932bc0e95 (diff)
downloadsamba-8e04ad2db1e3071e3297a315021fc5158134f575.tar.gz
samba-8e04ad2db1e3071e3297a315021fc5158134f575.tar.bz2
samba-8e04ad2db1e3071e3297a315021fc5158134f575.zip
s3-waf: build shared modules as subsystems
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index c1c5977cdd..907addb063 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -416,6 +416,17 @@ krb5_get_credentials_for_user krb5_get_host_realm krb5_free_host_realm''',
conf.SET_TARGET_TYPE('gssapi', 'EMPTY')
conf.SET_TARGET_TYPE('gssapi_krb5', 'EMPTY')
+ # FIXME: these should be tests for features, but the old build system just
+ # checks for OSes.
+ host_os = conf.env['SYSTEM_UNAME_SYSNAME'].lower()
+
+ # Python doesn't have case switches... :/
+ # FIXME: original was *linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu | *qnx*)
+ if host_os in ("linux"):
+ # obviously once this hook checks for more than just linux this needs to be adapted
+ conf.DEFINE('LINUX', '1')
+ conf.DEFINE('STAT_ST_BLOCKSIZE', '512')
+
conf.SAMBA_CONFIG_H('include/config.h')
def ctags(ctx):