From 33f0045d9a935fe82f07b039e0654e44b3277765 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 17 Jul 2002 13:03:38 -0500 Subject: [svn-r5810] Purpose: Fix Description: Better check for versions of Linux. We didn't support kernels with major version numbers >2 and minor version numbers <4... Solution: Fixed to check just that. Platforms tested: Linux 2.2 && 2.4 --- configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 8e770d3..effa214 100755 --- a/configure +++ b/configure @@ -8500,7 +8500,7 @@ fi; MAJOR_VER="`uname -r | cut -d '.' -f1`" MINOR_VER="`uname -r | cut -d '.' -f2`" - if test $MAJOR_VER -ge 2 -a $MINOR_VER -ge 4; then + if test ${MAJOR_VER} -gt 2 -o ${MAJOR_VER} -eq 2 -a ${MINOR_VER} -ge 4; then LINUX_LFS="yes" fi ;; diff --git a/configure.in b/configure.in index 53820e1..9a9f3fc 100644 --- a/configure.in +++ b/configure.in @@ -512,7 +512,7 @@ case "$host_cpu-$host_vendor-$host_os" in MAJOR_VER="`uname -r | cut -d '.' -f1`" MINOR_VER="`uname -r | cut -d '.' -f2`" - if test $MAJOR_VER -ge 2 -a $MINOR_VER -ge 4; then + if test ${MAJOR_VER} -gt 2 -o ${MAJOR_VER} -eq 2 -a ${MINOR_VER} -ge 4; then LINUX_LFS="yes" fi ;; -- cgit v0.12