diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1998-09-07 20:04:40 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-09-07 20:04:40 +0000 |
commit | 5c283311e03783e2404369ac1836b4b773b0424e (patch) | |
tree | 76cd54c334569d502f162d4af845e433151e2ea2 | |
parent | f37d581bc74bf464a03b35e09e1257fcbb747cba (diff) | |
download | shared-mime-info-5c283311e03783e2404369ac1836b4b773b0424e.tar.gz |
New check macro for ORBit -mig
svn path=/trunk/; revision=381
-rw-r--r-- | macros/gnome-orbit-check.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/gnome-orbit-check.m4 b/macros/gnome-orbit-check.m4 new file mode 100644 index 00000000..d26b39bc --- /dev/null +++ b/macros/gnome-orbit-check.m4 @@ -0,0 +1,21 @@ +dnl +dnl GNOME_ORBIT_HOOK (script-if-orbit-found, failflat) +dnl +dnl if failflag is "failure" it aborts if orbit is not found. +dnl + +AC_DEFUN([GNOME_ORBIT_HOOK],[ + AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no) + if test x$ORBIT_CONFIG = xno; then + if test x$2 = failure; then + AC_MSG_ERROR(Could not find orbit-config) + fi + else + $1 + AC_DEFINE(HAVE_ORBIT) + fi +]) + +AC_DEFUN([GNOME_ORBIT_CHECK], [ + GNOME_ORBIT_HOOK([],failure) +]) |