diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index f3b5bacaa1..c65bcece4d 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -951,8 +951,9 @@ AC_DEFUN([LINUX_SYSCTL_TABLE_CHECKING], [ AC_CACHE_VAL([ac_cv_linux_sysctl_table_checking], [ AC_TRY_KBUILD( [#include ], -[ 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)])