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