Improve handling of minimal kernel versions. Add information about
authordrepper <drepper>
Tue, 13 Jun 2000 06:21:31 +0000 (06:21 +0000)
committerdrepper <drepper>
Tue, 13 Jun 2000 06:21:31 +0000 (06:21 +0000)
IA-64 kernel.

sysdeps/unix/sysv/linux/configure.in

index 9b180d3..2ed2c09 100644 (file)
@@ -38,16 +38,18 @@ fi
 # If the user gave a minimal version number test whether the available
 # kernel headers are young enough.  Additionally we have minimal
 # kernel versions for some architectures.
+case "$machine" in
+  sh*)
+    arch_minimum_kernel=2.3.99
+    ;;
+  ia64*)
+    arch_minimum_kernel=2.4.0
+    ;;
+  *)
+    arch_minimum_kernel=2.0.10
+    ;;
+esac
 if test -n "$minimum_kernel"; then
-  case "$machine" in
-    sh*)
-      arch_minimum_kernel=2.3.99
-      ;;
-    *)
-      arch_minimum_kernel=2.0.10
-      ;;
-  esac
-
   changequote(,)
   user_version=$((`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
   arch_version=$((`echo "$arch_minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
@@ -57,13 +59,9 @@ if test -n "$minimum_kernel"; then
     minimum_kernel=$arch_minimum_kernel
   fi
 else
-  case "$machine" in
-    sh*)
-      minimum_kernel=2.3.99
-      ;;
-    *)
-      ;;
-  esac
+  if test $arch_minimum_kernel != '2.0.10'; then
+    minimum_kernel=$arch_minimum_kernel
+  fi
 fi
 
 if test -n "$minimum_kernel"; then