summaryrefslogtreecommitdiff
path: root/m4/groff.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/groff.m4')
-rw-r--r--m4/groff.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4
index 5ba4a3919..f7e30fb1b 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -894,6 +894,8 @@ AC_DEFUN([GROFF_TMAC],
AC_SUBST([tmac_wrap])])
+# Searching if a non-GNU Troff is installed. The built-in register
+# \n[.g] is always 1 in GNU Troff.
AC_DEFUN([GROFF_G],
[AC_MSG_CHECKING([for existing troff installation])
if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then