summaryrefslogtreecommitdiff
path: root/packages/python/python-pygtk2
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-03-23 10:55:38 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-03-23 10:55:38 +0000
commit9ca244720e005906aa4292159689d81ea2dd5751 (patch)
tree481bbeac69aef28c32ff882d7e585db1c86bca8a /packages/python/python-pygtk2
parent97fb19ffc8d0dd9e0fe1d7dce49843dbe50cd04d (diff)
parent9840a3458d188fc6c1e44ae7760d9007117dfbea (diff)
merge of '5071c48a87d5b7fe1522ead80ed52698f40d90af'
and 'd92df12b19c3a9740bd99582f5b7044cc25f6316'
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"