# HG changeset patch # User John W. Eaton # Date 1251402591 14400 # Node ID 8dc1531e214922d9d49b63b1d1dd8e62c549a253 # Parent bdcfb756d721d173e387cebc1724237f656e98da correctly save and restore LIBS and CPPFLAGS when checking for GraphicsMagick++ diff -r bdcfb756d721 -r 8dc1531e2149 ChangeLog --- a/ChangeLog Thu Aug 27 15:43:09 2009 -0400 +++ b/ChangeLog Thu Aug 27 15:49:51 2009 -0400 @@ -1,3 +1,8 @@ +2009-08-27 John W. Eaton + + * configure.in: Properly save and restore CPPFLAGS and LIBS when + checking for GraphicsMagick++. Don't temporarily change LDFLAGS. + 2009-08-27 Jaroslav Hajek * aclocal.m4 (m4_ifblank, m4_ifnblank): State FSF copyright and markup diff -r bdcfb756d721 -r 8dc1531e2149 configure.in --- a/configure.in Thu Aug 27 15:43:09 2009 -0400 +++ b/configure.in Thu Aug 27 15:49:51 2009 -0400 @@ -585,11 +585,9 @@ warn_magick="GraphicsMagick++ library fails tests. The imread function for reading image files will not be fully functional." save_CPPFLAGS="$CPPFLAGS" - save_LDFLAGS="$LDFLAGS" save_LIBS="$LIBS" - CPPFLAGS="$CPPFLAGS $MAGICK_CPPFLAGS" - LDFLAGS="$LIBS $MAGICK_LDFLAGS" - LIBS="$LIBS $MAGICK_LIBS" + CPPFLAGS="$MAGICK_CPPFLAGS $CPPFLAGS" + LIBS="$MAGICK_LDFLAGS $MAGICK_LIBS $LIBS" AC_LANG_PUSH(C++) AC_CHECK_HEADER([Magick++.h], [ AC_MSG_CHECKING([for Magick::ColorRGB in Magick++.h]) @@ -602,7 +600,6 @@ ]) AC_LANG_POP(C++) CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ])