to disabled)])],
[enable_checking="$enableval"],
[enable_checking="no"])
+AC_ARG_ENABLE([debug-locks],
+ [AS_HELP_STRING([--enable-debug-locks],
+ [turn on lock debugging assertions (defaults to disabled)])],
+ [enable_debug_locks="$enableval"],
+ [enable_debug_locks="no"])
AC_ARG_ENABLE([debug-kernel],
[AS_HELP_STRING([--enable-debug-kernel],
[enable compilation of the kernel module with debugging information
[#include <linux/fs.h>
#include <linux/namei.h>],
[path_lookup(NULL, 0, NULL);])
+ AC_CHECK_LINUX_FUNC([putname],
+ [#include <linux/fs.h>
+ #include <linux/namei.h>],
+ [putname(NULL);])
AC_CHECK_LINUX_FUNC([rcu_read_lock],
[#include <linux/rcupdate.h>],
[rcu_read_lock();])
OPENAFS_TEST_PACKAGE(libintl,[#include <libintl.h>],[-lintl],,,INTL)
+if test "$enable_debug_locks" = yes; then
+ AC_DEFINE(OPR_DEBUG_LOCKS, 1, [turn on lock debugging in opr])
+fi
+
dnl Don't build PAM on IRIX; the interface doesn't work for us.
if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_pam" = yes; then
case $AFS_SYSNAME in