diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-12-11 11:01:47 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-10-12 15:36:28 +0200 |
commit | 473cdc70a8713fff5f6e18d0f9191b01fa0efaa6 (patch) | |
tree | 8eb9f157a0215df0d51582d5ce7fddc2ff43d728 | |
parent | ea1c57dcb8f75fe2f71a0842278cef1ee6bcf684 (diff) | |
download | ptxdist-473cdc70a8713fff5f6e18d0f9191b01fa0efaa6.tar.gz ptxdist-473cdc70a8713fff5f6e18d0f9191b01fa0efaa6.tar.xz |
configure.ac: ask python for the path to its Makefileptxdist-2010.08.2
The old check fails on multi-arch distributions because the Makefile is in
.../config-<gnu-triple>/ instead of .../config/
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
(cherry picked from commit c498184eac7928ddef6d3311cf53401900ea08e8)
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index e363d8721..74fb9c889 100644 --- a/configure.ac +++ b/configure.ac @@ -333,8 +333,8 @@ else fi AC_MSG_CHECKING(whether python development files are present) -PYTHON_CONFDIR=`$PYTHON -v -c "import distutils" 2>&1 | $EGREP distutils | $EGREP directory | $SED -ne "s/^[[^\/]]*\([[^[:space:]]]*\).*/\1/p"`/../config/ -if test -e "$PYTHON_CONFDIR/Makefile"; then +PYTHON_MAKEFILE=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_makefile_filename()" 2> /dev/null` +if test -e "$PYTHON_MAKEFILE"; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) |