groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 39/50: m4/groff.m4: Update wording of error message.


From: G. Branden Robinson
Subject: [groff] 39/50: m4/groff.m4: Update wording of error message.
Date: Sat, 21 May 2022 12:17:29 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit e1c3ae2a4c51613beb79413a6ba23f07d094f74b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri May 20 08:20:10 2022 -0500

    m4/groff.m4: Update wording of error message.
    
    * m4/groff.m4 (GROFF_PROG_YACC): Update wording of error message: we
      search for "yacc", so report it as missing if it is not found (along
      with "byacc" and "bison").
    
    Make code style more readable.
---
 ChangeLog   |  6 ++++++
 m4/groff.m4 | 23 +++++++++++------------
 2 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d398b14f..b4ba6d06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-05-20  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * m4/groff.m4 (GROFF_PROG_YACC): Update wording of error
+       message: we search for "yacc", so report it as missing if it is
+       not found (along with "byacc" and "bison").
+
 2022-05-20  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * configure.ac: Fix shell style nits.  Get rid of string
diff --git a/m4/groff.m4 b/m4/groff.m4
index 4c026fff..cc8fa515 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -49,19 +49,18 @@ AC_DEFUN([GROFF_PRINT],
    AC_SUBST([DVIPRINT])
    AC_MSG_RESULT([$DVIPRINT])])
 
-
-# Bison generated parsers have problems with C++ compilers other than
-# g++.  So byacc is preferred over bison.  If no 'yacc' program is
-# available, we issue an error only if building from the source as in
-# distributed tarball files generated by 'yacc' are already present.
-
-AC_DEFUN([GROFF_PROG_YACC],
-  [AC_CHECK_PROGS([YACC], [byacc 'bison -y' yacc], [missing])
-  if test "$YACC" = missing -a -d "$srcdir"/.git; then
-    AC_MSG_ERROR([Could not find 'yacc' or 'bison'], 1)
+# Bison-generated parsers have problems with C++ compilers other than
+# g++.  Thus, byacc is preferred over bison.  If no yacc program is
+# available, we issue an error only if building from Git, because files
+# generated by a yacc are already present in the distribution archive.
+
+AC_DEFUN([GROFF_PROG_YACC], [
+  AC_CHECK_PROGS([YACC], [byacc 'bison -y' yacc], [missing])
+  if test "$YACC" = missing -a -d "$srcdir"/.git
+  then
+    AC_MSG_ERROR([could not find 'byacc', 'bison', or 'yacc'], 1)
   fi
-  ])
-
+])
 
 # We need Perl 5.6.1 or newer.
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]