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