Make 'configure' script look for python2

Fixes: https://bugs.launchpad.net/midori/+bug/715264
This commit is contained in:
Christian Dywan 2011-02-26 16:57:58 +01:00
parent 5c8a0c53c0
commit 312821b016

4
configure vendored
View file

@ -37,6 +37,9 @@ cd $CUR_DIR
# #
checkPython() checkPython()
{ {
if [ -z "$PYTHON" ] ; then
PYTHON=`which python2 2>/dev/null`
fi
if [ -z "$PYTHON" ] ; then if [ -z "$PYTHON" ] ; then
PYTHON=`which python 2>/dev/null` PYTHON=`which python 2>/dev/null`
fi fi
@ -85,6 +88,7 @@ checkWAF()
else else
printf $GREEN"$WAF"$NORMAL"\n" printf $GREEN"$WAF"$NORMAL"\n"
fi fi
WAF="$PYTHON $WAF"
} }
# Generates a Makefile. Requires that $WAF is set. # Generates a Makefile. Requires that $WAF is set.