Skip to content

Commit 2dc10cf

Browse files
committed
Fix check for which man page type to use with nroff
Fixes a bug where configure would use *.man instead of *.mdoc on systems without mandoc.
1 parent 8e7e0e2 commit 2dc10cf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17775,7 +17775,7 @@ then :
1777517775
else case e in #(
1777617776
e)
1777717777
case "$ac_cv_path_NROFFPROG" in
17778-
*mandoc|nroff)
17778+
*mandoc|*nroff)
1777917779
# Prefer mdoc format for mandoc (or when no formatter is present).
1778017780
sudo_cv_var_mantype="mdoc"
1778117781
;;

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ AC_CACHE_CHECK([which macro set to use for manual pages],
17421742
[sudo_cv_var_mantype],
17431743
[
17441744
case "$ac_cv_path_NROFFPROG" in
1745-
*mandoc|nroff)
1745+
*mandoc|*nroff)
17461746
# Prefer mdoc format for mandoc (or when no formatter is present).
17471747
sudo_cv_var_mantype="mdoc"
17481748
;;

0 commit comments

Comments
 (0)