Hi Akim,

> > After you pushed it, I'll test it from within GNU gettext.
> 
> Pushed.

I tested it, and it failed to set VARIABLE to ':' if an old bison
version is in $PATH.

This patch fixes it.


2020-05-03  Bruno Haible  <[email protected]>

        bison: Fix today's commit.
        * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.

diff --git a/m4/bison.m4 b/m4/bison.m4
index 76b62ba..3f18960 100644
--- a/m4/bison.m4
+++ b/m4/bison.m4
@@ -1,4 +1,4 @@
-# serial 9
+# serial 10
 
 # Copyright (C) 2002-2006, 2008-2020 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -57,13 +57,13 @@ _ACEOF
     : ${ac_prog_version:='v. ?.??'}
     if $$1 conftest.y -o conftest.c 2>/dev/null; then
       ac_prog_version="$ac_prog_version, ok"
-      ac_verc_fail=false
+      ac_verc_fail=no
     else
       ac_prog_version="$ac_prog_version, bad"
-      ac_verc_fail=true
+      ac_verc_fail=yes
     fi
-    AC_MSG_RESULT([$ac_prog_version])
     rm -f conftest.y conftest.c
+    AC_MSG_RESULT([$ac_prog_version])
   fi
   if test $ac_verc_fail = yes; then
     [$1]=:


Reply via email to