configure.ac: detect mandoc and set MANTYPE=doc
OpenBSD uses mandoc [Feature #13981] [ruby-core:83146] Note: AC_PATH_PROGS_FEATURE_CHECK is autoconf 2.62 feature, but current CRuby declares AC_PREREQ(2.67); it's safe to use. Patched by kernigh (George Koehler) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f52a49130f
commit
4f966c0a68
14
configure.ac
14
configure.ac
@ -4523,8 +4523,18 @@ AC_ARG_WITH(mantype,
|
||||
[AC_MSG_ERROR(invalid man type: $withval)])
|
||||
])
|
||||
AS_IF([test -z "$MANTYPE"], [
|
||||
AC_PATH_PROGS(NROFF, nroff awf, /bin/false, "/usr/bin:/usr/ucb")
|
||||
AS_IF([${NROFF} -mdoc ${srcdir}/man/ruby.1 >/dev/null 2>&1], [
|
||||
dnl Looks for nroff with -mdoc support.
|
||||
AC_CACHE_VAL([ac_cv_path_NROFF], [
|
||||
AC_PATH_PROGS_FEATURE_CHECK([NROFF],
|
||||
[nroff awf mandoc],
|
||||
[$ac_path_NROFF -mdoc ${srcdir}/man/ruby.1 \
|
||||
>/dev/null 2>&1 &&
|
||||
ac_cv_path_NROFF=$ac_path_NROFF \
|
||||
ac_path_NROFF_found=:],
|
||||
[], ["/usr/bin:/usr/ucb"]
|
||||
)
|
||||
])
|
||||
AS_IF([test -n "$ac_cv_path_NROFF"], [
|
||||
MANTYPE=doc
|
||||
], [
|
||||
MANTYPE=man
|
||||
|
Loading…
x
Reference in New Issue
Block a user