]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fixed version canonicalization
authorBVK Chaitanya <bvk.groups@gmail.com>
Mon, 5 Apr 2010 16:17:19 +0000 (21:47 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Mon, 5 Apr 2010 16:17:19 +0000 (21:47 +0530)
configure.ac

index 157a6114c95616efda2c9a9b1a9d872cd325f8d7..1f55a9ca73b30c02fc72c70c5d0a222f7ee62b79 100644 (file)
@@ -192,8 +192,8 @@ AC_PROG_MKDIR_P
 if test "x$LEX" = x; then
   AC_MSG_ERROR([flex is not found])
 else
-  version=`$LEX --version 2>/dev/null | $SED -e 's/flex //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 100 + $2) * 100 + $3;}'`
-  if test -n "$version" -a test "$version" -ge 205035; then
+  version=`$LEX --version 2>/dev/null | $SED -e 's/flex //' | $AWK 'BEGIN { FS = "."; } { printf "%d", $1 * 10000 + $2 * 100 + $3;}'`
+  if test -n "$version" -a "$version" -ge 20535; then
     :
   else
     AC_MSG_ERROR([flex is too old. GRUB requires 2.5.35 or above])