[anjuta/gnome-3-4] configure: Detect python more robust
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-3-4] configure: Detect python more robust
- Date: Mon, 21 May 2012 20:20:42 +0000 (UTC)
commit 8e93f752df0eb387891105965bbc164032f7d694
Author: Johannes Schmid <jhs gnome org>
Date: Mon May 21 22:18:48 2012 +0200
configure: Detect python more robust
Some distributions (like Fedora) rename python-config to something like
python2.7-config which we didn't consider yet and which could cause
disabled python support even if python is available. We now also
show the status of python support in the summary.
configure.ac | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1e0d8f3..defe2d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -302,8 +302,14 @@ if test x$have_python = xyes; then
PYTHON_LIBS=`$PYTHON-config --libs`
AC_SUBST(PYTHON_CFLAGS)
AC_SUBST(PYTHON_LIBS)
+ elif test -x $PYTHON$PYTHON_VERSION-config; then
+ PYTHON_CFLAGS=`$PYTHON$PYTHON_VERSION-config --cflags`
+ PYTHON_LIBS=`$PYTHON$PYTHON_VERSION-config --libs`
+ AC_SUBST(PYTHON_CFLAGS)
+ AC_SUBST(PYTHON_LIBS)
else
have_python="no"
+ echo "$PYTHON-config or $PYTHON$PYTHON_VERSION-config not found - disabling python"
fi
fi
@@ -930,6 +936,12 @@ else
echo "Building class inheritance plugin: .....................NO"
echo " Requires graphviz (>= 2.6.0); http://graphviz.org"
fi
+if [ test x$have_python = xyes]; then
+ echo "Building python plugin loaeder: ........................YES"
+else
+ echo "Building python plugin loaeder: ........................NO"
+ echo " Requires python"
+fi
echo "-------------------------------------------------------------------"
echo "AM_CFLAGS = $AM_CFLAGS"
echo "AM_CXXFLAGS = $AM_CXXFLAGS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]