AC_MSG_CHECKING([whether to build kernel modules])
AC_ARG_ENABLE([modules],
- AC_HELP_STRING([--disable-modules],
- [disable building of Lustre kernel modules]),
- [],[
- LC_TARGET_SUPPORTED([
- enable_modules='yes'
- ],[
- enable_modules='no'
- ])
- ])
+ AC_HELP_STRING([--disable-modules],
+ [disable building of Lustre kernel modules]),[],
+ [LC_TARGET_SUPPORTED([enable_modules='yes'],
+ [enable_modules='no'])])
AC_MSG_RESULT([$enable_modules])
if test x$enable_modules = xyes ; then
AC_MSG_CHECKING([whether to enable quilt for making ldiskfs])
AC_ARG_ENABLE([quilt],
- AC_HELP_STRING([--disable-quilt],[disable use of quilt for ldiskfs]),
- [],[enable_quilt='yes'])
+ AC_HELP_STRING([--disable-quilt],
+ [disable use of quilt for ldiskfs]),[],
+ [enable_quilt='yes'])
AC_MSG_RESULT([$enable_quilt])
AC_PATH_PROG(PATCH, patch, [no])
AC_SUBST(ac_configure_args)
+LB_CHECK_SYMBOL_EXPORT([d_rehash_cond],
+ [fs/dcache.c],
+ [AC_DEFINE(HAVE_D_REHASH_COND, 1,
+ [d_rehash_cond is exported by the kernel])],
+ [])
+
+LB_CHECK_SYMBOL_EXPORT([__d_rehash],
+ [fs/dcache.c],
+ [AC_DEFINE(HAVE___D_REHASH, 1,
+ [__d_rehash is exported by the kernel])],
+ [])
+
+LB_CHECK_SYMBOL_EXPORT([d_move_locked],
+ [fs/dcache.c],
+ [AC_DEFINE(HAVE_D_MOVE_LOCKED, 1,
+ [d_move_locked is exported by the kernel])],
+ [])
+
+LB_CHECK_SYMBOL_EXPORT([__d_move],
+ [fs/dcache.c],
+ [AC_DEFINE(HAVE___D_MOVE, 1,
+ [__d_move exported by the kernel])],
+ [])
+
LB_CONFIG_FILES
AC_CONFIG_FILES([ldiskfs/autoMakefile ldiskfs/Makefile])