Okay if I commit the following from pkgsrc that allows xman to be cross
built by not assuming the detected configuration on the build system is
correct default for the target system (by setting MANCONF in environment)?
Or do you want me to add a --with-manconfig option?
Or should it check $host_os (like it does for MAN_CONFIG_STYLE) to figure
out MANCONF?
diff --git a/configure.ac b/configure.ac
index 3adfde3..7ae63c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,10 +64,12 @@ fi
XAW_CHECK_XPRINT_SUPPORT(XMAN)
# Check for man page config files
+if test x"$MANCONF" = x; then
AC_CHECK_FILE([/etc/man.conf], [MANCONF="/etc/man.conf"],
AC_CHECK_FILE([/etc/man.config], [MANCONF="/etc/man.config"],
AC_CHECK_FILE([/etc/manpath.config], [MANCONF="/etc/manpath.config"])))
-
+fi
+
if test x$MANCONF != x ; then
AC_DEFINE_UNQUOTED(MANCONF, "$MANCONF",
[Define to path to man config file if you have one])
Jeremy C. Reed