Only compare "bison -y" to the basename of YACC variable
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 22 Oct 2015 21:07:02 +0000 (17:07 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Nov 2015 21:29:46 +0000 (16:29 -0500)
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 <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.025232 seconds and 4 git commands to generate.