]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-manpages.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
CommitLineData
ef416fc2 1dnl
f7faf1f5 2dnl "$Id: cups-manpages.m4 5466 2006-04-26 19:52:27Z mike $"
ef416fc2 3dnl
4dnl Manpage stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7dnl
8dnl These coded instructions, statements, and computer programs are the
9dnl property of Easy Software Products and are protected by Federal
10dnl copyright law. Distribution and use rights are outlined in the file
11dnl "LICENSE.txt" which should have been included with this file. If this
12dnl file is missing or damaged please contact Easy Software Products
13dnl at:
14dnl
15dnl Attn: CUPS Licensing Information
16dnl Easy Software Products
17dnl 44141 Airport View Drive, Suite 204
18dnl Hollywood, Maryland 20636 USA
19dnl
20dnl Voice: (301) 373-9600
21dnl EMail: cups-info@cups.org
22dnl WWW: http://www.cups.org
23dnl
24
25dnl Fix "mandir" variable...
26if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
27 case "$uname" in
28 Darwin* | Linux | GNU | *BSD* | AIX*)
29 # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
30 mandir="/usr/share/man"
31 AMANDIR="/usr/share/man"
32 PMANDIR="/usr/share/man"
33 ;;
34 IRIX)
35 # SGI IRIX
36 mandir="/usr/share/catman/u_man"
37 AMANDIR="/usr/share/catman/a_man"
38 PMANDIR="/usr/share/catman/p_man"
39 ;;
40 *)
41 # All others
42 mandir="/usr/man"
43 AMANDIR="/usr/man"
44 PMANDIR="/usr/man"
45 ;;
46 esac
47else
48 AMANDIR="$mandir"
49 PMANDIR="$mandir"
50fi
51
52AC_SUBST(AMANDIR)
53AC_SUBST(PMANDIR)
54
55dnl Setup manpage extensions...
56case "$uname" in
57 *BSD* | Darwin*)
58 # *BSD
59 MAN1EXT=1
60 MAN5EXT=5
bd7854cb 61 MAN7EXT=7
ef416fc2 62 MAN8EXT=8
63 MAN8DIR=8
64 ;;
65 IRIX*)
66 # SGI IRIX
67 MAN1EXT=1
68 MAN5EXT=5
bd7854cb 69 MAN7EXT=7
ef416fc2 70 MAN8EXT=1m
71 MAN8DIR=1
72 ;;
73 SunOS* | HP-UX*)
74 # Solaris and HP-UX
75 MAN1EXT=1
76 MAN5EXT=5
bd7854cb 77 MAN7EXT=7
ef416fc2 78 MAN8EXT=1m
79 MAN8DIR=1m
80 ;;
81 Linux* | GNU*)
82 # Linux and GNU Hurd
83 MAN1EXT=1.gz
84 MAN5EXT=5.gz
bd7854cb 85 MAN7EXT=7.gz
ef416fc2 86 MAN8EXT=8.gz
87 MAN8DIR=8
88 ;;
89 *)
90 # All others
91 MAN1EXT=1
92 MAN5EXT=5
bd7854cb 93 MAN7EXT=7
ef416fc2 94 MAN8EXT=8
95 MAN8DIR=8
96 ;;
97esac
98
99AC_SUBST(MAN1EXT)
100AC_SUBST(MAN5EXT)
bd7854cb 101AC_SUBST(MAN7EXT)
ef416fc2 102AC_SUBST(MAN8EXT)
103AC_SUBST(MAN8DIR)
104
105dnl
f7faf1f5 106dnl End of "$Id: cups-manpages.m4 5466 2006-04-26 19:52:27Z mike $".
ef416fc2 107dnl