- added check for flex and bison
- added requirement for build kernel modules
Change-Id: I4f4f19ea44f3cd8f69482d950970bf701e81f7ec
Signed-off-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-on: https://review.whamcloud.com/47744
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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
AC_PROG_MKDIR_P
AM_PROG_AS
+AC_PATH_PROG(FLEX, flex)
+AC_PATH_PROG(BISON, bison)
AC_PATH_PROG(RPMBUILD, rpmbuild)
AC_CHECK_TOOLS(AR, ar)