aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Teichman <teichman@src.gnome.org>1999-08-01 03:34:29 +0800
committerPeter Teichman <teichman@src.gnome.org>1999-08-01 03:34:29 +0800
commit2ab2b6e14fd4c82ad8118dc09cd6c53571da1c0d (patch)
tree0b318a0504e334877e7e2741a874a7160a4f17a2
parent686958286d269319f373226f6522db5c86407746 (diff)
downloadgsoc2013-evolution-2ab2b6e14fd4c82ad8118dc09cd6c53571da1c0d.tar
gsoc2013-evolution-2ab2b6e14fd4c82ad8118dc09cd6c53571da1c0d.tar.gz
gsoc2013-evolution-2ab2b6e14fd4c82ad8118dc09cd6c53571da1c0d.tar.bz2
gsoc2013-evolution-2ab2b6e14fd4c82ad8118dc09cd6c53571da1c0d.tar.lz
gsoc2013-evolution-2ab2b6e14fd4c82ad8118dc09cd6c53571da1c0d.tar.xz
gsoc2013-evolution-2ab2b6e14fd4c82ad8118dc09cd6c53571da1c0d.tar.zst
gsoc2013-evolution-2ab2b6e14fd4c82ad8118dc09cd6c53571da1c0d.zip
put gnome-conduit-check.m4 into HEAD.
svn path=/trunk/; revision=1049
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/gnome-conduit-check.m450
2 files changed, 55 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index b6d26da3d8..7f358f81e4 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-30 Peter Teichman <pat4@acpub.duke.edu>
+
+ * gnome-conduit-check.m4: added new file of checks. anything that
+ provides a pilot conduit is going to want this
+
1999-07-07 Tuomas J. Lukka <lukka@iki.fi>
* gnome-x-checks.m4: add a comment on how to get gtk-1.3 and
glib 1.3 from CVS
diff --git a/macros/gnome-conduit-check.m4 b/macros/gnome-conduit-check.m4
new file mode 100644
index 0000000000..2cc3655cb5
--- /dev/null
+++ b/macros/gnome-conduit-check.m4
@@ -0,0 +1,50 @@
+dnl
+dnl GNOME_CONDUIT_HOOK (script-if-xml-found, failflag)
+dnl
+dnl If failflag is "failure", script aborts due to lack of XML
+dnl
+dnl Check for availability of the Pilot conduit framework
+dnl
+
+AC_DEFUN([CONDUIT_LIBS_CHECK], [
+ AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
+ if test "$GNOME_CONFIG" = no; then
+ if test x$2 = xfailure; then
+ AC_MSG_ERROR(Could not find gnome-config)
+ fi
+ fi
+
+ AC_MSG_CHECKING(for Palm conduit libs)
+ if gnome-config --libs conduit > /dev/null 2>&1; then
+ GNOME_CONDUIT_LIBS=`gnome-config --libs conduit`
+ GNOME_CONDUIT_INCLUDEDIR=`gnome-config --cflags conduit`
+ HAVE_GNOME_CONDUIT=yes
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
+
+ AC_SUBST(HAVE_GNOME_CONDUIT)
+ AC_SUBST(GNOME_CONDUIT_LIBS)
+ AC_SUBST(GNOME_CONDUIT_INCLUDEDIR)
+])
+
+AC_DEFUN([GNOME_CONDUIT_HOOK], [
+ AC_ARG_ENABLE(conduits,
+ [ --disable-conduits disable Palm conduits ], [
+ if test x$enableval = xno; then
+ # do nothing
+ true
+ else
+ # try to find conduit libs. error if not found.
+ CONDUIT_LIBS_CHECK
+ if test x$HAVE_GNOME_CONDUIT = x; then
+ AC_MSG_ERROR(Palm conduit libraries not found)
+ fi
+ fi ], [
+ CONDUIT_LIBS_CHECK ])
+])
+
+AC_DEFUN([GNOME_CONDUIT_CHECK], [
+ GNOME_CONDUIT_HOOK([],failure)
+])