aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2012-12-11 11:32:17 -0500
committerMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2012-12-11 11:32:17 -0500
commit59a0f715f324fb45001364a5876a6fd0b51a107a (patch)
tree522fb81e2e488ccbc1dcaa0e61c902841ff9d771
parent8aad2505fc5e0e92fbf704bee635d5672f071eb5 (diff)
downloadlibayatana-appindicator-59a0f715f324fb45001364a5876a6fd0b51a107a.tar.gz
libayatana-appindicator-59a0f715f324fb45001364a5876a6fd0b51a107a.tar.bz2
libayatana-appindicator-59a0f715f324fb45001364a5876a6fd0b51a107a.zip
Properly retrieve the path to python headers.
-rw-r--r--acinclude.m47
1 files changed, 1 insertions, 6 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 3e98bd3..a6b9ebe 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -228,12 +228,7 @@ 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
-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
+PYTHON_INCLUDES="$PYTHON_INCLUDES `python-config --includes`"
AC_SUBST(PYTHON_INCLUDES)
dnl check if the headers exist:
save_CPPFLAGS="$CPPFLAGS"