X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=19ad34201af9e1358a572d3dd01837b8d924cd79;hb=745a10bf7cc26933ca2e5bdc487322e00f83725f;hp=05c1592679f79734028832d76eae1d036c2e72f2;hpb=4f65bee19fd9e7cf43c95ef01f963107577573cf;p=lttng-tools.git diff --git a/configure.ac b/configure.ac index 05c159267..19ad34201 100644 --- a/configure.ac +++ b/configure.ac @@ -356,6 +356,10 @@ if test ! -f "$srcdir/src/lib/lttng-ctl/filter/filter-parser.h"; then AC_MSG_ERROR([[bison not found and is required when building from git. Please install bison]]) fi + AC_PATH_PROG([BISON],[bison]) + AX_PROG_BISON_VERSION([2.4], [],[ + AC_MSG_ERROR([[Bison >= 2.4 is required when building from git]]) + ]) fi if test ! -f "$srcdir/src/lib/lttng-ctl/filter/filter-lexer.c"; then @@ -363,6 +367,10 @@ if test ! -f "$srcdir/src/lib/lttng-ctl/filter/filter-lexer.c"; then AC_MSG_ERROR([[flex not found and is required when building from git. Please install flex]]) fi + AC_PATH_PROG([FLEX],[flex]) + AX_PROG_FLEX_VERSION([2.5.35], [],[ + AC_MSG_ERROR([[Flex >= 2.5.35 is required when building from git]]) + ]) fi CFLAGS="-Wall $CFLAGS -g -fno-strict-aliasing"