mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
5ddff307b4
This avoids creating a mini-configure in the configure script.
Users wishing to use python2 to build need to specify PYTHON=
to both ./configure and make
After we merged the python3 change, it became clear that relying on systems prefixing
the correct python just causes trouble and make debugging harder, so only use $PYTHON
for the override, not the default case
This essentially reverts a660b7fb8e
but
leaves the files more consistent.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
22 lines
432 B
Bash
Executable File
22 lines
432 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PREVPATH=`dirname $0`
|
|
|
|
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
|
|
JOBS=1
|
|
export JOBS
|
|
|
|
cd . || exit 1
|
|
$PYTHON $WAF configure "$@" || exit 1
|
|
cd $PREVPATH
|