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
1 changed files with 4 additions and 0 deletions

4
configure vendored
View File

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