Correct minimal version test
authorFrédéric Crozat <fcrozat@src.gnome.org>
Tue, 24 Jul 2001 07:39:00 +0000 (07:39 +0000)
committerFrédéric Crozat <fcrozat@src.gnome.org>
Tue, 24 Jul 2001 07:39:00 +0000 (07:39 +0000)
* gnome-print-check.m4 (AM_PATH_GNOME_PRINT):
Correct minimal version test

svn path=/trunk/; revision=1857

macros/ChangeLog
macros/gnome-print-check.m4

index adfede3..f7c7173 100644 (file)
@@ -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:
index 49fd6c6..968fcc0 100644 (file)
@@ -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