diff options
author | Brian Behlendorf <[email protected]> | 2011-07-22 14:23:12 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-07-22 15:07:03 -0700 |
commit | c064bdee95583102e216354bbdece4818d59b644 (patch) | |
tree | 28443b03a95577595077b94ecd4d2959b22987cb /config | |
parent | e80cd06b8e0428f3ca2c62e4cb0e4ec54fda1d5c (diff) |
Fix the configure CONFIG_* option detection
The latest kernels no longer define AUTOCONF_INCLUDED which was
being used to detect the new style autoconf.h kernel configure
options. This results in the CONFIG_* checks always failing
incorrectly for newer kernels.
The fix for this is a simplification of the testing method.
Rather than attempting to explicitly include to renamed config
header. It is simpler to unconditionally include <linux/module.h>
which must pick up the correctly named header.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #320
Diffstat (limited to 'config')
-rw-r--r-- | config/spl-build.m4 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index ea5078507..f4652bce1 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -540,9 +540,7 @@ dnl # AC_DEFUN([SPL_LINUX_CONFIG], [AC_MSG_CHECKING([whether Linux was built with CONFIG_$1]) SPL_LINUX_TRY_COMPILE([ - #ifndef AUTOCONF_INCLUDED - #include <linux/config.h> - #endif + #include <linux/module.h> ],[ #ifndef CONFIG_$1 #error CONFIG_$1 not #defined |