]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
bison: Fix configure test failure if POSIXLY_CORRECT is set.
authorBruno Haible <bruno@clisp.org>
Sun, 11 May 2025 19:28:31 +0000 (21:28 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 11 May 2025 19:28:31 +0000 (21:28 +0200)
Reported by Arsen Arsenović.

* m4/bison.m4 (gl_PROG_BISON): In the bison invocation, put all options
before the non-option arguments.

ChangeLog
m4/bison.m4

index 2ddb9c3ba9f9276147cbe094f26a68aad3041211..5ef6e6a6d61e3a539fefa2faa38768d2a4aa1e1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
+2025-05-11  Bruno Haible  <bruno@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.
+
 2025-05-11  Collin Funk  <collin.funk1@gmail.com>
 
-       fts: Make sure __GNU_PREREQ is defined (regression yesterday).
+       fts: Make sure __GNUC_PREREQ is defined (regression yesterday).
        Reported by <nroycea+gnu@gmail.com> in
        <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78376>.
        * lib/fts_.h (__GNUC_PREREQ): Define macro on clang or if the system
index 9f0df25eede511de9b00b950e19897da11320864..170210bca84ec498196de79c56c7155d993bf182 100644 (file)
@@ -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 @@ _ACEOF
     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