summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-02 11:11:11 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-02 11:11:11 +0100
commite2e589889ef5257f62cc3a32561142f625716ef0 (patch)
tree2e42b6ebd3ba70a6da5df87d983321d16aa519b9
parent2f59718a4bf22cbea28e0c7b2f880f86d4497a7a (diff)
downloaddbus-python-e2e589889ef5257f62cc3a32561142f625716ef0.tar.gz
Make AM_CHECK_PYTHON_HEADERS compatible with Python 3 in the absence of python3-config
-rw-r--r--m4/am-check-python-headers.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/am-check-python-headers.m4 b/m4/am-check-python-headers.m4
index 513abae..b1aaf5a 100644
--- a/m4/am-check-python-headers.m4
+++ b/m4/am-check-python-headers.m4
@@ -16,8 +16,8 @@ else
AC_MSG_RESULT($PYTHON_INCLUDES)
else
AC_MSG_RESULT([failed, will try another way])
- py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
- py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+ py_prefix=`$PYTHON -c "import sys; print(sys.prefix)"`
+ py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
AC_MSG_CHECKING(for Python headers in $py_prefix and $py_exec_prefix)
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then