]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-manpages.m4
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / config-scripts / cups-manpages.m4
1 dnl
2 dnl Manpage stuff for CUPS.
3 dnl
4 dnl Copyright 2007-2013 by Apple Inc.
5 dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
6 dnl
7 dnl These coded instructions, statements, and computer programs are the
8 dnl property of Apple Inc. and are protected by Federal copyright
9 dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 dnl which should have been included with this file. If this file is
11 dnl file is missing or damaged, see the license at "http://www.cups.org/".
12 dnl
13
14 dnl Fix "mandir" variable...
15 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
16 # New GNU "standards" break previous ones, so make sure we use
17 # the right default location for the operating system...
18 mandir="\${prefix}/man"
19 fi
20
21 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
22 case "$uname" in
23 Darwin* | Linux | GNU | *BSD*)
24 # Darwin, MacOS X, Linux, GNU HURD, and *BSD
25 mandir="/usr/share/man"
26 AMANDIR="/usr/share/man"
27 PMANDIR="/usr/share/man"
28 ;;
29 *)
30 # All others
31 mandir="/usr/man"
32 AMANDIR="/usr/man"
33 PMANDIR="/usr/man"
34 ;;
35 esac
36 else
37 AMANDIR="$mandir"
38 PMANDIR="$mandir"
39 fi
40
41 AC_SUBST(AMANDIR)
42 AC_SUBST(PMANDIR)
43
44 dnl Setup manpage extensions...
45 case "$uname" in
46 SunOS*)
47 # Solaris
48 MAN1EXT=1
49 MAN5EXT=5
50 MAN7EXT=7
51 MAN8EXT=1m
52 MAN8DIR=1m
53 ;;
54 Linux* | GNU* | Darwin*)
55 # Linux, GNU Hurd, and OS X
56 MAN1EXT=1.gz
57 MAN5EXT=5.gz
58 MAN7EXT=7.gz
59 MAN8EXT=8.gz
60 MAN8DIR=8
61 ;;
62 *)
63 # All others
64 MAN1EXT=1
65 MAN5EXT=5
66 MAN7EXT=7
67 MAN8EXT=8
68 MAN8DIR=8
69 ;;
70 esac
71
72 AC_SUBST(MAN1EXT)
73 AC_SUBST(MAN5EXT)
74 AC_SUBST(MAN7EXT)
75 AC_SUBST(MAN8EXT)
76 AC_SUBST(MAN8DIR)