aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorLauris Kaplinski <lauris@src.gnome.org>2000-08-31 08:32:57 +0800
committerLauris Kaplinski <lauris@src.gnome.org>2000-08-31 08:32:57 +0800
commitaf8b4b2520fc43fba5d67513aeb3ef488bea3978 (patch)
tree884ef84b79aa8506ff0a4aaa1aa76537df2f9858 /configure.in
parent14f4aec7b07da83fc09c60a2f171d110b4f7fe1a (diff)
downloadgsoc2013-evolution-af8b4b2520fc43fba5d67513aeb3ef488bea3978.tar.gz
gsoc2013-evolution-af8b4b2520fc43fba5d67513aeb3ef488bea3978.tar.zst
gsoc2013-evolution-af8b4b2520fc43fba5d67513aeb3ef488bea3978.zip
Made it compilable both with gnome-print 0.20 and 0.21+
svn path=/trunk/; revision=5126
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in24
1 files changed, 15 insertions, 9 deletions
diff --git a/configure.in b/configure.in
index f36180c04c..d360d340a6 100644
--- a/configure.in
+++ b/configure.in
@@ -185,17 +185,23 @@ AC_SUBST(THREADS_CFLAGS)
dnl **************************************************
dnl * Print check
dnl **************************************************
-AC_MSG_CHECKING(for GnomePrint libraries version 0.20)
-if gnome-config --libs print > /dev/null 2>&1; then
- vers=`gnome-config --modversion print | sed -e "s/gnome-print-//"`
- if test "$vers" = "0.20"; then
- AC_MSG_RESULT(found)
+AC_MSG_CHECKING(for GnomePrint libraries version either 0.20 or later)
+ 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 20; then
+ if test "$vers" -ge 21; then
+ AC_MSG_RESULT(found >=0.21)
+ else
+ AC_MSG_RESULT(found 0.20)
+ AC_DEFINE(USING_GNOME_PRINT_0_20)
+ fi
else
- AC_MSG_ERROR(Please make sure you are using the released version of gnome-print-0.20. Please note that CVS HEAD versions will not work.)
+ AC_MSG_ERROR(Please upgrade your gnome-print to version 0.20 or later.)
fi
-else
- AC_MSG_ERROR(Did not find GnomePrint installed. Please make sure you are using the released version of gnome-print-0.20. Please note that CVS HEAD versions will not work.)
-fi
+ else
+ AC_MSG_ERROR(Did not find GnomePrint installed)
+ fi
+
GNOME_PRINT_LIBS=`gnome-config --libs print`
GNOME_PRINT_CFLAGS=`gnome-config --cflags print`
AC_SUBST(GNOME_PRINT_LIBS)