From e2e589889ef5257f62cc3a32561142f625716ef0 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 2 May 2012 11:11:11 +0100 Subject: Make AM_CHECK_PYTHON_HEADERS compatible with Python 3 in the absence of python3-config --- m4/am-check-python-headers.m4 | 4 ++-- 1 file 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 -- cgit v1.2.3