File 0001-Fix-detection-of-Python-3.patch of Package lash
Simpler python detection patch Simon Lees sflees@suse.de
---
acinclude.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: lash-0.5.4/acinclude.m4
===================================================================
--- lash-0.5.4.orig/acinclude.m4
+++ lash-0.5.4/acinclude.m4
@@ -173,12 +173,7 @@ 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"`
-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
+PYTHON_INCLUDES=`pkg-config --cflags python3`
AC_SUBST(PYTHON_INCLUDES)
dnl check if the headers exist:
save_CPPFLAGS="$CPPFLAGS"