From 9314141116e7851a87e760def912fda65b2ddca0 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut
Date: Sat, 26 Aug 2000 13:08:16 +0000
Subject: Add pg-config utility that stores some configuration parameters other
packages can use to configure their build.
E.g.,
$ pg-config --libdir
/usr/local/pgsql/lib
`pg-config --configure' stores the configure command line.
---
doc/src/sgml/Makefile | 3 +-
doc/src/sgml/ref/allfiles.sgml | 3 +-
doc/src/sgml/ref/commands.sgml | 3 +-
doc/src/sgml/ref/pg-config-ref.sgml | 90 +++++++++++++++++++++++++++++++++++++
4 files changed, 96 insertions(+), 3 deletions(-)
create mode 100644 doc/src/sgml/ref/pg-config-ref.sgml
(limited to 'doc/src')
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index f9bf7b831fd..fd4af312523 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.17 2000/07/21 00:44:11 petere Exp $
+# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.18 2000/08/26 13:08:14 petere Exp $
#
#----------------------------------------------------------------------------
@@ -78,6 +78,7 @@ APPLICATIONS= createdb.sgml createlang.sgml createuser.sgml \
pg_upgrade.sgml \
pgaccess-ref.sgml \
pgadmin-ref.sgml \
+ pg-config-ref.sgml \
pgctl-ref.sgml \
pgtclsh.sgml \
pgtksh.sgml \
diff --git a/doc/src/sgml/ref/allfiles.sgml b/doc/src/sgml/ref/allfiles.sgml
index 1acdae9b24f..1bb3a0769d1 100644
--- a/doc/src/sgml/ref/allfiles.sgml
+++ b/doc/src/sgml/ref/allfiles.sgml
@@ -1,5 +1,5 @@
@@ -120,6 +120,7 @@ Complete list of usable sgml source files in this directory.
+
diff --git a/doc/src/sgml/ref/commands.sgml b/doc/src/sgml/ref/commands.sgml
index 28a3e12ab7b..1233c002f45 100644
--- a/doc/src/sgml/ref/commands.sgml
+++ b/doc/src/sgml/ref/commands.sgml
@@ -1,5 +1,5 @@
@@ -124,6 +124,7 @@ functions supported by Postgres.
&ecpgRef;
&pgAccess;
&pgAdmin;
+ &pgConfig;
&pgCtl;
&pgDump;
&pgDumpall;
diff --git a/doc/src/sgml/ref/pg-config-ref.sgml b/doc/src/sgml/ref/pg-config-ref.sgml
new file mode 100644
index 00000000000..72ce46f514e
--- /dev/null
+++ b/doc/src/sgml/ref/pg-config-ref.sgml
@@ -0,0 +1,90 @@
+
+
+
+
+ pg-config>
+ Application>
+
+
+
+ pg-config>
+ Provides information about the installed version of PostgreSQL>>
+
+
+
+
+pg-config --bindir | --includedir | --libdir | --configure | --version
+
+
+
+
+ Description>
+
+ The pg-config> stores and provides configuration parameters
+ of the currently installed version of PostgreSQL>. It is
+ intended, for example, to be used by software packages that want to interface
+ to PostgreSQL> in order to find the respective header files
+ and libraries.
+
+
+
+ To use pg-config>, supply one or more of the following options:
+
+
+ --bindir>
+
+
+ Print the location of user executables. Use this, for example, to find
+ the psql> program. This is normally also the location
+ where the pg-config> program resides.
+
+
+
+
+
+ --includedir>
+
+
+ Print the location of C and C++ header files.
+
+
+
+
+
+ --libdir>
+
+
+ Print the location of object code libraries.
+
+
+
+
+
+ --configure>
+
+
+ Print the options that were given to the configure>
+ script when PostgreSQL> was configured for building.
+ This can be used to reproduce the identical configuration, or
+ to find out with what options a binary package was built. (Note
+ however that binary packages often contain vendor-specific custom
+ patches.)
+
+
+
+
+
+ --version>
+
+
+ Print the version of PostgreSQL> and exit.
+
+
+
+
+
+ If more than one option (except for
+
+
--
cgit v1.2.3