From 85daf8e5a6b9155c34d6231190594cf96dd8d5c3 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 18 Feb 2000 17:53:53 +0000 Subject: Use the new method for gnome-print checking instead of the old crufty gtk+ 2000-02-18 Miguel de Icaza * configure.in (have_pthread): Use the new method for gnome-print checking instead of the old crufty gtk+ based one that nobody can svn path=/trunk/; revision=1839 --- ChangeLog | 6 ++++++ configure.in | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ef618f1324..6c5bbc2a94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-02-18 Miguel de Icaza + + * configure.in (have_pthread): Use the new method for gnome-print + checking instead of the old crufty gtk+ based one that nobody can + debug. ever. + 2000-02-17 Dan Winship * camel/camel-service.h: diff --git a/configure.in b/configure.in index f0e5d704fe..8f3bf12ec1 100644 --- a/configure.in +++ b/configure.in @@ -65,7 +65,18 @@ AM_CONDITIONAL(ENABLE_THREADS, $have_pthread) dnl ************************************************** dnl * Print check dnl ************************************************** -GNOME_PRINT_CHECK +AC_MSG_CHECKING(for GnomePrint libraries >= 0.10) +if gnome-config --libs print > /dev/null 2>&1; then + vers=`gnome-config --modversion print | sed -e "s/gnome-print-//" | \ + awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'` + if test "$vers" -ge 10; then + AC_MSG_RESULT(found) + else + AC_MSG_ERROR(You need at least GNOME print 0.10 for this version of Gnumeric) + fi +else + AC_MSG_ERROR(Did not find GnomePrint installed) +fi dnl ************************************************** dnl * ORBit support -- cgit