summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Dedul <rotmer@gmail.com>2009-11-14 21:39:15 +0100
committerSimon van der Linden <svdlinden@src.gnome.org>2009-11-14 21:40:12 +0100
commite604a89e9dc1a79687ef5fb94af7a2182be07dfb (patch)
tree98b80e8312473e54054e505370fef925ef315b07
parent4a887cfabb326cb99dc65073d592c03f59e2f141 (diff)
downloadpygi-e604a89e9dc1a79687ef5fb94af7a2182be07dfb.tar.gz
pygi-e604a89e9dc1a79687ef5fb94af7a2182be07dfb.tar.xz
pygi-e604a89e9dc1a79687ef5fb94af7a2182be07dfb.zip
Search for python-config-${VERSION} when python${VERSION}-config is not found
On Gentoo, notably, the config tool is named python-config-${VERSION}, while on Fedora and Ubuntu, it is named python${VERSION}-config. Signed-off-by: Simon van der Linden <svdlinden@src.gnome.org>
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 42e25aa..6658869 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,9 +18,12 @@ AM_PROG_LIBTOOL
# Python
AM_PATH_PYTHON(2.5.2)
-AC_PATH_TOOL(PYTHON_CONFIG, "/python${PYTHON_VERSION}-config")
+AC_PATH_TOOL(PYTHON_CONFIG, "python${PYTHON_VERSION}-config")
if test -z "$PYTHON_CONFIG"; then
- AC_MSG_ERROR(Python development tools not found)
+ AC_PATH_TOOL(PYTHON_CONFIG, "python-config-${PYTHON_VERSION}")
+ if test -z "$PYTHON_CONFIG"; then
+ AC_MSG_ERROR(Python development tools not found)
+ fi
fi
PYTHON_INCLUDES=`$PYTHON_CONFIG --includes`
AC_SUBST(PYTHON_INCLUDES)