summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-15 08:55:26 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-15 08:57:07 +1000
commit208eb7469d9208f2aa8bff5f07ef90be3f3d7b1d (patch)
tree2904634b21d00e2ca7bb46f37ccbd92c076afcc7 /buildtools/wafsamba
parent8693ae741c98b42a900d1f3b529326cca56297c9 (diff)
downloadsamba-208eb7469d9208f2aa8bff5f07ef90be3f3d7b1d.tar.gz
samba-208eb7469d9208f2aa8bff5f07ef90be3f3d7b1d.tar.bz2
samba-208eb7469d9208f2aa8bff5f07ef90be3f3d7b1d.zip
build: check that the user is not using an old /usr/bin/waf
some systems have /usr/bin/waf installed, and its quite old
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/wafsamba.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 386ed3c90f..de244e18fe 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -1,7 +1,7 @@
# a waf tool to add autoconf-like macros to the configure section
# and for SAMBA_ macros for building libraries, binaries etc
-import Build, os, Options, Task, Utils, cc, TaskGen, fnmatch, re, shutil, Logs
+import Build, os, Options, Task, Utils, cc, TaskGen, fnmatch, re, shutil, Logs, Constants
from Configure import conf
from Logs import debug
from samba_utils import SUBST_VARS_RECURSIVE
@@ -35,6 +35,16 @@ LIB_PATH="shared"
os.putenv('PYTHONUNBUFFERED', '1')
+
+if Constants.HEXVERSION < 0x105016:
+ Logs.error('''
+Please use the version of waf that comes with Samba, not
+a system installed version. See http://wiki.samba.org/index.php/Waf
+for details
+''')
+ sys.exit(1)
+
+
@conf
def SAMBA_BUILD_ENV(conf):
'''create the samba build environment'''