diff options
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f6ed390e..5b4bc4a2 100644 --- a/configure.ac +++ b/configure.ac @@ -610,7 +610,16 @@ case "$host_os" in *solaris*) AC_MSG_RESULT(sunos) PLATFORM=sunos - MANFORMAT=man + case `/usr/bin/nroff --version 2>&1` in + *GNU*) + # Solaris 11.4 and later use GNU groff. + MANFORMAT=mdoc + ;; + *) + # Solaris 2.0 to 11.3 use AT&T nroff. + MANFORMAT=man + ;; + esac ;; *hpux*) AC_MSG_RESULT(hpux) |