From a676f8056b0a0ac024e811ce0acb31df0678c029 Mon Sep 17 00:00:00 2001 From: Luotao Fu Date: Fri, 4 May 2007 15:20:40 +0000 Subject: added checking for extra python devel files due to stupidness in SuSE package management git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7149 33e552b5-05e3-0310-8538-816dae2090ed --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a28590060..c220444e8 100644 --- a/configure.ac +++ b/configure.ac @@ -278,6 +278,16 @@ else AC_MSG_ERROR(Please install the Python distutils package) 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 + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) + AC_MSG_ERROR([some python development files could not be found, you are + likely using suse or redhat system as host. In this case + please install the python-devel packages]) +fi dnl Check for patch AC_ARG_WITH(patch, AC_HELP_STRING( -- cgit v1.2.3