[postgis-devel] RE: pgxs

strk at refractions.net strk at refractions.net
Tue Apr 26 11:38:03 PDT 2005


On Tue, Apr 26, 2005 at 03:43:06PM +0100, Mark Cave-Ayland wrote:
(cuts)
> So in brief, what I was suggesting was:
> 
> 	1) Keep the existing --with-pgsql-src=/ptr/to/pgsql configure option
> for PG < 8.0.
> 	This would still require a configure'd source tree as we do at the
> moment,
> 	however everyone who uses PostGIS already has one ready and so I
> can't see this
> 	being too much of a problem.
> 
> 	2) Add another --with-pgxs=/ptr/to/pg_config configure option for PG
> >= 8.0 which
> 	would allow PostGIS to build without a configure'd source tree.
> These two options
> 	are mutually exclusive.
> 
> The compromise here was to not support building PostGIS *without* a
> configure'd source tree for PG versions < 8.0 in order to prevent us from
> having to maintain our own modified copies of Makefiles within the project
> (in particular to gain access to linker and compiler flags). The pgxs
> Makefile is an actual fact a modified version of the contrib/ Makefile and
> so building PostGIS shouldn't be a problem :)

Sounds good to me. Automatic configuration could use pg_config
to detect wheter pgxs is available and use it or fall back to
pgsql sources, which could be detected again (does ../../Makefile.global
exists?) or require explicit --with-pgsql-src flag.

I'll make some tests tomorrow.

--strk;

> 
> 
> Kind regards,
> 
> Mark.
> 
> ------------------------
> WebBased Ltd
> South West Technology Centre
> Tamar Science Park
> Plymouth
> PL6 8BT 
> 
> T: +44 (0)1752 791021
> F: +44 (0)1752 791023
> W: http://www.webbased.co.uk
>  
> 
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list