groff-commit
[Top][All Lists]
Advanced

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

[groff] 11/19: m4/groff.m4: Use separate variable for message.


From: G. Branden Robinson
Subject: [groff] 11/19: m4/groff.m4: Use separate variable for message.
Date: Mon, 8 Nov 2021 18:56:02 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 15eb9b11ad91fc55e2d45c038d1fdbce546c847e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Nov 9 07:32:19 2021 +1100

    m4/groff.m4: Use separate variable for message.
    
    * m4/groff.m4 (GROFF_TMAC): Use separate shell variable for
      `AC_MSG_RESULT()` content since the human-readable string we populate
      it with in the empty case is not appropriate for later
      `AC_SUBST()`-itution.  Problem introduced by me in commit 19670348, 31
      October.
---
 ChangeLog   | 8 ++++++++
 m4/groff.m4 | 5 +++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bb86ff7..79a05bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2021-11-09  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * m4/groff.m4 (GROFF_TMAC): Use separate shell variable for
+       `AC_MSG_RESULT()` content since the human-readable string we
+       populate it with in the empty case is not appropriate for later
+       `AC_SUBST()`-itution.  Problem introduced by me in commit
+       19670348, 31 October.
+
+2021-11-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/tmac.am (MOSTLYCLEANFILES): Remove `$(TMACMDOCFILES)`.
        This variable, formerly named `TMACMDOCSTRIPFILES`, should not
        be used in a clean target because its contents are (no longer)
diff --git a/m4/groff.m4 b/m4/groff.m4
index 1f3e5e9..471f74f 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -1073,8 +1073,9 @@ AC_DEFUN([GROFF_TMAC],
      done
      rm -f conftest.sol
    fi
-   test "x$tmac_wrap" = "x" && tmac_wrap="none found"
-   AC_MSG_RESULT([$tmac_wrap])
+   tmac_wrap_result="none found"
+   test "x$tmac_wrap" = "x" || tmac_wrap_result="$tmac_wrap"
+   AC_MSG_RESULT([$tmac_wrap_result])
    AC_SUBST([tmac_wrap])])
 
 



reply via email to

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