about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/configure.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-13 03:49:12 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-13 03:49:12 +0000
commit003a02c6aed89bad440a0c4ec5acef26965b0d23 (patch)
tree3231bf5008d2e7fe0005cf2fe0f25d15db055f7f /sysdeps/unix/sysv/linux/configure.in
parentff048a13e5d2c971de0275c30b4d55c4ed2a2abf (diff)
downloadglibc-003a02c6aed89bad440a0c4ec5acef26965b0d23.tar.gz
glibc-003a02c6aed89bad440a0c4ec5acef26965b0d23.tar.xz
glibc-003a02c6aed89bad440a0c4ec5acef26965b0d23.zip
Update.
	* sysdeps/unix/sysv/linux/configure.in: Allow architecture
	specific minimal supported kernel versions to be specified.
Diffstat (limited to 'sysdeps/unix/sysv/linux/configure.in')
-rw-r--r--sysdeps/unix/sysv/linux/configure.in30
1 files changed, 28 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/configure.in b/sysdeps/unix/sysv/linux/configure.in
index a05bed564f..e89d8b4c1b 100644
--- a/sysdeps/unix/sysv/linux/configure.in
+++ b/sysdeps/unix/sysv/linux/configure.in
@@ -36,7 +36,33 @@ configure option --with-headers.])
 fi
 
 # If the user gave a minimal version number test whether the available
-# kernel headers are young enough.
+# kernel headers are young enough.  Additionally we have minimal
+# kernel versions for some architectures.
+if test -n "$minimum_kernel"; then
+  case "$machine" in
+    sh*)
+      arch_minimum_kernel=2.3.99
+      ;;
+    *)
+      ;;
+  esac
+
+  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/'`))
+  if test $user_version -lt $arch_minimum_kernel; then
+    AC_MSG_WARN([minimum kernel version reset to $arch_minimum_kernel])
+    minimum_kernel=$arch_minimum_kernel
+  fi
+else
+  case "$machine" in
+    sh*)
+      minimum_kernel = 2.3.99
+      ;;
+    *)
+      ;;
+  esac
+fi
+
 if test -n "$minimum_kernel"; then
   AC_MSG_CHECKING(for kernel header at least $minimum_kernel)
 changequote(,)dnl
@@ -80,7 +106,7 @@ fi
 
 # Under Linux the LinuxThreads add-on should be available.
 case $add_ons in
-  # Both are available.  Good.
+  # It is available.  Good.
   *linuxthreads*)
     message=
     ;;