From nandrews@investsystems.co.uk Mon Jan 13 13:52:10 2003 Date: Mon, 13 Jan 2003 13:52:10 +0000 (GMT) From: Nigel J. Andrews nandrews@investsystems.co.uk Subject: [Pgtcl-hackers] Patch for configure.in
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--531366657-678211274-1042465930=:626
Content-Type: TEXT/PLAIN; charset=US-ASCII



A simple patch for configure.in against 1.4b3 release

Bug:

configure produces a compiler switch of -I and only -I for the pg include
directory if one is not explicitly configured


Patch:

Is untested but is quite simple and done in the style of the near by library
directory test.


-- 
Nigel J. Andrews

--531366657-678211274-1042465930=:626
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="libpgtcl.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0301131352100.626@ponder.fairway2k.co.uk>
Content-Description: 
Content-Disposition: attachment; filename="libpgtcl.patch"

LS0tIGNvbmZpZ3VyZS5pbi5vcmlnCVRodSBOb3YgIDcgMDM6Mjk6NTggMjAw
Mg0KKysrIGNvbmZpZ3VyZS5pbglNb24gSmFuIDEzIDEzOjQ1OjQyIDIwMDMN
CkBAIC0xNzgsMTEgKzE3OCwxNCBAQA0KICMtLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLQ0KIA0KIExJQlBHPSIiDQorUEdfSU5DTFVERVM9IiINCiBBQ19BUkdf
V0lUSChwb3N0Z3Jlcy1pbmNsdWRlLFsgLS13aXRoLXBvc3RncmVzLWluY2x1
ZGU9RElSCVBvc3RncmVzIGluY2x1ZGVzIGFyZSBpbiBESVJdLA0KIAlQR19J
TkNfRElSPSR3aXRodmFsLCBQR19JTkNfRElSPSIiKQ0KIEFDX0FSR19XSVRI
KHBvc3RncmVzLWxpYixbICAtLXdpdGgtcG9zdGdyZXMtbGliPURJUglQb3N0
Z3JlcyBsaWJyYXJpZXMgYXJlIGluIERJUl0sDQogCVBHX0xJQl9ESVI9JHdp
dGh2YWwsIFBHX0xJQl9ESVI9IiIpDQotUEdfSU5DTFVERVM9Ii1JJFBHX0lO
Q19ESVIiDQoraWYgdGVzdCAhICIkUEdfSU5DX0RJUiIgPSAiIjsgdGhlbg0K
KyAgUEdfSU5DTFVERVM9Ii1JJFBHX0lOQ19ESVIiDQorZmkNCiBQR19MSUJT
PSItTCRQR19MSUJfRElSIC1scHEiDQogaWYgdGVzdCAhICIkUEdfTElCX0RJ
UiIgPSAiIjsgdGhlbg0KICAgTElCUEc9ImxpYnBxJHtTSExJQl9TVUZGSVh9
Ig0K
--531366657-678211274-1042465930=:626--

From nandrews at investsystems.co.uk Mon Jan 13 13:52:10 2003 From: nandrews at investsystems.co.uk (Nigel J. Andrews) Date: Mon, 13 Jan 2003 13:52:10 +0000 (GMT) Subject: [Pgtcl-hackers] Patch for configure.in Message-ID: A simple patch for configure.in against 1.4b3 release Bug: configure produces a compiler switch of -I and only -I for the pg include directory if one is not explicitly configured Patch: Is untested but is quite simple and done in the style of the near by library directory test. -- Nigel J. Andrews -------------- next part -------------- --- configure.in.orig Thu Nov 7 03:29:58 2002 +++ configure.in Mon Jan 13 13:45:42 2003 @@ -178,11 +178,14 @@ #-------------------------------------------------------------------- LIBPG="" +PG_INCLUDES="" AC_ARG_WITH(postgres-include,[ --with-postgres-include=DIR Postgres includes are in DIR], PG_INC_DIR=$withval, PG_INC_DIR="") AC_ARG_WITH(postgres-lib,[ --with-postgres-lib=DIR Postgres libraries are in DIR], PG_LIB_DIR=$withval, PG_LIB_DIR="") -PG_INCLUDES="-I$PG_INC_DIR" +if test ! "$PG_INC_DIR" = ""; then + PG_INCLUDES="-I$PG_INC_DIR" +fi PG_LIBS="-L$PG_LIB_DIR -lpq" if test ! "$PG_LIB_DIR" = ""; then LIBPG="libpq${SHLIB_SUFFIX}"