configure problem (was: dbus-python 0.82.1)

Eyal Ben David Eyal.BenDavid at expand.com
Thu Jul 12 05:28:54 PDT 2007


> I have a configure script problem when trying to build this version (I
> had it in 0.82.0 too)
> 
> I build on CentOS3 against python-2.4.4 and dbus-1.0.2 (built locally)
> I could fix the build problem when using the configure script from
> 0.81.x
> 

I think I wasn't clear enough :-)

Here is the error message:

checking for headers required to compile python extensions... not found
configure: error: could not find Python headers

Here is the patch (reverting back to 0.81):

-----------------------

diff -ru dbus-python-0.82.0/configure dbus-python-0.82.0-configure-
fixed/configure
--- dbus-python-0.82.0/configure	2007-06-19 19:50:06.000000000 +0300
+++ dbus-python-0.82.0-configure-fixed/configure	2007-07-03
07:59:27.000000000 +0300
@@ -9711,7 +9711,10 @@
 echo $ECHO_N "checking for headers required to compile python
extensions... $ECHO_C" >&6; }
 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
-PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
+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
 
 save_CPPFLAGS="$CPPFLAGS"
 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"

-----------------------


More information about the dbus mailing list