Skip to content

Commit

Permalink
acinlude.m4: python3 compatible print
Browse files Browse the repository at this point in the history
Python3 and python2 compatible print call in configure script.
  • Loading branch information
PolarNick239 committed Oct 4, 2015
1 parent f1802ad commit b28c530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acinclude.m4
Expand Up @@ -483,8 +483,8 @@ 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"`
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}"
Expand Down

0 comments on commit b28c530

Please sign in to comment.