From: Andy Wingo Date: Wed, 25 Jul 2001 20:49:58 +0000 (+0000) Subject: Fixed issue where AC_CHECK_LIB was polluting LIBS with -lxml. X-Git-Tag: BRANCH-EVENTS1-ROOT~106 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4078620947fa650f7c5009b202f218a7937798b5;p=platform%2Fupstream%2Fgstreamer.git Fixed issue where AC_CHECK_LIB was polluting LIBS with -lxml. Original commit message from CVS: Fixed issue where AC_CHECK_LIB was polluting LIBS with -lxml. --- diff --git a/configure.base b/configure.base index 5e491e8..357e53a 100644 --- a/configure.base +++ b/configure.base @@ -208,11 +208,17 @@ AC_PATH_PROG(XML_CONFIG, xml-config, no) if test x$XML_CONFIG = xno; then AC_MSG_ERROR(Couldn't find xml-config) fi +xml_save_LIBS=$LIBS +xml_save_CFLAGS=$CFLAGS XML_LIBS=`xml-config --libs` XML_CFLAGS=`xml-config --cflags` +LIBS=$XML_LIBS +CFLAGS=$XML_CFLAGS AC_CHECK_LIB(xml, xmlDocGetRootElement, , [ AC_MSG_ERROR(Need version 1.8.1 or better of libxml) ], $XML_LIBS) +LIBS=$xml_save_LIBS +CFLAGS=$xml_save_CFLAGS AC_SUBST(XML_LIBS) AC_SUBST(XML_CFLAGS) CORE_LIBS="$CORE_LIBS $XML_LIBS"