diff options
author | Julian Missig <julianm@src.gnome.org> | 2000-05-22 06:40:15 +0800 |
---|---|---|
committer | Julian Missig <julianm@src.gnome.org> | 2000-05-22 06:40:15 +0800 |
commit | 3f5d9cb60827ca2a5e032e95aa241cc8376ab46f (patch) | |
tree | d81dd49033b11d4da7e14ad4426e8f95acd82c5b /macros/gnome-pilot.m4 | |
parent | 2093028eb9f76648de7a01b73271800b4250ab2b (diff) | |
download | gsoc2013-evolution-3f5d9cb60827ca2a5e032e95aa241cc8376ab46f.tar gsoc2013-evolution-3f5d9cb60827ca2a5e032e95aa241cc8376ab46f.tar.gz gsoc2013-evolution-3f5d9cb60827ca2a5e032e95aa241cc8376ab46f.tar.bz2 gsoc2013-evolution-3f5d9cb60827ca2a5e032e95aa241cc8376ab46f.tar.lz gsoc2013-evolution-3f5d9cb60827ca2a5e032e95aa241cc8376ab46f.tar.xz gsoc2013-evolution-3f5d9cb60827ca2a5e032e95aa241cc8376ab46f.tar.zst gsoc2013-evolution-3f5d9cb60827ca2a5e032e95aa241cc8376ab46f.zip |
Fixed my mess-up, sorry about that.
svn path=/trunk/; revision=3151
Diffstat (limited to 'macros/gnome-pilot.m4')
-rw-r--r-- | macros/gnome-pilot.m4 | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/macros/gnome-pilot.m4 b/macros/gnome-pilot.m4 index 16e081a366..39f73cca9e 100644 --- a/macros/gnome-pilot.m4 +++ b/macros/gnome-pilot.m4 @@ -97,23 +97,29 @@ AC_DEFUN([PILOT_LINK_CHECK],[ ]) AC_DEFUN([GNOME_PILOT_HOOK],[ - AC_PATH_PROG(GNOME_PILOT_CONFIG,gnome-pilot-config,no) + AC_PATH_PROG(GNOME_CONFIG,gnome-config,no) AC_CACHE_CHECK([for gnome-pilot environment],gnome_cv_pilot_found,[ - if test x$GNOME_PILOT_CONFIG = xno; then + if test "x$GNOME_CONFIG" = "xno"; then gnome_cv_pilot_found=no else - gnome_cv_pilot_found=yes + # gnome-config doesn't return a useful error status, + # so we check if it outputs anything to stderr + if test "x`$GNOME_CONFIG gpilot 2>&1 > /dev/null`" = "x"; then + gnome_cv_pilot_found=yes + else + gnome_cv_pilot_found=no + fi fi ]) AM_CONDITIONAL(HAVE_GNOME_PILOT,test x$gnome_cv_pilot_found = xyes) if test x$gnome_cv_pilot_found = xyes; then PILOT_LINK_CHECK($1) - GNOME_PILOT_CFLAGS=`gnome-pilot-config --cflags client conduitmgmt` - GNOME_PILOT_LIBS=`gnome-pilot-config --libs client conduitmgmt` + GNOME_PILOT_CFLAGS=`gnome-config --cflags gpilot` + GNOME_PILOT_LIBS=`gnome-config --libs gpilot` $2 else if test x$3 = xfailure; then - AC_MSG_ERROR(Gnome-pilot not installed or installation problem) + AC_MSG_ERROR(gnome-pilot development package not installed or installation problem) fi fi ]) |