summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-31 18:19:19 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-10-31 17:24:04 +0000
commitc402e75be930a47f4e1c5663cb0041791fd47bcf (patch)
tree7cf6b2df5e53a5f08e24c2592fd91b0bebdbbec5 /lib
parentc3fa203435b82d14805024db8e4a3660859cbdf0 (diff)
downloadsamba-c402e75be930a47f4e1c5663cb0041791fd47bcf.tar.gz
samba-c402e75be930a47f4e1c5663cb0041791fd47bcf.tar.bz2
samba-c402e75be930a47f4e1c5663cb0041791fd47bcf.zip
replace: Look harder for waf.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/replace/configure9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/replace/configure b/lib/replace/configure
index 2d4aec724e..6a9f875511 100755
--- a/lib/replace/configure
+++ b/lib/replace/configure
@@ -2,7 +2,14 @@
PREVPATH=`dirname $0`
-WAF=../../buildtools/bin/waf
+if [ -f $PREVPATH/../../buildtools/bin/waf ]; then
+ WAF=../../buildtools/bin/waf
+elif [ -f $PREVPATH/buildtools/bin/waf ]; then
+ WAF=./buildtools/bin/waf
+else
+ echo "replace: Unable to find waf"
+ exit 1
+fi
# using JOBS=1 gives maximum compatibility with
# systems like AIX which have broken threading in python