]> git.ipfire.org Git - thirdparty/cups.git/blame - man/cups-config.1
Greatly simplify the man page handling.
[thirdparty/cups.git] / man / cups-config.1
CommitLineData
ef416fc2 1.\"
7131e285 2.\" cups-config man page for CUPS.
ef416fc2 3.\"
87030afb
MS
4.\" Copyright © 2007-2019 by Apple Inc.
5.\" Copyright © 1997-2006 by Easy Software Products.
ef416fc2 6.\"
87030afb
MS
7.\" Licensed under Apache License v2.0. See the file "LICENSE" for more
8.\" information.
ef416fc2 9.\"
87030afb 10.TH cups-config 1 "CUPS" "26 April 2019" "Apple Inc."
ef416fc2 11.SH NAME
7131e285 12cups\-config \- get cups api, compiler, directory, and link information.
ef416fc2 13.SH SYNOPSIS
7131e285
MS
14.B cups\-config
15.I \-\-api\-version
ef416fc2 16.br
7131e285
MS
17.B cups\-config
18.I \-\-build
e4572d57 19.br
7131e285
MS
20.B cups\-config
21.I \-\-cflags
ef416fc2 22.br
7131e285
MS
23.B cups\-config
24.I \-\-datadir
ef416fc2 25.br
7131e285
MS
26.B cups\-config
27.I \-\-help
ef416fc2 28.br
7131e285
MS
29.B cups\-config
30.I \-\-ldflags
ef416fc2 31.br
7131e285 32.B cups\-config
ef416fc2 33[
7131e285 34.I \-\-image
ef416fc2 35] [
7131e285
MS
36.I \-\-static
37]
38.I \-\-libs
ef416fc2 39.br
7131e285
MS
40.B cups\-config
41.I \-\-serverbin
ef416fc2 42.br
7131e285
MS
43.B cups\-config
44.I \-\-serverroot
ef416fc2 45.br
46.B cups-config
7131e285 47.I \-\-version
ef416fc2 48.br
49.SH DESCRIPTION
7131e285
MS
50The \fBcups-config\fR command allows application developers to determine the necessary command-line options for the compiler and linker, as well as the installation directories for filters, configuration files, and drivers.
51All values are reported to the standard output.
bd7854cb 52.SH OPTIONS
7131e285 53The \fBcups-config\fR command accepts the following command-line options:
bd7854cb 54.TP 5
7131e285
MS
55.B \-\-api-version
56Reports the current API version (major.minor).
bd7854cb 57.TP 5
7131e285
MS
58.B \-\-build
59Reports a system-specific build number.
e4572d57 60.TP 5
7131e285
MS
61.B \-\-cflags
62Reports the necessary compiler options.
bd7854cb 63.TP 5
7131e285
MS
64.B \-\-datadir
65Reports the default CUPS data directory.
bd7854cb 66.TP 5
7131e285
MS
67.B \-\-help
68Reports the program usage message.
bd7854cb 69.TP 5
7131e285
MS
70.B \-\-ldflags
71Reports the necessary linker options.
bd7854cb 72.TP 5
7131e285
MS
73.B \-\-libs
74Reports the necessary libraries to link to.
bd7854cb 75.TP 5
7131e285
MS
76.B \-\-serverbin
77Reports the default CUPS binary directory, where filters and backends are stored.
bd7854cb 78.TP 5
7131e285
MS
79.B \-\-serverroot
80Reports the default CUPS configuration file directory.
bd7854cb 81.TP 5
7131e285
MS
82.B \-\-static
83When used with \fI\-\-libs\fR, reports the static libraries instead of the default (shared) libraries.
bd7854cb 84.TP 5
7131e285
MS
85.B \-\-version
86Reports the full version number of the CUPS installation (major.minor.patch).
87.SH EXAMPLES
88Show the currently installed version of CUPS:
89.nf
90
91 cups-config \-\-version
92
93.fi
94Compile a simple one-file CUPS filter:
95.nf
96
97 cc `cups\-config \-\-cflags \-\-ldflags` \-o filter filter.c \\
98 `cups\-config \-\-libs`
99.fi
87030afb
MS
100.SH DEPRECATED OPTIONS
101The following options are deprecated but continue to work for backwards compatibility:
102.TP 5
103.B \-\-image
104Formerly used to add the CUPS imaging library to the list of libraries.
ef416fc2 105.SH SEE ALSO
7131e285
MS
106.BR cups (1),
107CUPS Online Help (http://localhost:631/help)
ef416fc2 108.SH COPYRIGHT
87030afb 109Copyright \[co] 2007-2019 by Apple Inc.