]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-linux24-kernel-configure-test-20071208
authorDerrick Brashear <shadow@dementia.org>
Sat, 8 Dec 2007 17:46:09 +0000 (17:46 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 8 Dec 2007 17:46:09 +0000 (17:46 +0000)
LICENSE IPL10

on linux 2.4 the try kbuild macro needs to try harder to notice what
symbols we don't have

(cherry picked from commit 55e581824fceea149b9a48ee928aa76e97c009a8)

src/cf/linux-test1.m4
src/cf/linux-test4.m4

index a330abafb7e192d908f0e8d9a37e87d328d8dabe..2751a14cfbafa25674881c19dd4341f40cfc7fa0 100644 (file)
@@ -46,8 +46,10 @@ _ACEOF
 #
 AC_DEFUN([AC_TRY_KBUILD24], [
   ac_save_CPPFLAGS="$CPPFLAGS"
-  CPPFLAGS="-I$LINUX_KERNEL_PATH/include -D__KERNEL__ $CPPFLAGS"
-  AC_TRY_COMPILE([$1], [$2], [$3], [$4])
+  CPPFLAGS="-I$LINUX_KERNEL_PATH/include -D__KERNEL__ -Werror-implicit-function-declaration $CPPFLAGS"
+  AC_TRY_COMPILE([
+#include <linux/kernel.h>
+$1], [$2], [$3], [$4])
   CPPFLAGS="$ac_save_CPPFLAGS"])
 
 
index 85e612f71b548e1f24d330b4a3b3d0a918b02772..e0e1bb814aa68464c3627c4312c1687e9aaf9b58 100644 (file)
@@ -971,8 +971,7 @@ AC_DEFUN([LINUX_SYSCTL_TABLE_CHECKING], [
   AC_CACHE_VAL([ac_cv_linux_sysctl_table_checking], [
     AC_TRY_KBUILD(
 [#include <linux/sysctl.h>],
-[extern int sysctl_check_table(struct ctl_table *t);
-sysctl_check_table(NULL);],
+[ sysctl_check_table(NULL);],
       ac_cv_linux_sysctl_table_checking=yes,
       ac_cv_linux_sysctl_table_checking=no)])
   AC_MSG_RESULT($ac_cv_linux_sysctl_table_checking)])