[PATCH] configure.ac: Add mandoc as valid formatter

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

 



Hi,

On systems that have mandoc installed but are missing an nroff binary,
the configure script will fall back to pre-formatted manual pages
despite the fact that mandoc could be used.

The proposed patch adds mandoc as a valid formatter to configure.ac. As
mandoc supports the -mdoc flag, it can simply be added to the list of
nroff-like binaries.

Wolfgang
diff --git a/configure.ac b/configure.ac
index 9022ee9c..813b7fa2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4627,7 +4627,7 @@ AC_ARG_WITH([mantype],
 )
 if test -z "$MANTYPE"; then
 	TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
-	AC_PATH_PROGS([NROFF], [nroff awf], [/bin/false], [$TestPath])
+	AC_PATH_PROGS([NROFF], [mandoc nroff awf], [/bin/false], [$TestPath])
 	if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
 		MANTYPE=doc
 	elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux