AC_CACHE_CHECK([for external module build target], lb_cv_module_target,
[
lb_cv_module_target=""
- MODULE_TARGET="SUBDIRS"
rm -f build/conftest.i
- LB_LINUX_TRY_MAKE([], [],
- [$makerule LUSTRE_KERNEL_TEST=conftest.i],
- [test -s build/conftest.i],
- [lb_cv_module_target="SUBDIRS"],[
MODULE_TARGET="M"
- makerule="$PWD/build/"
+ makerule="$PWD/build"
LB_LINUX_TRY_MAKE([], [],
[$makerule LUSTRE_KERNEL_TEST=conftest.i],
[test -s build/conftest.i],
[test -s build/conftest.i],
[lb_cv_module_target="M58"], [
AC_MSG_ERROR([kernel module make failed; check config.log for details])
- ])])])])
+ ])])])
])
AS_IF([test -z "$lb_cv_module_target"],
[AC_MSG_ERROR([unknown external module build target])],