Only compare "bison -y" to the basename of YACC variable
[babeltrace.git] / configure.ac
index 7353b09f7421ad514e8a5306bac465d05e9068a2..b358a083209ea96cd95dc962a8c581f4466aa915 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.022892 seconds and 4 git commands to generate.