1#!/bin/sh 2 3PREVPATH=`dirname $0` 4 5if [ -f $PREVPATH/../../buildtools/bin/waf ]; then 6 WAF=../../buildtools/bin/waf 7elif [ -f $PREVPATH/buildtools/bin/waf ]; then 8 WAF=./buildtools/bin/waf 9else 10 echo "replace: Unable to find waf" 11 exit 1 12fi 13 14# using JOBS=1 gives maximum compatibility with 15# systems like AIX which have broken threading in python 16JOBS=1 17export JOBS 18 19cd . || exit 1 20$PYTHON $WAF configure "$@" || exit 1 21cd $PREVPATH 22