--- acinclude.m4.orig	2004-10-18 15:03:47.772825047 -0400
+++ acinclude.m4	2004-10-18 15:13:05.159284818 -0400
@@ -196,7 +196,12 @@
 		 LINUX_WHICH_MODULES
                  if test "x$ac_cv_linux_config_modversions" = "xno"; then
                    AC_MSG_WARN([Cannot determine sys_call_table status. assuming it isn't exported])
-                   ac_cv_linux_exports_sys_call_table=no
+                   if test "x`uname -r | sed -e "s/^\(2\.6\)\..*$/\1/g"`" = "x2.6"; then
+                     AC_MSG_WARN([Detecting Linux 2.6 and assuming an hand-patched kernel provides sys_call_table])
+                     ac_cv_linux_exports_sys_call_table=yes
+                   else
+                     ac_cv_linux_exports_sys_call_table=no
+                   fi
 		   if test -f "$LINUX_KERNEL_PATH/include/asm/ia32_unistd.h"; then
 		     ac_cv_linux_exports_ia32_sys_call_table=yes
 		   fi
