Fix PYTHON_INCLUDES

This commit is contained in:
Yevgen Muntyan 2005-07-25 11:20:25 +00:00
parent eea461fff5
commit e1d239bca6
2 changed files with 5 additions and 4 deletions

View File

@ -70,11 +70,12 @@ AC_DEFUN([_AC_PYTHON_DEVEL],[
python_found=no
python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
for i in "$python_path/include/python$PYTHON_VERSION/" "$python_path/include/python/" ; do
if test -e "$python_path/Python.h"; then
if test -e "$i/Python.h"; then
python_found=yes
AC_MSG_CHECKING([for python include path])
AC_MSG_RESULT([$python_path])
AC_SUBST([PYTHON_INCLUDES],[-I$python_path])
AC_MSG_RESULT([$i])
PYTHON_INCLUDES="-I$i"
AC_SUBST([PYTHON_INCLUDES],[$PYTHON_INCLUDES])
break
fi
done

View File

@ -46,7 +46,7 @@
</run>
<configurations>
<debug>
<configargs>--enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode</configargs>
<configargs>--enable-debug=full --enable-all-gcc-warnings=fatal --enable-developer-mode --disable-moo-module</configargs>
<builddir>build/debug</builddir>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>