Spotted on the #gnu IRC channel: checking for bison 2.4 or newer... 3.8.2, bad in an environment where POSIXLY_CORRECT is set.
This patch should fix it. 2025-05-11 Bruno Haible <br...@clisp.org> bison: Fix configure test failure if POSIXLY_CORRECT is set. Reported by Arsen Arsenović. * m4/bison.m4 (gl_PROG_BISON): In the bison invocation, put all options before the non-option arguments. diff --git a/m4/bison.m4 b/m4/bison.m4 index 9f0df25eed..170210bca8 100644 --- a/m4/bison.m4 +++ b/m4/bison.m4 @@ -1,5 +1,5 @@ # bison.m4 -# serial 10 +# serial 11 dnl Copyright (C) 2002-2006, 2008-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -56,7 +56,7 @@ AC_DEFUN([gl_PROG_BISON] AC_MSG_CHECKING([for bison $2 or newer]) ac_prog_version=`$$1 --version 2>&1 | sed -n 's/^.*GNU Bison.* \([[0-9]]*\.[[0-9.]]*\).*$/\1/p'` : ${ac_prog_version:='v. ?.??'} - if $$1 conftest.y -o conftest.c 2>/dev/null; then + if $$1 -o conftest.c conftest.y 2>/dev/null; then ac_prog_version="$ac_prog_version, ok" ac_verc_fail=no else