85 lines
1.6 KiB
Text
85 lines
1.6 KiB
Text
$NetBSD: patch-ao,v 1.7 2007/03/15 19:01:12 joerg Exp $
|
|
|
|
--- config-scripts/cups-manpages.m4.orig 2007-02-05 23:09:00.000000000 +1300
|
|
+++ config-scripts/cups-manpages.m4
|
|
@@ -22,6 +22,8 @@ dnl EMail: cups-info@cups.org
|
|
dnl WWW: http://www.cups.org
|
|
dnl
|
|
|
|
+AC_ARG_WITH(manext, [ --with-manext set man page extension style (bsd,irix,sysv,none)],manext="$withval",manext="")
|
|
+
|
|
dnl Fix "mandir" variable...
|
|
if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
|
|
# New GNU "standards" break previous ones, so make sure we use
|
|
@@ -59,41 +61,60 @@ AC_SUBST(AMANDIR)
|
|
AC_SUBST(PMANDIR)
|
|
|
|
dnl Setup manpage extensions...
|
|
-case "$uname" in
|
|
- *BSD* | Darwin*)
|
|
- # *BSD
|
|
+if test x$manext = x; then
|
|
+ case "$uname" in
|
|
+ *BSD* | Darwin* | DragonFly*)
|
|
+ # *BSD and Darwin (MacOS X)
|
|
+ manext=bsd
|
|
+ ;;
|
|
+ IRIX*)
|
|
+ # SGI IRIX
|
|
+ manext=irix
|
|
+ ;;
|
|
+ SunOS* | HP-UX*)
|
|
+ # Solaris and HP-UX
|
|
+ manext=sysv
|
|
+ ;;
|
|
+ Linux* | GNU*)
|
|
+ # Linux and GNU Hurd
|
|
+ manext=linux
|
|
+ ;;
|
|
+ *)
|
|
+ # All others
|
|
+ manext=none
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+case "$manext" in
|
|
+ bsd)
|
|
MAN1EXT=1
|
|
MAN5EXT=5
|
|
MAN7EXT=7
|
|
MAN8EXT=8
|
|
MAN8DIR=8
|
|
;;
|
|
- IRIX*)
|
|
- # SGI IRIX
|
|
+ irix)
|
|
MAN1EXT=1
|
|
MAN5EXT=5
|
|
MAN7EXT=7
|
|
MAN8EXT=1m
|
|
MAN8DIR=1
|
|
;;
|
|
- SunOS* | HP-UX*)
|
|
- # Solaris and HP-UX
|
|
+ sysv)
|
|
MAN1EXT=1
|
|
MAN5EXT=5
|
|
MAN7EXT=7
|
|
MAN8EXT=1m
|
|
MAN8DIR=1m
|
|
;;
|
|
- Linux* | GNU*)
|
|
- # Linux and GNU Hurd
|
|
+ linux)
|
|
MAN1EXT=1.gz
|
|
MAN5EXT=5.gz
|
|
MAN7EXT=7.gz
|
|
MAN8EXT=8.gz
|
|
MAN8DIR=8
|
|
;;
|
|
- *)
|
|
- # All others
|
|
+ none|*)
|
|
MAN1EXT=1
|
|
MAN5EXT=5
|
|
MAN7EXT=7
|