[openssh-commits] [openssh] 01/01: Use "doc" man page format if mandoc present.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri May 10 15:09:24 AEST 2019

This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 285546b73e2c172565c992a695927ac8cf3b4cc6
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Fri May 10 15:04:42 2019 +1000

    Use "doc" man page format if mandoc present.
    Previously configure would not select the "doc" man page format if
    mandoc was present but nroff was not.  This checks for mandoc first
    and removes a now-superflous AC_PATH_PROG.  Based on a patch from
    vehk at vehk.de and feedback from schwarze at usta.de.
 configure.ac | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9022ee9c..17a11dee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,11 +41,11 @@ AC_PATH_PROG([TEST_MINUS_S_SH], [ksh])
 AC_PATH_PROG([SH], [sh])
 AC_PATH_PROG([GROFF], [groff])
-AC_PATH_PROG([NROFF], [nroff])
+AC_PATH_PROG([NROFF], [nroff awf])
 AC_PATH_PROG([MANDOC], [mandoc])
-dnl select manpage formatter
+dnl select manpage formatter to be used to build "cat" format pages.
 if test "x$MANDOC" != "x" ; then
 elif test "x$NROFF" != "x" ; then
@@ -4626,9 +4626,9 @@ 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])
-	if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
+	if ${MANDOC} ${srcdir}/ssh.1 >/dev/null 2>&1; then
+		MANTYPE=doc
+	elif ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
 	elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then

To stop receiving notification emails like this one, please contact
djm at mindrot.org.

More information about the openssh-commits mailing list