diff --git a/acinclude.m4 b/acinclude.m4 index 72f9d4e66d..4f3ba51b53 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -304,6 +304,13 @@ AC_ARG_ENABLE([optimize-pam], enabled)])], , [enable_optimize_pam="yes"]) +AC_ARG_ENABLE([linux-syscall-probing], + [AS_HELP_STRING([--disable-linux-syscall-probing], + [disabling Linux syscall probing (defaults to enabled)])], + , + [AC_DEFINE(ENABLE_LINUX_SYSCALL_PROBING, 1, + [define to enable syscall table probes])]) + AC_ARG_WITH([xslt-processor], AS_HELP_STRING([--with-xslt-processor=ARG], diff --git a/src/afs/LINUX/osi_probe.c b/src/afs/LINUX/osi_probe.c index 597ca90ea8..02bd9fd525 100644 --- a/src/afs/LINUX/osi_probe.c +++ b/src/afs/LINUX/osi_probe.c @@ -52,7 +52,7 @@ #include #include "afs/param.h" #endif -#if defined(EXPORTED_INIT_MM) +#if defined(ENABLE_LINUX_SYSCALL_PROBING) && defined(EXPORTED_INIT_MM) #ifdef AFS_LINUX24_ENV #include /* early to avoid printf->printk mapping */ #ifdef AFS_LINUX26_ENV