]> granicus.if.org Git - graphviz/commitdiff
attempt to make GUILE_VERSION testing a bit more robust
authorellson <devnull@localhost>
Thu, 19 May 2011 20:11:59 +0000 (20:11 +0000)
committerellson <devnull@localhost>
Thu, 19 May 2011 20:11:59 +0000 (20:11 +0000)
configure.ac

index fe141b502f06d7331743c95210d3bb16195fe344..bb932c28262b2a737aae31ba19e957ad616af42c 100644 (file)
@@ -679,11 +679,11 @@ else
         [GUILE_VERSION=`$GUILE --version | sed -n '1 s/^.* \+\([0-9\.]\+\)$/\1/ p'`]
         GUILE_VERSION_MAJOR=`echo $GUILE_VERSION | cut -d '.' -f 1`
         GUILE_VERSION_MINOR=`echo $GUILE_VERSION | cut -d '.' -f 2`
-        if test $GUILE_VERSION_MAJOR -lt 2; then
-          if test $GUILE_VERSION_MAJOR -lt 1; then
+        if test 0$GUILE_VERSION_MAJOR -lt 2; then
+          if test 0$GUILE_VERSION_MAJOR -lt 1; then
             GUILE=
           else
-            if test $GUILE_VERSION_MINOR -lt 4; then
+            if test 0$GUILE_VERSION_MINOR -lt 4; then
              GUILE=
             fi
           fi