From: Jonathan Rajotte Date: Thu, 22 Oct 2015 21:07:02 +0000 (-0400) Subject: Only compare "bison -y" to the basename of YACC variable X-Git-Tag: v1.3.1~2 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=671c16a587f332d59f856b61fa1660345a6ce64c;hp=1bf1d54c93a72efb0ac577fd40830bff303af24d 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 7353b09f..b358a083 100644 --- a/configure.ac +++ b/configure.ac @@ -60,7 +60,7 @@ AC_CHECK_HEADERS([ \ ]) if test ! -f "$srcdir/formats/ctf/metadata/ctf-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