aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>1998-07-27 05:55:40 +0800
committerDaniel Veillard <veillard@src.gnome.org>1998-07-27 05:55:40 +0800
commit3f79258dc31434819688e61f1ab3a8388f8eda11 (patch)
tree021499fa6d7f27b7af868f04d9af21c07df924ea
parentc674046f4e2a598f9b60c83e4b2789d8905e9b45 (diff)
downloadgsoc2013-evolution-3f79258dc31434819688e61f1ab3a8388f8eda11.tar
gsoc2013-evolution-3f79258dc31434819688e61f1ab3a8388f8eda11.tar.gz
gsoc2013-evolution-3f79258dc31434819688e61f1ab3a8388f8eda11.tar.bz2
gsoc2013-evolution-3f79258dc31434819688e61f1ab3a8388f8eda11.tar.lz
gsoc2013-evolution-3f79258dc31434819688e61f1ab3a8388f8eda11.tar.xz
gsoc2013-evolution-3f79258dc31434819688e61f1ab3a8388f8eda11.tar.zst
gsoc2013-evolution-3f79258dc31434819688e61f1ab3a8388f8eda11.zip
Added gnome-xml-check.m4 for libxml detection, Daniel.
svn path=/trunk/; revision=288
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/Makefile.am1
-rw-r--r--macros/gnome-xml-check.m417
3 files changed, 23 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 4160dedd19..fa0bbc3b4f 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -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
diff --git a/macros/Makefile.am b/macros/Makefile.am
index 137b868307..e2a4980a37 100644
--- a/macros/Makefile.am
+++ b/macros/Makefile.am
@@ -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
diff --git a/macros/gnome-xml-check.m4 b/macros/gnome-xml-check.m4
new file mode 100644
index 0000000000..6649890fb6
--- /dev/null
+++ b/macros/gnome-xml-check.m4
@@ -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])
+])