]> git.ipfire.org Git - thirdparty/cups.git/blame - man/cups-config.man
Sanitize hostname as needed.
[thirdparty/cups.git] / man / cups-config.man
CommitLineData
ef416fc2 1.\"
e4e5666b 2.\" "$Id$"
ef416fc2 3.\"
7131e285 4.\" cups-config man page for CUPS.
ef416fc2 5.\"
7131e285
MS
6.\" Copyright 2007-2014 by Apple Inc.
7.\" Copyright 1997-2006 by Easy Software Products.
ef416fc2 8.\"
7131e285
MS
9.\" These coded instructions, statements, and computer programs are the
10.\" property of Apple Inc. and are protected by Federal copyright
11.\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
12.\" which should have been included with this file. If this file is
13.\" file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 14.\"
7131e285 15.TH cups-config 1 "CUPS" "15 April 2014" "Apple Inc."
ef416fc2 16.SH NAME
7131e285 17cups\-config \- get cups api, compiler, directory, and link information.
ef416fc2 18.SH SYNOPSIS
7131e285
MS
19.B cups\-config
20.I \-\-api\-version
ef416fc2 21.br
7131e285
MS
22.B cups\-config
23.I \-\-build
e4572d57 24.br
7131e285
MS
25.B cups\-config
26.I \-\-cflags
ef416fc2 27.br
7131e285
MS
28.B cups\-config
29.I \-\-datadir
ef416fc2 30.br
7131e285
MS
31.B cups\-config
32.I \-\-help
ef416fc2 33.br
7131e285
MS
34.B cups\-config
35.I \-\-ldflags
ef416fc2 36.br
7131e285 37.B cups\-config
ef416fc2 38[
7131e285 39.I \-\-image
ef416fc2 40] [
7131e285
MS
41.I \-\-static
42]
43.I \-\-libs
ef416fc2 44.br
7131e285
MS
45.B cups\-config
46.I \-\-serverbin
ef416fc2 47.br
7131e285
MS
48.B cups\-config
49.I \-\-serverroot
ef416fc2 50.br
51.B cups-config
7131e285 52.I \-\-version
ef416fc2 53.br
54.SH DESCRIPTION
7131e285
MS
55The \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.
56All values are reported to the standard output.
bd7854cb 57.SH OPTIONS
7131e285 58The \fBcups-config\fR command accepts the following command-line options:
bd7854cb 59.TP 5
7131e285
MS
60.B \-\-api-version
61Reports the current API version (major.minor).
bd7854cb 62.TP 5
7131e285
MS
63.B \-\-build
64Reports a system-specific build number.
e4572d57 65.TP 5
7131e285
MS
66.B \-\-cflags
67Reports the necessary compiler options.
bd7854cb 68.TP 5
7131e285
MS
69.B \-\-datadir
70Reports the default CUPS data directory.
bd7854cb 71.TP 5
7131e285
MS
72.B \-\-help
73Reports the program usage message.
bd7854cb 74.TP 5
7131e285
MS
75.B \-\-image
76When used with \fI\-\-libs\fR, adds the CUPS imaging library to the
77list of libraries.
bd7854cb 78.TP 5
7131e285
MS
79.B \-\-ldflags
80Reports the necessary linker options.
bd7854cb 81.TP 5
7131e285
MS
82.B \-\-libs
83Reports the necessary libraries to link to.
bd7854cb 84.TP 5
7131e285
MS
85.B \-\-serverbin
86Reports the default CUPS binary directory, where filters and backends are stored.
bd7854cb 87.TP 5
7131e285
MS
88.B \-\-serverroot
89Reports the default CUPS configuration file directory.
bd7854cb 90.TP 5
7131e285
MS
91.B \-\-static
92When used with \fI\-\-libs\fR, reports the static libraries instead of the default (shared) libraries.
bd7854cb 93.TP 5
7131e285
MS
94.B \-\-version
95Reports the full version number of the CUPS installation (major.minor.patch).
96.SH EXAMPLES
97Show the currently installed version of CUPS:
98.nf
99
100 cups-config \-\-version
101
102.fi
103Compile a simple one-file CUPS filter:
104.nf
105
106 cc `cups\-config \-\-cflags \-\-ldflags` \-o filter filter.c \\
107 `cups\-config \-\-libs`
108.fi
ef416fc2 109.SH SEE ALSO
7131e285
MS
110.BR cups (1),
111CUPS Online Help (http://localhost:631/help)
ef416fc2 112.SH COPYRIGHT
7131e285 113Copyright \[co] 2007-2014 by Apple Inc.
ef416fc2 114.\"
e4e5666b 115.\" End of "$Id$".
ef416fc2 116.\"