postgresql 7 detection
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1840
Reported by Kai Voigt, 123.org k@123.org
Hi,
Pike's configure requires postgres.h to be installed to detect PostgreSQL 7 successfully. postgres.h only gets installed when doing a "make install-all-headers" in the postgresql source. But this is not required for linking with the libraries.
Here's some mail from the FreeBSD port maintainer of PostgreSQL.
----------------------------------------------------------------
Date: Tue, 26 Jun 2001 17:47:21 +0200
From: Palle Girgensohn <girgen@partitur.se>
To: Kai Voigt <k@123.org>
Subject: Re: postgresql7 port of FreeBSD: make install-all-headers
Kai Voigt wrote:
Hi,
I wanted to install Roxen Webserver, a swedisch webserver with postgresql support. But its configure script was not able to find anything important of your postgresql port on my FreeBSD system.
postgres.h was not installed, which is the case when only "make install" is called, not "make install-all-headers".
postgres.h is not needed for anything else than building postgresql itself. The dependency on postgres.h in Roxen is false. Jhust remove any occurrence of #include <postgres.h> and it will compile fine.
postgres.h was previously installed by postgres, but for no
good at all. some packages, like Roxen, have just added
#include <postgres.h> without checking if this is really
needed. It isn't.
/Palle