Bug 344499 - valgrind configure does not recognize linux 4.0-rc1
Summary: valgrind configure does not recognize linux 4.0-rc1
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-23 19:25 UTC by Christian Borntraeger
Modified: 2015-02-24 07:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Borntraeger 2015-02-23 19:25:37 UTC
configure.ac checks for Linux versions. 2.4,2.6 and 3
this fails for Linux 4.*

Lets revert the logic to check for 0.*|1.*|2.0*|2.1*|2.2*|2.3* and fail here. Succeed otherwise.

Reproducible: Always
Comment 1 Christian Borntraeger 2015-02-23 19:26:05 UTC
Proposed fix:

Index: configure.ac
===================================================================
--- configure.ac	(Revision 14904)
+++ configure.ac	(Arbeitskopie)
@@ -325,20 +325,14 @@
         kernel=`uname -r`
 
         case "${kernel}" in
-             2.6.*|3.*) 
-        	    AC_MSG_RESULT([2.6.x/3.x family (${kernel})])
-        	    AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x])
+             0.*|1.*|2.0*|2.1*|2.2*|2.3*) 
+        	    AC_MSG_RESULT([unsupported (${kernel})])
+        	    AC_MSG_ERROR([Valgrind needs a Linux kernel >= 2.4])
         	    ;;
 
-             2.4.*) 
-        	    AC_MSG_RESULT([2.4 family (${kernel})])
-        	    AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
-        	    ;;
-
-             *) 
-        	    AC_MSG_RESULT([unsupported (${kernel})])
-        	    AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
-        	    ;;
+             *)
+        	    AC_MSG_RESULT([2.4 or later (${kernel})])
+                    ;;
         esac
 
         ;;
Comment 2 Christian Borntraeger 2015-02-24 07:32:13 UTC
Fixed in  14955