From: Christian Dywan Date: Sat, 26 Feb 2011 15:57:58 +0000 (+0100) Subject: Make 'configure' script look for python2 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=312821b016e53e9d0920e7ddf1a053f8cfcbbae3;p=midori Make 'configure' script look for python2 Fixes: https://bugs.launchpad.net/midori/+bug/715264 --- diff --git a/configure b/configure index 1f801a4a..f38dd4a4 100755 --- a/configure +++ b/configure @@ -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.