1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Do not pollute CPPFLAGS by PYTHON_CFLAGS.

This commit is contained in:
Witold Filipczyk 2007-02-05 20:31:53 +01:00 committed by Witold Filipczyk
parent e40f37f80c
commit 2970056976

View File

@ -847,6 +847,7 @@ if test "$enable_python" = "yes"; then
PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; print "-I%s -I%s" % (sysconfig.get_python_inc(), sysconfig.get_python_inc(plat_specific=True))'`"
PYTHON_LIBS="`$PYTHON -c 'from distutils import sysconfig; var = sysconfig.get_config_var; print "%s %s %s -L%s -lpython%s" % (var("LINKFORSHARED"), var("LIBS"), var("SYSLIBS"), var("LIBPL"), var("VERSION"))'`"
LIBS="$PYTHON_LIBS $LIBS"
OLDCPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
AC_TRY_LINK([#include <Python.h>],
[Py_Initialize();],
@ -858,6 +859,7 @@ if test "$enable_python" = "yes"; then
EL_CONFIG(CONFIG_SCRIPTING_PYTHON, [Python])
AC_SUBST(PYTHON_LIBS)
AC_SUBST(PYTHON_CFLAGS)
CPPFLAGS="$OLDCPPFLAGS"
cat <<EOF
***********************************************************************
The Python support is incomplete and not so well integrated to ELinks