]> granicus.if.org Git - sudo/commitdiff
$OSREV is now an int
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 30 May 1994 01:28:45 +0000 (01:28 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 30 May 1994 01:28:45 +0000 (01:28 +0000)
aclocal.m4

index 12a482088705dd061d5d7efac1eddd94da12c8ae..a4973b10808695ed50f86c6b2bd5ce028e2c334d 100644 (file)
@@ -90,7 +90,8 @@ AC_BEFORE([$0], [AC_PROGRAM_CHECK])
 if test -n "$UNAMEPROG"; then
     echo "checking OS based on uname(1)"
     OS=`$UNAMEPROG -s`
-    OSREV=`$UNAMEPROG -r`
+    # this is yucky but we want to make sure $OSREV is an int...
+    OSREV=`$UNAMEPROG -r | $SEDPROG -e 's/^[A-z \.0]*//' -e 's/\..*//'`
 
     if test "$OS" = "SunOS" -a "$OSREV" -ge 5 ; then
        OS="solaris"