Skip to content

Commit

Permalink
configure: Properly fail if bison or flex is missing
Browse files Browse the repository at this point in the history
If bison or flex is missing, and are needed, fail configure.
  • Loading branch information
cmouse committed Jun 29, 2020
1 parent 9a6e303 commit dd87051
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,14 @@ AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX # lucene plugin needs this
AC_CHECK_TOOL([FLEX],[flex],AC_ERROR(flex is required))
AC_CHECK_TOOL([BISON],[bison],AC_ERROR(bison is required))
AC_CHECK_TOOL([FLEX],[flex],[:])
AC_CHECK_TOOL([BISON],[bison],[:])
AS_IF([test "$BISON" = ":" && test ! -e src/lib/event-filter-parser.h],
AC_MSG_ERROR([Bison is required when building from git])
])
AS_IF([test "$FLEX" = ":" && test ! -e src/lib/event-filter-lexer.c],
AC_MSG_ERROR([flex is required when building from git])
])
AC_HEADER_STDC
AC_C_INLINE
AC_PROG_LIBTOOL
Expand Down

0 comments on commit dd87051

Please sign in to comment.