Only compare "bison -y" to the basename of YACC variable
[babeltrace.git] / configure.ac
index 31bc76a1423bf2893c44de808a1cd61eab749ca3..ad10a1a0320c8f59744854d31e2e89b498a73257 100644 (file)
@@ -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
This page took 0.023805 seconds and 4 git commands to generate.