summaryrefslogtreecommitdiff
path: root/packages/python/python-pygtk2
diff options
context:
space:
mode:
authorShane Volpe <shanevolpe@gmail.com>2007-04-07 20:23:43 +0000
committerShane Volpe <shanevolpe@gmail.com>2007-04-07 20:23:43 +0000
commit3a5e5c11ca9e5d3686fce546e33eacc62f5e7dcd (patch)
tree4f25aacf8558a773fad14e0018d4afb9f560237f /packages/python/python-pygtk2
parent1ff6665ead8253bb6adde2afeb004f9ef625f4f4 (diff)
parent2effa2e0213c0cecaf6d3a0ca7390a288ebc9908 (diff)
merge of '59b19c7d48e754418caf1f4214b1ce53d2cca5c4'
and 'f4a044e0ef8b886ef1bdc74ae09f12874ddf7130'
Diffstat (limited to 'packages/python/python-pygtk2')
-rw-r--r--packages/python/python-pygtk2/acinclude.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/python/python-pygtk2/acinclude.m4 b/packages/python/python-pygtk2/acinclude.m4
index eec3758afc..53518fb2eb 100644
--- a/packages/python/python-pygtk2/acinclude.m4
+++ b/packages/python/python-pygtk2/acinclude.m4
@@ -43,12 +43,18 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
[AC_REQUIRE([AM_PATH_PYTHON])
AC_MSG_CHECKING(for headers required to compile python extensions)
dnl deduce PYTHON_INCLUDES
+AC_ARG_WITH(python-includes,
+ [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval)
+if test x$py_exec_prefix != x; then
+PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}"
+else
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
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"