ctdb: Remove an unnecessary cast
[vlendec/samba-autobuild/.git] / ctdb / configure
index 5357de415987db927a615c764732e3e5661c46b9..48b786b1612d3e9f53e421c60a01fb1c6a383260 100755 (executable)
@@ -2,13 +2,21 @@
 
 PREVPATH=`dirname $0`
 
-WAF=../buildtools/bin/waf
+WAF=buildtools/bin/waf
+[ -x "$WAF" ] || WAF=../buildtools/bin/waf
 
 # using JOBS=1 gives maximum compatibility with
 # systems like AIX which have broken threading in python
 JOBS=1
 export JOBS
 
+# Make sure we don't have any library preloaded.
+unset LD_PRELOAD
+
+# Make sure we get stable hashes
+PYTHONHASHSEED=1
+export PYTHONHASHSEED
+
 cd . || exit 1
-${PYTHON:=python} $WAF configure "$@" || exit 1
+$PYTHON $WAF configure "$@" || exit 1
 cd $PREVPATH