|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.20 2005/06/09 18:15:05 petere Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.21 2005/08/09 22:47:03 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <refentry id="app-pgconfig">
|
4 | 4 | <refmeta>
|
|
19 | 19 | <refsynopsisdiv>
|
20 | 20 | <cmdsynopsis>
|
21 | 21 | <command>pg_config</command>
|
22 |
| - <group choice="req" rep="repeat"> |
23 |
| - <arg>--bindir</arg> |
24 |
| - <arg>--includedir</arg> |
25 |
| - <arg>--includedir-server</arg> |
26 |
| - <arg>--libdir</arg> |
27 |
| - <arg>--pkglibdir</arg> |
28 |
| - <arg>--pgxs</arg> |
29 |
| - <arg>--configure</arg> |
30 |
| - <arg>--version</arg> |
31 |
| - </group> |
| 22 | + <arg rep="repeat"><replaceable>option</replaceable></arg> |
32 | 23 | </cmdsynopsis>
|
33 | 24 | </refsynopsisdiv>
|
34 | 25 |
|
|
48 | 39 | <title>Options</title>
|
49 | 40 |
|
50 | 41 | <para>
|
51 |
| - To use <application>pg_config</>, supply one or more of the following options: |
| 42 | + To use <application>pg_config</>, supply one or more of the following |
| 43 | + options: |
52 | 44 | <variablelist>
|
53 | 45 | <varlistentry>
|
54 | 46 | <term><option>--bindir</option></>
|
|
124 | 116 | </listitem>
|
125 | 117 | </varlistentry>
|
126 | 118 |
|
| 119 | + <varlistentry> |
| 120 | + <term><option>--cc</option></> |
| 121 | + <listitem> |
| 122 | + <para> |
| 123 | + Print the value of the CC macro that was used for building |
| 124 | + <productname>PostgreSQL</>. This shows the C compiler used. |
| 125 | + </para> |
| 126 | + </listitem> |
| 127 | + </varlistentry> |
| 128 | + |
| 129 | + <varlistentry> |
| 130 | + <term><option>--cppflags</option></> |
| 131 | + <listitem> |
| 132 | + <para> |
| 133 | + Print the value of the CPPFLAGS macro that was used for building |
| 134 | + <productname>PostgreSQL</>. This shows C compiler switches needed |
| 135 | + at preprocessing time (typically, <literal>-I</> switches). |
| 136 | + </para> |
| 137 | + </listitem> |
| 138 | + </varlistentry> |
| 139 | + |
| 140 | + <varlistentry> |
| 141 | + <term><option>--cflags</option></> |
| 142 | + <listitem> |
| 143 | + <para> |
| 144 | + Print the value of the CFLAGS macro that was used for building |
| 145 | + <productname>PostgreSQL</>. This shows C compiler switches. |
| 146 | + </para> |
| 147 | + </listitem> |
| 148 | + </varlistentry> |
| 149 | + |
| 150 | + <varlistentry> |
| 151 | + <term><option>--cflags_sl</option></> |
| 152 | + <listitem> |
| 153 | + <para> |
| 154 | + Print the value of the CFLAGS_SL macro that was used for building |
| 155 | + <productname>PostgreSQL</>. This shows extra C compiler switches |
| 156 | + used for building shared libraries. |
| 157 | + </para> |
| 158 | + </listitem> |
| 159 | + </varlistentry> |
| 160 | + |
| 161 | + <varlistentry> |
| 162 | + <term><option>--ldflags</option></> |
| 163 | + <listitem> |
| 164 | + <para> |
| 165 | + Print the value of the LDFLAGS macro that was used for building |
| 166 | + <productname>PostgreSQL</>. This shows linker switches. |
| 167 | + </para> |
| 168 | + </listitem> |
| 169 | + </varlistentry> |
| 170 | + |
| 171 | + <varlistentry> |
| 172 | + <term><option>--ldflags_sl</option></> |
| 173 | + <listitem> |
| 174 | + <para> |
| 175 | + Print the value of the LDFLAGS_SL macro that was used for building |
| 176 | + <productname>PostgreSQL</>. This shows linker switches |
| 177 | + used for building shared libraries. |
| 178 | + </para> |
| 179 | + </listitem> |
| 180 | + </varlistentry> |
| 181 | + |
| 182 | + <varlistentry> |
| 183 | + <term><option>--libs</option></> |
| 184 | + <listitem> |
| 185 | + <para> |
| 186 | + Print the value of the LIBS macro that was used for building |
| 187 | + <productname>PostgreSQL</>. This normally contains <literal>-l</> |
| 188 | + switches for external libraries linked into <productname>PostgreSQL</>. |
| 189 | + </para> |
| 190 | + </listitem> |
| 191 | + </varlistentry> |
| 192 | + |
127 | 193 | <varlistentry>
|
128 | 194 | <term><option>--version</option></>
|
129 | 195 | <listitem>
|
130 | 196 | <para>
|
131 |
| - Print the version of <productname>PostgreSQL</> and exit. |
| 197 | + Print the version of <productname>PostgreSQL</>. |
132 | 198 | </para>
|
133 | 199 | </listitem>
|
134 | 200 | </varlistentry>
|
135 | 201 | </variablelist>
|
136 | 202 |
|
137 |
| - If more than one option (except for <option>--version</>) is given, the |
138 |
| - information is printed in that order, one item per line. |
| 203 | + If more than one option is given, the information is printed in that order, |
| 204 | + one item per line. If no options are given, all available information |
| 205 | + is printed, with labels. |
139 | 206 | </para>
|
140 | 207 | </refsect1>
|
141 | 208 |
|
|
152 | 219 | exit status to see whether it succeeded.
|
153 | 220 | </para>
|
154 | 221 |
|
| 222 | + <para> |
| 223 | + The options <option>--cc</option>, <option>--cppflags</option>, |
| 224 | + <option>--cflags</option>, <option>--cflags_sl</option>, |
| 225 | + <option>--ldflags</option>, <option>--ldflags_sl</option>, |
| 226 | + and <option>--libs</option> are new in <productname>PostgreSQL</> 8.1. |
| 227 | + </para> |
| 228 | + |
155 | 229 | <para>
|
156 | 230 | In releases prior to <productname>PostgreSQL</> 7.1, before
|
157 | 231 | <command>pg_config</command> came to be, a method for finding the
|
|
0 commit comments