# HG changeset patch # User nickols_k # Date 991728720 0 # Node ID b3dde72791edd0178c476f693bfe43a25aa27e33 # Parent ee73458f8f6939f6e261b319135570e453a1ffe4 Kernel version checking improvements diff -r ee73458f8f69 -r b3dde72791ed configure --- a/configure Tue Jun 05 07:56:40 2001 +0000 +++ b/configure Tue Jun 05 08:12:00 2001 +0000 @@ -6,6 +6,10 @@ # # Changes in reversed order: # +# +# 2001/06/05 by Nick Kurshev +# - added checking of kernel version +# # 2001/06/04 by Nick Kurshev # - added hard checking of gcc and soft of assembler # @@ -879,22 +883,22 @@ # Checking kernel version... _k_verc_problem=no -kernel_name=`uname -s 2>&1` +system_name=`uname -s 2>&1` kernel_version=`uname -r 2>&1` -echo -n "Checking $kernel_name kernel version ... $kernel_version, " +echo -n "Checking $system_name kernel version ... " case $kernel_version in '') kernel_version="?.??"; _k_verc_fail=yes;; - 2.0.[0-99]|2.2.[0-99]) + [0-1].[0-99].[0-99]|2.[0-3].[0-99]) _k_verc_problem=yes;; esac if [ $_k_verc_problem = 'yes' ] && [ $_sse = 'yes' ]; then _k_verc_fail=yes fi if ! test -z "$_k_verc_fail"; then -echo "fail" +echo "$kernel_version, fail" echo "WARNING! You want to run mplayer on this system then be prepared for problems" else -echo "ok" +echo "$kernel_version, ok" fi if [ $_x11 = 'yes' ]; then