From 8e04ad2db1e3071e3297a315021fc5158134f575 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 11 May 2010 17:44:25 +0200 Subject: s3-waf: build shared modules as subsystems --- source3/wscript | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/wscript') 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): -- cgit