build: cope with spaces in options passed to ./configure
[samba.git] / buildtools / scripts / configure.waf
index a6367e7314173efbc35d20381b796c521de5a2f4..342f4c2e46e0676356504a6c491f715589cd177f 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+PREVPATH=`dirname $0`
 
 WAF=BUILDTOOLS/bin/waf
 
@@ -8,4 +9,6 @@ WAF=BUILDTOOLS/bin/waf
 JOBS=1
 export JOBS
 
-$WAF configure $*
+cd BUILDPATH
+$WAF configure "$@"
+cd $PREVPATH