Skip to content

Commit 7a67915

Browse files
author
Christopher Browne
committed
Bug #79 - add better documentation about configure options
1 parent ae4a098 commit 7a67915

File tree

2 files changed

+52
-13
lines changed

2 files changed

+52
-13
lines changed

INSTALL

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ specified individually, such as:
4343
--with-pgpkglibdir=<dir> Location of the PostgreSQL pkglibs. E.g. plpgsql.so
4444
--with-pgsharedir=<dir> Location of the PostgreSQL share dir. E.g. postgresql.conf.sample
4545

46-
*USUALLY*, all you should need to specify is the first of those
47-
locations, namely --with-pgconfigdir=/path/to/pg_config/bin; the
48-
others should be able to be inferred based on the output of pg_config.
46+
All you should need to specify is the first of those locations, namely
47+
--with-pgconfigdir=/path/to/pg_config/bin; the others may be inferred
48+
based on the output of pg_config.
4949

5050
After running configure, you may wish to review the file
5151
"Makefile.global" to ensure it is looking in the right places for all of

doc/adminguide/installation.sgml

+49-10
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,57 @@ various &postgres; library, binary, and include directories. For a
7777
full list of these options, use the command <command>./configure
7878
--help</command>.</para>
7979

80-
<para> <emphasis>Normally,</emphasis> it ought to be sufficient to run
81-
<command>configure
82-
<option>--with-pgconfigdir=/some/path/somewhere</option></command>,
83-
where <filename>/some/path/somewhere</filename> is the place where the
84-
&postgres; program <application>pg_config</application> is located.
85-
From <application>pg_config</application>, the
86-
<filename>configure</filename> script can determine the various
87-
locations where &postgres; components are found, which indicates where
80+
<para> It is sufficient, for the purposes of building a usable build,
81+
to run <command>configure
82+
<option>--with-pgconfigdir=<filename>/some/path/somewhere</filename></option></command>,
83+
where <filename>/some/path/somewhere</filename> is the directory where
84+
the &postgres; program <application>pg_config</application> is
85+
located. Based on the output of <application>pg_config</application>,
86+
the <filename>configure</filename> script determines the various
87+
locations where &postgres; components are found, which indicate where
8888
the essential components of &slony1; must be installed.</para>
8989

90+
<para> For a full listing of configuration options, run the command
91+
<command>./configure --help</command>.</para>
92+
93+
<warning> <para> Beware: <application>configure</application> defaults
94+
to permit indicating values for various paths, including
95+
<quote>generic</quote> values:
96+
<itemizedlist>
97+
<listitem><para> <option>--bindir</option>=DIR </para> <para> user executables [EPREFIX/bin] </para></listitem>
98+
<listitem><para> <option>--sbindir</option>=DIR </para> <para> system admin executables [EPREFIX/sbin] </para></listitem>
99+
<listitem><para> <option>--libexecdir</option>=DIR </para> <para> program executables [EPREFIX/libexec] </para></listitem>
100+
<listitem><para> <option>--sysconfdir</option>=DIR </para> <para> read-only single-machine data [PREFIX/etc] </para></listitem>
101+
<listitem><para> <option>--sharedstatedir</option>=DIR </para> <para> modifiable architecture-independent data [PREFIX/com] </para></listitem>
102+
<listitem><para> <option>--localstatedir</option>=DIR </para> <para> modifiable single-machine data [PREFIX/var] </para></listitem>
103+
<listitem><para> <option>--libdir</option>=DIR </para> <para> object code libraries [EPREFIX/lib] </para></listitem>
104+
<listitem><para> <option>--includedir</option>=DIR </para> <para> C header files [PREFIX/include] </para></listitem>
105+
<listitem><para> <option>--oldincludedir</option>=DIR </para> <para> C header files for non-gcc [/usr/include] </para></listitem>
106+
<listitem><para> <option>--datarootdir</option>=DIR </para> <para> read-only arch.-independent data root [PREFIX/share] </para></listitem>
107+
<listitem><para> <option>--datadir</option>=DIR </para> <para> read-only architecture-independent data [DATAROOTDIR] </para></listitem>
108+
<listitem><para> <option>--infodir</option>=DIR </para> <para> info documentation [DATAROOTDIR/info] </para></listitem>
109+
<listitem><para> <option>--localedir</option>=DIR </para> <para> locale-dependent data [DATAROOTDIR/locale] </para></listitem>
110+
<listitem><para> <option>--mandir</option>=DIR </para> <para> man documentation [DATAROOTDIR/man] </para></listitem>
111+
<listitem><para> <option>--docdir</option>=DIR </para> <para> documentation root [DATAROOTDIR/doc/slony1] </para></listitem>
112+
<listitem><para> <option>--htmldir</option>=DIR </para> <para> html documentation [DOCDIR] </para></listitem>
113+
<listitem><para> <option>--dvidir</option>=DIR </para> <para> dvi documentation [DOCDIR] </para></listitem>
114+
<listitem><para> <option>--pdfdir</option>=DIR </para> <para> pdf documentation [DOCDIR] </para></listitem>
115+
<listitem><para> <option>--psdir</option>=DIR </para> <para> ps documentation [DOCDIR] </para></listitem>
116+
</itemizedlist></para>
117+
118+
<para> There are also &postgres;-specific options specified, which <emphasis>should not be expressly set</emphasis>, as <application>pg_config</application> should already provide correct values:
119+
120+
<itemizedlist>
121+
<listitem><para> <option>--with-pgbindir</option>=DIR</para> <para> Location of the PostgreSQL postmaster. </para></listitem>
122+
<listitem><para> <option>--with-pgincludedir</option>=DIR</para> <para> Location of the PostgreSQL headers. </para></listitem>
123+
<listitem><para> <option>--with-pgincludeserverdir</option>=DIR</para> <para> Location of the PostgreSQL server headers. </para></listitem>
124+
<listitem><para> <option>--with-pglibdir</option>=DIR</para> <para> Location of the PostgreSQL libs. </para></listitem>
125+
<listitem><para> <option>--with-pgpkglibdir</option>=DIR</para> <para> Location of the PostgreSQL pkglibs. E.g. plpgsql.so </para></listitem>
126+
<listitem><para> <option>--with-pgsharedir</option>=DIR</para> <para> Location of the PostgreSQL share dir. E.g. postgresql.conf.sample </para></listitem>
127+
</itemizedlist></para>
128+
129+
</warning>
130+
90131
<para>On certain platforms (AIX and Solaris are known to need this;
91132
Linux does not), the compile of &postgres; must be expressly
92133
configured with the option <command>--enable-thread-safety</command>
@@ -131,8 +172,6 @@ http://developer.postgresql.org/~wieck/slony1/download/threadsafe-libpq-742.diff
131172
versions; see the FAQ entry on <link linkend="threadsafety"> thread
132173
safety </link>. </para>
133174

134-
<para> For a full listing of configuration options, run the command
135-
<command>./configure --help</command>.</para>
136175
</sect2>
137176

138177
<sect2>

0 commit comments

Comments
 (0)