blob: f5e25ea53259ddf9e9434b646fdb181b408d0f0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff -urNad gnome-python-extras-2.14.3~/acinclude.m4 gnome-python-extras-2.14.3/acinclude.m4
--- gnome-python-extras-2.14.3~/acinclude.m4 2007-01-20 15:50:13.000000000 +0100
+++ gnome-python-extras-2.14.3/acinclude.m4 2007-05-21 16:39:51.000000000 +0200
@@ -45,10 +45,14 @@
dnl deduce PYTHON_INCLUDES
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+if test -x "$PYTHON-config"; then
+PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
+else
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
fi
+fi
AC_SUBST(PYTHON_INCLUDES)
dnl check if the headers exist:
save_CPPFLAGS="$CPPFLAGS"
|