10139N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
10139N/A<!
ENTITY suncopy "Copyright (c) 2008, Sun Microsystems, Inc. 10139N/A<!
ENTITY cmd "gpg-error-config">
10139N/A<
refentry id="gpg-error-config-1">
10139N/A<
refmeta><
refentrytitle>&cmd;</
refentrytitle><
manvolnum>1</
manvolnum>
10139N/A<
refmiscinfo class="date">10 Jan 2008</
refmiscinfo>
10139N/A<
refmiscinfo class="sectdesc">&man1;</
refmiscinfo>
10139N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
10139N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
10139N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
10139N/A<
indexterm><
primary>&cmd;</
primary></
indexterm><
indexterm><
primary>
10139N/Ahelper script for building with <
filename>libgpg-error</
filename></
primary></
indexterm>
10139N/A<
refnamediv id="gpg-error-config-1-name"><
refname>&cmd;</
refname><
refpurpose>
10139N/Ahelper script for building with <
filename>libgpg-error</
filename></
refpurpose>
10139N/A<
refsynopsisdiv id="gpg-error-config-1-synp"><
title>&synp-tt;</
title>
10139N/A<
cmdsynopsis><
command>&cmd;</
command><
arg choice="opt"><
option>-version</
option></
arg>
10139N/A<
arg choice="opt"><
option>-prefix=<
replaceable>dir</
replaceable></
option></
arg>
10139N/A<
arg choice="opt"><
option>-cflags</
option></
arg><
arg choice="opt"><
option>
11913N/A-libs</
option></
arg><
arg choice="opt"><
option>-exec-prefix=<
replaceable>dir
10139N/A<
refsect1 id="gpg-error-config-1-desc"><
title>&desc-tt;</
title>
10139N/A<
para>The <
command>&cmd;</
command> tool is used to determine the compiler
10139N/Aand linker flags that should be used to compile and link programs that use
10139N/Athe <
filename>libgpg-error</
filename> library.</
para>
10139N/A<
refsect1 id="gpg-error-config-1-opts"><
title>&opts-tt;</
title>
10139N/A<
para>The following options are supported:</
para>
10139N/A<
variablelist termlength="medium"><
varlistentry><
term><
option>-cflags</
option></
term>
11913N/A<
listitem><
para>Print the compiler flags that are necessary to compile a program
10139N/Ausing the specified library.</
para>
10139N/A<
varlistentry><
term><
option>-exec-prefix=<
replaceable>dir</
replaceable></
option></
term>
11913N/A<
listitem><
para>If specified, use <
replaceable>dir</
replaceable> instead of
10139N/Athe <
literal>exec</
literal> installation prefix that the library was built
10139N/Awith, when computing the output for the <
option>-cflags</
option> and <
option>
10139N/A-libs</
option> options. This option must be specified before any <
option>
10139N/A-libs</
option> or <
option>-cflags</
option> options.</
para>
10139N/A<
varlistentry><
term><
option>-libs</
option></
term><
listitem><
para>Print the
10139N/Alinker flags that are necessary to link with the specified library.</
para>
12927N/A<
varlistentry><
term><
option>-prefix=<
replaceable>dir</
replaceable></
option></
term>
10139N/A<
listitem><
para>If specified, use <
replaceable>dir</
replaceable> instead of
11913N/Athe installation prefix that the library was built with, when computing the
11913N/Aoutput for the <
option>-cflags</
option> and <
option>-libs</
option> options.
11913N/AThis option must be specified before any <
option>-libs</
option> or <
option>
11913N/A-cflags</
option> options. This option is also used for the <
literal>exec</
literal>
11913N/Aprefix if the <
option>-exec-prefix</
option> option is not specified.
11913N/A<
varlistentry><
term><
option>-version</
option></
term><
listitem><
para>Print
11913N/Athe currently installed version of the library on the standard output.</
para>
10139N/A<
refsect1 id="gpg-error-config-1-exam"><
title>&exam-tt;</
title>
11913N/A<
example role="example"><
title>Getting the libgpg-error library version</
title>
11913N/A<
para><
screen>example% <
userinput>&cmd; --version</
userinput></
screen></
para>
11913N/A<
example role="example"><
title>Determining the libraries required to link
11913N/Awith the libgpg-error library</
title>
11913N/A<
para><
screen>example% <
userinput>&cmd; --libs</
userinput></
screen></
para>
11913N/A<
refsect1 id="gpg-error-config-1-exit"><
title>&exit-tt;</
title>
11913N/A<
para>The following exit values are returned:</
para>
11913N/A<
variablelist termlength="xtranarrow"><
varlistentry><
term><
returnvalue>0</
returnvalue></
term>
11913N/A<
listitem><
para>Application exited successfully</
para>
10139N/A<
varlistentry><
term><
returnvalue>>0</
returnvalue></
term><
listitem><
para>Application
11913N/A<
refsect1 id="gpg-error-config-1-file"><
title>&file-tt;</
title>
11913N/A<
para>The following files are used by this application:</
para>
11913N/A<
variablelist termlength="wide"><
varlistentry><
term><
filename>/
usr/
bin/&cmd;</
filename>
11913N/A</
term><
listitem><
para>Executable for <
filename>libgpg-error</
filename> helper
10139N/A<
refsect1 id="gpg-error-config-1-attr"><
title>&attr-tt;</
title>
10139N/A<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
11913N/A<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
11913N/Afor descriptions of the following attributes:</
para>
11913N/A<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
10139N/A<
colspec colname="COLSPEC1" colwidth="1*">
11913N/A<
row><
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry><
entry align="center" 11913N/Avalign="middle">ATTRIBUTE VALUE</
entry></
row>
11913N/A<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entry 11913N/Acolname="COLSPEC1"><
para>Volatile</
para></
entry></
row>
10139N/A<
refsect1 id="gpg-error-config-1-also"><
title>&also-tt;</
title>
10139N/A<!--Reference to another man page--> 10139N/A<!--Reference to a Help manual--> 10139N/A<
citerefentry><
refentrytitle>gpg-error</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
10139N/A<
citerefentry><
refentrytitle>libgpg-error</
refentrytitle><
manvolnum>3</
manvolnum></
citerefentry>,
10139N/A<
citerefentry><
refentrytitle>pkg-config</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
10139N/A<
citerefentry><
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>
10139N/AWritten by Jeff Cai, Sun Microsystems Inc., 2008.