changed libxml check

Original commit message from CVS:
changed libxml check
This commit is contained in:
Thomas Vander Stichele 2001-12-07 17:03:44 +00:00
parent 2b58901080
commit db9b930636

View file

@ -251,15 +251,17 @@ AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_CFLAGS)
dnl Check for libxml dnl Check for libxml
AC_PATH_PROG(XML_CONFIG, xml-config, no) dnl Thomas tries to convert this to pkg-config
PKG_CHECK_MODULES(XML, libxml >= 1.8.1, XML_CONFIG=yes, XML_CONFIG=no)
dnl AC_PATH_PROG(XML_CONFIG, xml-config, no)
if test x$XML_CONFIG = xno; then if test x$XML_CONFIG = xno; then
AC_MSG_ERROR(Couldn't find xml-config) AC_MSG_ERROR(Couldn't find xml-config)
fi fi
XML_LIBS="`xml-config --libs`" dnl XML_LIBS="`xml-config --libs`"
XML_CFLAGS="`xml-config --cflags`" dnl XML_CFLAGS="`xml-config --cflags`"
AC_CHECK_LIB(xml, xmlDocGetRootElement, :, dnl AC_CHECK_LIB(xml, xmlDocGetRootElement, :,
[ AC_MSG_ERROR(Need version 1.8.1 or better of libxml) ], dnl [ AC_MSG_ERROR(Need version 1.8.1 or better of libxml) ],
$XML_LIBS) dnl $XML_LIBS)
AC_SUBST(XML_LIBS) AC_SUBST(XML_LIBS)
AC_SUBST(XML_CFLAGS) AC_SUBST(XML_CFLAGS)