commit cadf108d5617e4a5b4509129fb9da8dfa929a542
Author: Simon Wilkinson <sxw@inf.ed.ac.uk>
Date:   Tue Jun 2 10:37:27 2009 -0700

    Add option to disable syscall probing
    
    This adds the ability to disable syscall probing at configuration
    time to deal with Linux architectures which have compile, run, or
    load time issues with probes.

diff --git a/acinclude.m4 b/acinclude.m4
index 35dc400..6c70961 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -299,6 +299,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])])
+    
 
 
 enable_login="no"
diff --git a/src/afs/LINUX/osi_probe.c b/src/afs/LINUX/osi_probe.c
index 597ca90..02bd9fd 100644
--- a/src/afs/LINUX/osi_probe.c
+++ b/src/afs/LINUX/osi_probe.c
@@ -52,7 +52,7 @@
 #include <afsconfig.h>
 #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 <linux/module.h> /* early to avoid printf->printk mapping */
 #ifdef AFS_LINUX26_ENV
