[pygi] Search for python-config-${VERSION} when python${VERSION}-config is not found
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygi] Search for python-config-${VERSION} when python${VERSION}-config is not found
- Date: Sat, 14 Nov 2009 20:43:55 +0000 (UTC)
commit e604a89e9dc1a79687ef5fb94af7a2182be07dfb
Author: Alex Dedul <rotmer gmail com>
Date: Sat Nov 14 21:39:15 2009 +0100
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>
configure.ac | 7 +++++--
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]