GENTOO_PATH_PYTHON: be resistant against pre-exported PORTAGE_PYTHON
authorFabian Groffen <grobian@gentoo.org>
Mon, 13 Dec 2010 21:36:26 +0000 (22:36 +0100)
committerFabian Groffen <grobian@gentoo.org>
Mon, 13 Dec 2010 21:36:26 +0000 (22:36 +0100)
acinclude.m4

index 07714f3a10c20186cad4f79e2779a75995af1504..47c537fc99440115f0d9fa5786d2b791f81bd1f0 100644 (file)
@@ -16,7 +16,9 @@ dnl GENTOO_PATH_PYTHON([minimum-version], [path])
 dnl author: Fabian Groffen <grobian a gentoo.org>
 AC_DEFUN([GENTOO_PATH_PYTHON],
 [
-  AC_PATH_PROG([PORTAGE_PYTHON], [python], no, $2)
+  AC_PATH_PROG([HERE_PORTAGE_PYTHON], [python], no, $2)
+  dnl Portage's ebuild.sh defines PORTAGE_PYTHON itself now :(
+  PORTAGE_PYTHON="$HERE_PORTAGE_PYTHON"
 
   dnl is is there at all?
   if test "$PORTAGE_PYTHON" = "no" ; then