From: Jonathan Rajotte Date: Thu, 22 Oct 2015 20:11:18 +0000 (-0400) Subject: Only compare "bison -y" to the basename of YACC variable X-Git-Tag: v2.8.0-rc1~224 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=193c46de9d0a53a5d07ea7ff07aa9162afa0508c;p=lttng-tools.git Only compare "bison -y" to the basename of YACC variable In the event that the YACC variable is set to a full path this test fail even if it should not. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/configure.ac b/configure.ac index df5f54a5e..10a534c36 100644 --- a/configure.ac +++ b/configure.ac @@ -704,7 +704,7 @@ AM_CONDITIONAL([BUILD_LIB_TESTPOINT], [test x$build_lib_testpoint = xyes]) AM_CONDITIONAL([BUILD_LIB_UST_CONSUMER], [test x$build_lib_ust_consumer = xyes]) if test ! -f "$srcdir/src/lib/lttng-ctl/filter/filter-parser.h"; then - if test x"$YACC" != "xbison -y"; then + if test x"$(basename "$YACC")" != "xbison -y"; then AC_MSG_ERROR([[bison not found and is required when building from git. Please install bison]]) fi