aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-01-24 02:29:06 +0800
committerMartin Baulig <martin@src.gnome.org>1999-01-24 02:29:06 +0800
commit95a12547997d704878ad80f8c4eecabf956acd19 (patch)
treef2bcd2c3ee64b1e0b9a58402953d55ca59072464
parent2f77d8f40d4b67bf3e993d946bfb1153888d30c7 (diff)
downloadgsoc2013-evolution-95a12547997d704878ad80f8c4eecabf956acd19.tar
gsoc2013-evolution-95a12547997d704878ad80f8c4eecabf956acd19.tar.gz
gsoc2013-evolution-95a12547997d704878ad80f8c4eecabf956acd19.tar.bz2
gsoc2013-evolution-95a12547997d704878ad80f8c4eecabf956acd19.tar.lz
gsoc2013-evolution-95a12547997d704878ad80f8c4eecabf956acd19.tar.xz
gsoc2013-evolution-95a12547997d704878ad80f8c4eecabf956acd19.tar.zst
gsoc2013-evolution-95a12547997d704878ad80f8c4eecabf956acd19.zip
New macro. This checks whether you have the LibGTop documentation
1999-01-23 Martin Baulig <martin@home-of-linux.org> * gnome-libgtop-checks.m4 (GNOME_LIBGTOP_DOCU): New macro. This checks whether you have the LibGTop documentation installed and defines `HAVE_LIBGTOP_DOCU' if appropriate. Also provides automake conditional. svn path=/trunk/; revision=618
-rw-r--r--macros/ChangeLog7
-rw-r--r--macros/gnome-libgtop-check.m427
2 files changed, 34 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index f660ba698e..546d0dd9f4 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,10 @@
+1999-01-23 Martin Baulig <martin@home-of-linux.org>
+
+ * gnome-libgtop-checks.m4 (GNOME_LIBGTOP_DOCU): New macro. This
+ checks whether you have the LibGTop documentation installed and
+ defines `HAVE_LIBGTOP_DOCU' if appropriate. Also provides automake
+ conditional.
+
1999-01-20 Martin Baulig <martin@home-of-linux.org>
* acinclude.m4 (ac_result): Unset CATOBJEXT so
diff --git a/macros/gnome-libgtop-check.m4 b/macros/gnome-libgtop-check.m4
index e3198498e6..610119aca9 100644
--- a/macros/gnome-libgtop-check.m4
+++ b/macros/gnome-libgtop-check.m4
@@ -153,3 +153,30 @@ AC_DEFUN([GNOME_LIBGTOP_HOOK],
AC_DEFUN([GNOME_INIT_LIBGTOP],[
GNOME_LIBGTOP_HOOK($1,[ifelse([$3], [], :, [$3])],$2)
])
+
+dnl
+dnl GNOME_LIBGTOP_DOCU
+dnl
+dnl checks whether the documentation of LibGTop is installed
+dnl
+
+AC_DEFUN([GNOME_LIBGTOP_DOCU],
+[
+ AC_REQUIRE([GNOME_LIBGTOP_HOOK])
+
+ helpdir="$LIBGTOP_DATADIR/gnome/help/libgtop"
+
+ AC_MSG_CHECKING(whether you have the LibGTop Documentation)
+
+ if test -f "$helpdir/C/topic.dat" ; then
+ have_libgtop_docu=yes
+ AC_DEFINE(HAVE_LIBGTOP_DOCU)
+ else
+ have_libgtop_docu=no
+ fi
+
+ AC_MSG_RESULT($have_libgtop_docu)
+
+ AM_CONDITIONAL(HAVE_LIBGTOP_DOCU, test x$have_libgtop_docu = xyes)
+])
+