replace: Look harder for waf.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 31 Oct 2010 17:19:19 +0000 (18:19 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 31 Oct 2010 17:24:04 +0000 (17:24 +0000)
lib/replace/configure

index 2d4aec724ef3f6f47c036f2f4689cbf676b72f58..6a9f8755112af7c1f7253912bbc0079655546725 100755 (executable)
@@ -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