s3: smbd: rename_internals_fsp() has to reopen the parent directory of the target...
[Samba.git] / lib / replace / configure
blobaf761854ef49fa6134cad849f26df60d65e3c772
1 #!/bin/sh
3 PREVPATH=$(dirname $0)
5 if [ -f $PREVPATH/../../buildtools/bin/waf ]; then
6 WAF=../../buildtools/bin/waf
7 elif [ -f $PREVPATH/buildtools/bin/waf ]; then
8 WAF=./buildtools/bin/waf
9 else
10 echo "replace: Unable to find waf"
11 exit 1
14 # using JOBS=1 gives maximum compatibility with
15 # systems like AIX which have broken threading in python
16 JOBS=1
17 export JOBS
19 # Make sure we don't have any library preloaded.
20 unset LD_PRELOAD
22 # Make sure we get stable hashes
23 PYTHONHASHSEED=1
24 export PYTHONHASHSEED
26 cd . || exit 1
27 $PYTHON $WAF configure "$@" || exit 1
28 cd $PREVPATH