blob: dfc3959a1f4e16b89378afcf09f70953707dd5eb [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From 0dce5a2abd9f42876616c35772a4d71c5399543c Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Sat, 17 Dec 2011 11:38:15 +0100
4Subject: [PATCH 1/4] configure: don't run python distutils to find STAGING_INCDIR/python, it is not safe for per-machine sysroots
5
6Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7---
8 m4/ax_python_devel.m4 | 7 +------
9 1 files changed, 1 insertions(+), 6 deletions(-)
10
11diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4
12index adbd207..dee70f6 100644
13--- a/m4/ax_python_devel.m4
14+++ b/m4/ax_python_devel.m4
15@@ -151,12 +151,7 @@ $ac_distutils_result])
16 #
17 AC_MSG_CHECKING([for Python include path])
18 if test -z "$PYTHON_CPPFLAGS"; then
19- python_path=`$PYTHON -c "import distutils.sysconfig; \
20- print (distutils.sysconfig.get_python_inc ());"`
21- if test -n "${python_path}"; then
22- python_path="-I$python_path"
23- fi
24- PYTHON_CPPFLAGS=$python_path
25+ PYTHON_CPPFLAGS="-I${STAGING_INCDIR}/${PYTHON_DIR}"
26 fi
27 AC_MSG_RESULT([$PYTHON_CPPFLAGS])
28 AC_SUBST([PYTHON_CPPFLAGS])
29--
301.7.2.5
31