X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=33c54fc079ecf5f2d418495f9c89bfe42581b41e;hb=d7ce0a436c41594820679de2d1d7b26a413f77e3;hp=b43015249283690a7aea99b10c82d1a3b8e099c2;hpb=b33f11e218fac6ce8de61d551171b2f5f0571406;p=lttng-tools.git diff --git a/configure.ac b/configure.ac index b43015249..33c54fc07 100644 --- a/configure.ac +++ b/configure.ac @@ -287,7 +287,19 @@ LT_INIT AC_PROG_YACC AC_PROG_LEX -AC_DEFUN([AC_PROG_BISON], [AC_CHECK_PROGS(BISON, bison, bison)]) +if test ! -f "$srcdir/src/lib/lttng-ctl/filter/filter-parser.h"; then + if test x"$YACC" != "xbison -y"; then + AC_MSG_ERROR([[bison not found and is required when building from git. + Please install bison]]) + fi +fi + +if test ! -f "$srcdir/src/lib/lttng-ctl/filter/filter-lexer.c"; then + if test x"$LEX" != "xflex"; then + AC_MSG_ERROR([[flex not found and is required when building from git. + Please install flex]]) + fi +fi CFLAGS="-Wall $CFLAGS -g -fno-strict-aliasing" @@ -359,6 +371,7 @@ AC_CONFIG_FILES([ tests/utils/tap/Makefile tests/utils/testapp/Makefile tests/utils/testapp/gen-ust-events/Makefile + tests/utils/testapp/gen-ust-nevents/Makefile ]) AC_OUTPUT