1*5e7646d2SAndroid Build Coastguard Worker<!DOCTYPE HTML> 2*5e7646d2SAndroid Build Coastguard Worker<html> 3*5e7646d2SAndroid Build Coastguard Worker<!-- SECTION: Man Pages --> 4*5e7646d2SAndroid Build Coastguard Worker<head> 5*5e7646d2SAndroid Build Coastguard Worker <link rel="stylesheet" type="text/css" href="../cups-printable.css"> 6*5e7646d2SAndroid Build Coastguard Worker <title>cups-config(1)</title> 7*5e7646d2SAndroid Build Coastguard Worker</head> 8*5e7646d2SAndroid Build Coastguard Worker<body> 9*5e7646d2SAndroid Build Coastguard Worker<h1 class="title">cups-config(1)</h1> 10*5e7646d2SAndroid Build Coastguard Worker<h2 class="title"><a name="NAME">Name</a></h2> 11*5e7646d2SAndroid Build Coastguard Workercups-config - get cups api, compiler, directory, and link information. 12*5e7646d2SAndroid Build Coastguard Worker<h2 class="title"><a name="SYNOPSIS">Synopsis</a></h2> 13*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 14*5e7646d2SAndroid Build Coastguard Worker<i>--api-version</i> 15*5e7646d2SAndroid Build Coastguard Worker<br> 16*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 17*5e7646d2SAndroid Build Coastguard Worker<i>--build</i> 18*5e7646d2SAndroid Build Coastguard Worker<br> 19*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 20*5e7646d2SAndroid Build Coastguard Worker<i>--cflags</i> 21*5e7646d2SAndroid Build Coastguard Worker<br> 22*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 23*5e7646d2SAndroid Build Coastguard Worker<i>--datadir</i> 24*5e7646d2SAndroid Build Coastguard Worker<br> 25*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 26*5e7646d2SAndroid Build Coastguard Worker<i>--help</i> 27*5e7646d2SAndroid Build Coastguard Worker<br> 28*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 29*5e7646d2SAndroid Build Coastguard Worker<i>--ldflags</i> 30*5e7646d2SAndroid Build Coastguard Worker<br> 31*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 32*5e7646d2SAndroid Build Coastguard Worker[ 33*5e7646d2SAndroid Build Coastguard Worker<i>--image</i> 34*5e7646d2SAndroid Build Coastguard Worker] [ 35*5e7646d2SAndroid Build Coastguard Worker<i>--static</i> 36*5e7646d2SAndroid Build Coastguard Worker] 37*5e7646d2SAndroid Build Coastguard Worker<i>--libs</i> 38*5e7646d2SAndroid Build Coastguard Worker<br> 39*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 40*5e7646d2SAndroid Build Coastguard Worker<i>--serverbin</i> 41*5e7646d2SAndroid Build Coastguard Worker<br> 42*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 43*5e7646d2SAndroid Build Coastguard Worker<i>--serverroot</i> 44*5e7646d2SAndroid Build Coastguard Worker<br> 45*5e7646d2SAndroid Build Coastguard Worker<b>cups-config</b> 46*5e7646d2SAndroid Build Coastguard Worker<i>--version</i> 47*5e7646d2SAndroid Build Coastguard Worker<br> 48*5e7646d2SAndroid Build Coastguard Worker<h2 class="title"><a name="DESCRIPTION">Description</a></h2> 49*5e7646d2SAndroid Build Coastguard WorkerThe <b>cups-config</b> 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. 50*5e7646d2SAndroid Build Coastguard WorkerAll values are reported to the standard output. 51*5e7646d2SAndroid Build Coastguard Worker<h2 class="title"><a name="OPTIONS">Options</a></h2> 52*5e7646d2SAndroid Build Coastguard WorkerThe <b>cups-config</b> command accepts the following command-line options: 53*5e7646d2SAndroid Build Coastguard Worker<dl class="man"> 54*5e7646d2SAndroid Build Coastguard Worker<dt><b>--api-version</b> 55*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the current API version (major.minor). 56*5e7646d2SAndroid Build Coastguard Worker<dt><b>--build</b> 57*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports a system-specific build number. 58*5e7646d2SAndroid Build Coastguard Worker<dt><b>--cflags</b> 59*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the necessary compiler options. 60*5e7646d2SAndroid Build Coastguard Worker<dt><b>--datadir</b> 61*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the default CUPS data directory. 62*5e7646d2SAndroid Build Coastguard Worker<dt><b>--help</b> 63*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the program usage message. 64*5e7646d2SAndroid Build Coastguard Worker<dt><b>--ldflags</b> 65*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the necessary linker options. 66*5e7646d2SAndroid Build Coastguard Worker<dt><b>--libs</b> 67*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the necessary libraries to link to. 68*5e7646d2SAndroid Build Coastguard Worker<dt><b>--serverbin</b> 69*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the default CUPS binary directory, where filters and backends are stored. 70*5e7646d2SAndroid Build Coastguard Worker<dt><b>--serverroot</b> 71*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the default CUPS configuration file directory. 72*5e7646d2SAndroid Build Coastguard Worker<dt><b>--static</b> 73*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">When used with <i>--libs</i>, reports the static libraries instead of the default (shared) libraries. 74*5e7646d2SAndroid Build Coastguard Worker<dt><b>--version</b> 75*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Reports the full version number of the CUPS installation (major.minor.patch). 76*5e7646d2SAndroid Build Coastguard Worker</dl> 77*5e7646d2SAndroid Build Coastguard Worker<h2 class="title"><a name="EXAMPLES">Examples</a></h2> 78*5e7646d2SAndroid Build Coastguard WorkerShow the currently installed version of CUPS: 79*5e7646d2SAndroid Build Coastguard Worker<pre class="man"> 80*5e7646d2SAndroid Build Coastguard Worker 81*5e7646d2SAndroid Build Coastguard Worker cups-config --version 82*5e7646d2SAndroid Build Coastguard Worker 83*5e7646d2SAndroid Build Coastguard Worker</pre> 84*5e7646d2SAndroid Build Coastguard WorkerCompile a simple one-file CUPS filter: 85*5e7646d2SAndroid Build Coastguard Worker<pre class="man"> 86*5e7646d2SAndroid Build Coastguard Worker 87*5e7646d2SAndroid Build Coastguard Worker cc `cups-config --cflags --ldflags` -o filter filter.c \ 88*5e7646d2SAndroid Build Coastguard Worker `cups-config --libs` 89*5e7646d2SAndroid Build Coastguard Worker</pre> 90*5e7646d2SAndroid Build Coastguard Worker<h2 class="title"><a name="DEPRECATED_OPTIONS">Deprecated Options</a></h2> 91*5e7646d2SAndroid Build Coastguard WorkerThe following options are deprecated but continue to work for backwards compatibility: 92*5e7646d2SAndroid Build Coastguard Worker<dl class="man"> 93*5e7646d2SAndroid Build Coastguard Worker<dt><b>--image</b> 94*5e7646d2SAndroid Build Coastguard Worker<dd style="margin-left: 5.0em">Formerly used to add the CUPS imaging library to the list of libraries. 95*5e7646d2SAndroid Build Coastguard Worker</dl> 96*5e7646d2SAndroid Build Coastguard Worker<h2 class="title"><a name="SEE_ALSO">See Also</a></h2> 97*5e7646d2SAndroid Build Coastguard Worker<b>cups</b>(1), 98*5e7646d2SAndroid Build Coastguard WorkerCUPS Online Help (<a href="http://localhost:631/help">http://localhost:631/help</a>) 99*5e7646d2SAndroid Build Coastguard Worker<h2 class="title"><a name="COPYRIGHT">Copyright</a></h2> 100*5e7646d2SAndroid Build Coastguard WorkerCopyright © 2007-2019 by Apple Inc. 101*5e7646d2SAndroid Build Coastguard Worker 102*5e7646d2SAndroid Build Coastguard Worker</body> 103*5e7646d2SAndroid Build Coastguard Worker</html> 104