summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-08 17:35:05 +0200
committerAndrew Bartlett <abartlet@samba.org>2011-05-08 17:36:25 +0200
commitd1df1cb714289b90dc173a72e488773960952402 (patch)
treebca48c2a0b393163274c6cbe61d0d8397ca0ef3b
parentc596d85afd41c2512ef77a10a9d6b40f4836c386 (diff)
downloadsamba-d1df1cb714289b90dc173a72e488773960952402.tar.gz
samba-d1df1cb714289b90dc173a72e488773960952402.tar.bz2
samba-d1df1cb714289b90dc173a72e488773960952402.zip
build: Allow the C code to know if this is a waf build
This allows addition of functionality that can't be handled (for example, due to dependencies) in the autoconf build. Andrew Bartlett
-rw-r--r--source3/wscript1
-rwxr-xr-xwscript1
2 files changed, 2 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 583e97af0f..4d30592d2f 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -78,6 +78,7 @@ def configure(conf):
if not conf.env.toplevel_build:
version = samba_version.load_version(env=conf.env)
conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)
+ conf.DEFINE('_SAMBA_WAF_BUILD_', version.MAJOR)
conf.DEFINE('_SAMBA_BUILD_', version.MAJOR, add_to_cflags=True)
conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)
diff --git a/wscript b/wscript
index 950442792c..04c4e9140b 100755
--- a/wscript
+++ b/wscript
@@ -60,6 +60,7 @@ def configure(conf):
version = samba_version.load_version(env=conf.env)
conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)
+ conf.DEFINE('_SAMBA_WAF_BUILD_', version.MAJOR)
conf.DEFINE('_SAMBA_BUILD_', version.MAJOR, add_to_cflags=True)
conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)