allow xman to be cross build (patch)
Jeremy C. Reed
reed at reedmedia.net
Tue Jul 31 06:59:34 PDT 2007
On Sat, 28 Jul 2007, Daniel Stone wrote:
> On Sat, Jul 28, 2007 at 07:25:21AM -0500, Jeremy C. Reed wrote:
> > 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?
>
> --with-manconfig is far better than random environment variables.
Here is a patch I tested but not committed yet:
diff --git a/configure.ac b/configure.ac
index 3adfde3..3c79340 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,11 +63,18 @@ fi
# Checks for pkg-config packages
XAW_CHECK_XPRINT_SUPPORT(XMAN)
+AC_ARG_WITH(manconfig,
+ AC_HELP_STRING([--with-manconfig=<filename>],
+ [Set default system man configuration file]),
+ [MANCONF="$withval"], [])
+if test x$MANCONF = x; then
# Check for man page config files
-AC_CHECK_FILE([/etc/man.conf], [MANCONF="/etc/man.conf"],
- AC_CHECK_FILE([/etc/man.config], [MANCONF="/etc/man.config"],
+ 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])
I will commit this soon if nobody disagrees.
Jeremy C. Reed
``Of course it runs NetBSD.''
http://www.NetBSD.org/
More information about the xorg
mailing list