Added gnome-xml-check.m4 for libxml detection, Daniel.

svn path=/trunk/; revision=288
This commit is contained in:
Daniel Veillard
1998-07-26 21:55:40 +00:00
parent c674046f4e
commit 3f79258dc3
3 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sun Jul 26 13:59:53 EDT 1998 Daniel Veillard <Daniel.Veillard@w3.org>
* Makefile.am (MACROS): Added gnome-xml-check.m4
* gnome-xml-check.m4: New file.
1998-07-24 Martin Baulig <martin@home-of-linux.org>
* gnome-libgtop-check.m4: No longer requiring

View File

@ -12,6 +12,7 @@ MACROS= \
gnome-undelfs.m4 \
gnome-vfs.m4 \
gnome-x-checks.m4 \
gnome-xml-check.m4 \
gnome.m4 \
linger.m4 \
need-declaration.m4

17
macros/gnome-xml-check.m4 Normal file
View File

@ -0,0 +1,17 @@
dnl
dnl Check for availability of the libxml library
dnl the XML parser uses libz if available too
dnl
AC_DEFUN([GNOME_XML_CHECK],[
dnl Checks for zlib library.
Z_LIBS=
AC_CHECK_LIB(z, inflate,
AC_CHECK_HEADER(zlib.h, Z_LIBS="-lz"))
AC_REQUIRE([GNOME_INIT_HOOK])
GNOME_XML_LIB=""
AC_CHECK_LIB(xml, xmlNewDoc, GNOME_XML_LIB="-lxml",
,-L$gnome_prefix $Z_LIBS)
AC_SUBST(GNOME_XML_LIB)
AC_PROVIDE([GNOME_XML_CHECK])
])