Commit d4fc743d authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

acinclude.m4: Use pythonX.Y-config to detect the include path for the python...

acinclude.m4: Use pythonX.Y-config to detect the include path for the python version and use the old values as fallba...

Original commit message from CVS:
* acinclude.m4:
Use pythonX.Y-config to detect the include path for the python
version and use the old values as fallback if pythonX.Y-config
doesn't exist.
parent 7e4e9e5a
2007-11-29 Sebastian Dröge <slomo@circular-chaos.org>
* acinclude.m4:
Use pythonX.Y-config to detect the include path for the python
version and use the old values as fallback if pythonX.Y-config
doesn't exist.
2007-11-28 Edward Hervey <bilboed@bilboed.com>
* configure.ac:
......
......@@ -45,9 +45,13 @@ 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}"
if $PYTHON-config --help 2>/dev/null; then
PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
else
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment