From 63637e4a0be6e25fa122e71ebafff0227c5c2aed Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 12 Oct 2006 18:23:05 +0000 Subject: [PATCH] - added ldiskfs debug configure keys. --- lustre/autoconf/lustre-core.m4 | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index bd039dd..88a2f5a 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -706,7 +706,7 @@ AC_DEFUN([LC_CONFIG_SPLIT], [AC_MSG_CHECKING([whether to disable split support]) AC_ARG_ENABLE([split], AC_HELP_STRING([--disable-split], - [enable split support]), + [disable split support]), [],[enable_split='yes']) AC_MSG_RESULT([$enable_split]) if test x$enable_split != xno; then @@ -715,6 +715,44 @@ fi ]) # +# LC_CONFIG_LDISKFS +# +# whether to enable various ldiskfs debugs +# +AC_DEFUN([LC_CONFIG_LDISKFS], +[ +AC_MSG_CHECKING([whether to disable ldiskfs asserts]) +AC_ARG_ENABLE([ldiskfs_asserts], + AC_HELP_STRING([--disable-ldiskfs-asserts], + [disable ldiskfs asserts]), + [],[enable_ldiskfs_asserts='yes']) +AC_MSG_RESULT([$enable_ldiskfs_asserts]) +if test x$enable_ldiskfs_asserts != xno; then + AC_DEFINE(LDISKFS_ASSERT, 1, [enable ldiskfs asserts]) +fi + +AC_MSG_CHECKING([whether to enable ldiskfs correctness checks]) +AC_ARG_ENABLE([ldiskfs_correctness], + AC_HELP_STRING([--enable-ldiskfs-correctness], + [enable ldiskfs correctness checks]), + [],[enable_ldiskfs_correctness='no']) +AC_MSG_RESULT([$enable_ldiskfs_correctness]) +if test x$enable_ldiskfs_correctness != xno; then + AC_DEFINE(LDISKFS_CORRECTNESS, 1, [enable ldiskfs correctness checks]) +fi + +AC_MSG_CHECKING([whether to enable ldiskfs invariants checks]) +AC_ARG_ENABLE([ldiskfs_invariants], + AC_HELP_STRING([--enable-ldiskfs-invariants], + [enable ldiskfs invariants checks]), + [],[enable_ldiskfs_invariants='no']) +AC_MSG_RESULT([$enable_ldiskfs_invariants]) +if test x$enable_ldiskfs_invariants != xno; then + AC_DEFINE(LDISKFS_INVARIANT, 1, [enable ldiskfs invariants checks]) +fi +]) + +# # LC_CONFIGURE # # other configure checks -- 1.8.3.1