Whamcloud - gitweb
LU-15967 build: configure script does not check for required build tools
[fs/lustre-release.git] / config / lustre-build.m4
index a643fc0..fdae513 100644 (file)
@@ -155,6 +155,8 @@ AC_ARG_ENABLE([modules],
 AC_MSG_RESULT([$enable_modules ($target_os)])
 
 AS_IF([test "x$enable_modules" = xyes], [
+       AS_IF([test "x$FLEX" = "x"], [AC_MSG_ERROR([flex package is required to build kernel modules])])
+       AS_IF([test "x$BISON" = "x"], [AC_MSG_ERROR([bison package is required to build kernel modules])])
        AS_CASE([$target_os],
                [linux*], [
                        # Run serial tests
@@ -721,6 +723,11 @@ AC_SUBST(MOSTLYCLEANFILES)
 LB_CONFIG_RPMBUILD_OPTIONS
 LB_CONFIG_CACHE_OPTIONS
 
+AS_IF([test -d $TEST_DIR], [
+       AC_MSG_NOTICE([remove temporary parallel configure dir $TEST_DIR])
+       rm -rf $TEST_DIR
+])
+
 AC_OUTPUT
 
 cat <<_ACEOF