mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
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.
This commit is contained in:
parent
7e4e9e5a00
commit
d4fc743d06
2 changed files with 14 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
2007-11-28 Edward Hervey <bilboed@bilboed.com>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
10
acinclude.m4
10
acinclude.m4
|
@ -45,9 +45,13 @@ AC_MSG_CHECKING(for headers required to compile python extensions)
|
||||||
dnl deduce PYTHON_INCLUDES
|
dnl deduce PYTHON_INCLUDES
|
||||||
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
||||||
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
||||||
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
|
if $PYTHON-config --help 2>/dev/null; then
|
||||||
if test "$py_prefix" != "$py_exec_prefix"; then
|
PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
|
||||||
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
|
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
|
fi
|
||||||
AC_SUBST(PYTHON_INCLUDES)
|
AC_SUBST(PYTHON_INCLUDES)
|
||||||
dnl check if the headers exist:
|
dnl check if the headers exist:
|
||||||
|
|
Loading…
Reference in a new issue