diff options
Diffstat (limited to 'acx_python.m4')
-rw-r--r-- | acx_python.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/acx_python.m4 b/acx_python.m4 index 6fa925af1684..99ffa254a8e4 100644 --- a/acx_python.m4 +++ b/acx_python.m4 @@ -164,8 +164,11 @@ $ac_distutils_result]) AC_MSG_CHECKING([consistency of all components of python development environment]) AC_LANG_PUSH([C]) # save current global flags - LIBS="$ac_save_LIBS $PYTHON_LDFLAGS" - CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" + ac_save_LIBS="$LIBS" + ac_save_CPPFLAGS="$CPPFLAGS" + + LIBS="$LIBS $PYTHON_LDFLAGS" + CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" AC_TRY_LINK([ #include <Python.h> ],[ |