]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-sysctl-table-checking-modpost-fun-fun-20080127
authorMarc Dionne <marc.c.dionne@gmail.com>
Mon, 28 Jan 2008 19:17:16 +0000 (19:17 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 28 Jan 2008 19:17:16 +0000 (19:17 +0000)
LICENSE IPL10
FIXES 83890

try again to do something sensible so we don't default wrong

(cherry picked from commit 5a93678e3943fa2c71d51f25f84b4efd5f3700e6)

src/cf/linux-test4.m4

index f3b5bacaa16750fb0328d0485116e76e37a48825..c65bcece4d568d33447b422e8bf29d5e6eb63d97 100644 (file)
@@ -951,8 +951,9 @@ AC_DEFUN([LINUX_SYSCTL_TABLE_CHECKING], [
   AC_CACHE_VAL([ac_cv_linux_sysctl_table_checking], [
     AC_TRY_KBUILD(
 [#include <linux/sysctl.h>],
-[ 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)])
+[ extern int sysctl_check_table(int) __attribute__((weak));
+sysctl_check_table(NULL);],
+ ac_cv_linux_sysctl_table_checking=no,
+ ac_cv_linux_sysctl_table_checking=yes)])
+AC_MSG_RESULT($ac_cv_linux_sysctl_table_checking)])