[Xfce4-commits] <midori:master> Make 'configure' script look for python2

Christian Dywan noreply at xfce.org
Sat Feb 26 17:00:01 CET 2011


Updating branch refs/heads/master
         to 312821b016e53e9d0920e7ddf1a053f8cfcbbae3 (commit)
       from 5c8a0c53c04cf03c2a3d07574c8474acc4040bf4 (commit)

commit 312821b016e53e9d0920e7ddf1a053f8cfcbbae3
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Feb 26 16:57:58 2011 +0100

    Make 'configure' script look for python2
    
    Fixes: https://bugs.launchpad.net/midori/+bug/715264

 configure |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 1f801a4..f38dd4a 100755
--- a/configure
+++ b/configure
@@ -38,6 +38,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
 	printf "Checking for Python\t\t\t:  "
@@ -85,6 +88,7 @@ checkWAF()
 	else
 	  printf $GREEN"$WAF"$NORMAL"\n"
 	fi
+	WAF="$PYTHON $WAF"
 }
 
 # Generates a Makefile. Requires that $WAF is set.



More information about the Xfce4-commits mailing list