summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-04-13 02:50:16 +0000
committerArturo Espinosa <unammx@src.gnome.org>1999-04-13 02:50:16 +0000
commitba46e906fab96082a669dda1a19932ea0457ef77 (patch)
treecc92b5f8297af3321d27166506b6f3064d90f5b9
parentccec7697bc6178cd2e0c5b75ccce32fd7e9ac45c (diff)
downloadshared-mime-info-ba46e906fab96082a669dda1a19932ea0457ef77.tar.gz
Updated bonobo checks
svn path=/trunk/; revision=755
-rw-r--r--macros/gnome-bonobo-check.m436
1 files changed, 6 insertions, 30 deletions
diff --git a/macros/gnome-bonobo-check.m4 b/macros/gnome-bonobo-check.m4
index 64807da9..e98e039c 100644
--- a/macros/gnome-bonobo-check.m4
+++ b/macros/gnome-bonobo-check.m4
@@ -9,8 +9,9 @@
dnl AM_PATH_BONOBO ([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for Bonobo, and define BONOBO_CFLAGS and BONOBO_LIBS
dnl
-AC_DEFUN(AM_PATH_BONOBO
-[dnl
+AC_DEFUN([AM_PATH_BONOBO],
+[
+dnl
dnl Get the cflags and libraries from the gnome-config script
dnl
AC_ARG_WITH(bonobo-prefix,[ --with-bonobo-prefix=PFX Prefix where Bonobo is installed (optional)],
@@ -41,7 +42,7 @@ AC_ARG_ENABLE(bonobotest, [ --disable-bonobotest Do not try to compile an
no_bonobo=yes
else
BONOBO_CFLAGS=`$GNOME_CONFIG $bonoboconf_args --cflags bonobo`
- BONOBO_LIBS=`$GNOME_CONFIG $bonoboconf_args --libs print`
+ BONOBO_LIBS=`$GNOME_CONFIG $bonoboconf_args --libs bonobo`
bonobo_major_version=`$GNOME_CONFIG $bonobo_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
@@ -63,7 +64,7 @@ dnl
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <libgnomeprint/bonobo.h>
+#include <bonobo/gnome-object.h>
static char*
my_strdup (char *str)
@@ -87,32 +88,7 @@ int main ()
char *tmp_version;
system ("touch conf.bonobotest");
-
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = my_strdup("$min_bonobo_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
- printf("%s, bad version string\n", "$min_bonobo_version");
- exit(1);
- }
- return 0;
-#if 0
- if (($bonobo_major_version > major) ||
- (($bonobo_major_version == major) && ($bonobo_minor_version > minor)) ||
- (($bonobo_major_version == major) && ($bonobo_minor_version == minor) && ($bonobo_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("\n*** 'gnome-config print --version' returned %d.%d.%d, but the minimum version\n", $bonobo_major_version, $bonobo_minor_version, $bonobo_micro_version);
- printf("*** of BONOBO required is %d.%d.%d. If gnome-config is correct, then it is\n", major, minor, micro);
- printf("*** best to upgrade to the required version.\n");
- printf("*** If gnome-config was wrong, set the environment variable GNOME_CONFIG\n");
- printf("*** to point to the correct copy of gnome-config, and remove the file\n");
- printf("*** config.cache before re-running configure\n");
- return 1;
- }
-#endif
+ gnome_object_get_type ();
}
],, no_bonobo=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])