aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Crozat <fcrozat@src.gnome.org>2001-07-24 15:39:00 +0800
committerFrédéric Crozat <fcrozat@src.gnome.org>2001-07-24 15:39:00 +0800
commit3d52f276b1519538ef6fe97cd9850f9796a71b40 (patch)
tree6c692d1e5ce019f15308e881e007b320398b9911
parent9f5e2f4c638f3694a2bd5422407e25578375e5a9 (diff)
downloadgsoc2013-evolution-3d52f276b1519538ef6fe97cd9850f9796a71b40.tar.gz
gsoc2013-evolution-3d52f276b1519538ef6fe97cd9850f9796a71b40.tar.zst
gsoc2013-evolution-3d52f276b1519538ef6fe97cd9850f9796a71b40.zip
Correct minimal version test
* gnome-print-check.m4 (AM_PATH_GNOME_PRINT): Correct minimal version test svn path=/trunk/; revision=11338
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/gnome-print-check.m44
2 files changed, 7 insertions, 2 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index adfede372f..f7c7173ad9 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-24 Frederic Crozat <fcrozat@mandrakesoft.com>
+
+ * gnome-print-check.m4 (AM_PATH_GNOME_PRINT):
+ Correct minimal version test
+
2001-06-22 Eskil Heyn Olsen <eskil@eskil.dk>
* gnome-pilot.m4:
diff --git a/macros/gnome-print-check.m4 b/macros/gnome-print-check.m4
index 49fd6c6061..968fcc01c2 100644
--- a/macros/gnome-print-check.m4
+++ b/macros/gnome-print-check.m4
@@ -20,8 +20,8 @@ AC_DEFUN([AM_PATH_GNOME_PRINT],
else
AC_MSG_CHECKING(for GNOME-PRINT - version >= $min_version)
if `$GNOME_CONFIG --libs print > /dev/null 2>&1`; then
- rqmajor=`echo "$1" | sed -e 's/cvs-//' | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
- rqminor=`echo "$1" | sed -e 's/cvs-//' | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
+ rqmajor=`echo "$min_version" | sed -e 's/cvs-//' | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
+ rqminor=`echo "$min_version" | sed -e 's/cvs-//' | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
major=`$GNOME_CONFIG --modversion print | sed -e 's/gnome-print-//' | sed -e 's/cvs-//' | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
minor=`$GNOME_CONFIG --modversion print | sed -e 's/gnome-print-//' | sed -e 's/cvs-//' | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
if test "$major" -ge "$rqmajor"; then