|
1 '\" te |
|
2 .\" Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved. |
|
3 .TH gpg-error-config 1 "10 Jan 2008" "SunOS 5.11" "User Commands" |
|
4 .SH "NAME" |
|
5 gpg-error-config \- helper script for building with \fBlibgpg-error\fR |
|
6 .SH "SYNOPSIS" |
|
7 .PP |
|
8 \fBgpg-error-config\fR [-\fB-version\fR] [-\fB-prefix=\fIdir\fR\fR] [-\fB-cflags\fR] [-\fB-libs\fR] [-\fB-exec-prefix=\fIdir\fR\fR] |
|
9 .SH "DESCRIPTION" |
|
10 .PP |
|
11 The \fBgpg-error-config\fR tool is used to determine the compiler |
|
12 and linker flags that should be used to compile and link programs that use |
|
13 the \fBlibgpg-error\fR library\&. |
|
14 .SH "OPTIONS" |
|
15 .PP |
|
16 The following options are supported: |
|
17 .sp |
|
18 .ne 2 |
|
19 .mk |
|
20 \fB-\fB-cflags\fR\fR |
|
21 .in +24n |
|
22 .rt |
|
23 Print the compiler flags that are necessary to compile a program |
|
24 using the specified library\&. |
|
25 .sp |
|
26 .sp 1 |
|
27 .in -24n |
|
28 .sp |
|
29 .ne 2 |
|
30 .mk |
|
31 \fB-\fB-exec-prefix=\fIdir\fR\fR\fR |
|
32 .in +24n |
|
33 .rt |
|
34 If specified, use \fIdir\fR instead of |
|
35 the \fBexec\fR installation prefix that the library was built |
|
36 with, when computing the output for the -\fB-cflags\fR and -\fB-libs\fR options\&. This option must be specified before any -\fB-libs\fR or -\fB-cflags\fR options\&. |
|
37 .sp |
|
38 .sp 1 |
|
39 .in -24n |
|
40 .sp |
|
41 .ne 2 |
|
42 .mk |
|
43 \fB-\fB-libs\fR\fR |
|
44 .in +24n |
|
45 .rt |
|
46 Print the |
|
47 linker flags that are necessary to link with the specified library\&. |
|
48 .sp |
|
49 .sp 1 |
|
50 .in -24n |
|
51 .sp |
|
52 .ne 2 |
|
53 .mk |
|
54 \fB-\fB-prefix=\fIdir\fR\fR\fR |
|
55 .in +24n |
|
56 .rt |
|
57 If specified, use \fIdir\fR instead of |
|
58 the installation prefix that the library was built with, when computing the |
|
59 output for the -\fB-cflags\fR and -\fB-libs\fR options\&. |
|
60 This option must be specified before any -\fB-libs\fR or -\fB-cflags\fR options\&. This option is also used for the \fBexec\fR |
|
61 prefix if the -\fB-exec-prefix\fR option is not specified\&. |
|
62 .sp |
|
63 .sp 1 |
|
64 .in -24n |
|
65 .sp |
|
66 .ne 2 |
|
67 .mk |
|
68 \fB-\fB-version\fR\fR |
|
69 .in +24n |
|
70 .rt |
|
71 Print |
|
72 the currently installed version of the library on the standard output\&. |
|
73 .sp |
|
74 .sp 1 |
|
75 .in -24n |
|
76 .SH "EXAMPLES" |
|
77 .PP |
|
78 \fBExample 1: Getting the libgpg-error library version\fR |
|
79 .PP |
|
80 .PP |
|
81 .nf |
|
82 example% \fBgpg-error-config --version\fR |
|
83 .fi |
|
84 .PP |
|
85 \fBExample 2: Determining the libraries required to link |
|
86 with the libgpg-error library\fR |
|
87 .PP |
|
88 .PP |
|
89 .nf |
|
90 example% \fBgpg-error-config --libs\fR |
|
91 .fi |
|
92 .SH "EXIT STATUS" |
|
93 .PP |
|
94 The following exit values are returned: |
|
95 .sp |
|
96 .ne 2 |
|
97 .mk |
|
98 \fB\fB0\fR\fR |
|
99 .in +9n |
|
100 .rt |
|
101 Application exited successfully |
|
102 .sp |
|
103 .sp 1 |
|
104 .in -9n |
|
105 .sp |
|
106 .ne 2 |
|
107 .mk |
|
108 \fB\fB>0\fR\fR |
|
109 .in +9n |
|
110 .rt |
|
111 Application |
|
112 exited with failure |
|
113 .sp |
|
114 .sp 1 |
|
115 .in -9n |
|
116 .SH "FILES" |
|
117 .PP |
|
118 The following files are used by this application: |
|
119 .sp |
|
120 .ne 2 |
|
121 .mk |
|
122 \fB\fB/usr/bin/gpg-error-config\fR \fR |
|
123 .in +32n |
|
124 .rt |
|
125 Executable for \fBlibgpg-error\fR helper |
|
126 script |
|
127 .sp |
|
128 .SH "SEE ALSO" |
|
129 .PP |
|
130 \fBgpg-error\fR(1), |
|
131 \fBlibgpg-error\fR(3), |
|
132 \fBpkg-config\fR(1), |
|
133 \fBattributes\fR(5) |
|
134 .SH "" |
|
135 .PP |