[xml] AM_PATH_XML finding libxml1 instead of libxml2



I'm trying to use the libxml.m4 macro that comes with libxml2, but it
keeps picking up the older version of libxml.  Are libxml1 & libxml2
supposed to be parallel-installable?


Here are the versions I have installed:
$ rpm -q libxml-devel libxml2-devel
libxml-devel-1.8.17-8
libxml2-devel-2.5.4-1


I added this to configure.ac:
XML_VERSION=2.4.0
AM_PATH_XML($XML_VERSION,,AC_MSG_ERROR([*** LibXML version $XML_VERSION
not found!]))

CFLAGS="$CFLAGS $XML_CFLAGS"
LIBS="$LIBS $XML_LIBS"



When I run ./configure, I get this:
checking for xml-config... /usr/bin/xml-config
checking for libxml - version >= 2.4.0... no
*** Could not run libxml test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding LIBXML or finding the wrong
*** version of LIBXML. If it is not finding LIBXML, you'll need to set
your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to
point
*** to the installed location  Also, make sure you have run ldconfig if
that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it,
although
*** you may also be able to get things to work by modifying
LD_LIBRARY_PATH
configure: error: *** LibXML version 2.4.0 not found!


If I run ./configure --disable-xmltest, it shows that it is getting the
older version of libxml:
checking for xml-config... /usr/bin/xml-config
checking for libxml - version >= 2.4.0... yes (version 1.8.17)


-Mark Ivey-




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]