From 51b6bddd1d18a966624e0c6b5effc71e89a16230 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 25 Apr 2014 14:43:24 +0300 Subject: gst-parser.m4: Fix Bison version check to handle development versions of GNU Bison Fixes checking bison version 2.7.1.1194-51a4 >= 2.4... Bareword found where operator expected at -e line 1, near "51a4" (Missing operator before a4?) syntax error at -e line 1, near "51a4 " Execution of -e aborted due to compilation errors. This is due to not quoting the string when calling 'perl' to check the version number. The - sign causes a syntax error. https://bugzilla.gnome.org/show_bug.cgi?id=728946 --- m4/gst-parser.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/gst-parser.m4 b/m4/gst-parser.m4 index 710da89..5e27199 100644 --- a/m4/gst-parser.m4 +++ b/m4/gst-parser.m4 @@ -15,7 +15,7 @@ AC_DEFUN([AG_GST_BISON_CHECK], bison_version=`$BISON_PATH --version | head -n 1 | sed 's/^[[^0-9]]*//' | sed 's/[[^0-9]]*$//' | cut -d' ' -f1` AC_MSG_CHECKING([bison version $bison_version >= $bison_min_version]) - if perl -we "exit ((v$bison_version ge v$bison_min_version) ? 0 : 1)"; then + if perl -we "exit (('v$bison_version' ge 'v$bison_min_version') ? 0 : 1)"; then AC_MSG_RESULT([yes]) else AC_MSG_ERROR([no]) -- cgit v1.2.1