From: Chris Hodgson Date: Wed, 16 Oct 2002 17:06:19 +0000 (+0000) Subject: makefile now has both support for auto-determining postgres version and support for... X-Git-Tag: pgis_0_7_4~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88c2b96efe01072b2ccfc8e2e1c29704229e757a;p=postgis makefile now has both support for auto-determining postgres version and support for the new histogram2d stuff git-svn-id: http://svn.osgeo.org/postgis/trunk@198 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/Makefile b/Makefile index 5e4a717a8..70b2293da 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,8 @@ # Configuration Directives -#--------------------------------------------------------------- -# Set USE_PG72 to 1 for PostgreSQL version >= 7.2 -USE_PG72=0 + #--------------------------------------------------------------- # Set USE_PROJ to 1 for Proj4 reprojection support -USE_PROJ=1 +USE_PROJ=0 #--------------------------------------------------------------- subdir=contrib/postgis @@ -23,6 +21,17 @@ else libdir := ${PWD} endif +#--------------------------------------------------------------- +# Test the version string and select the correct GiST index +# bindings. +ifneq ($(findstring 7.1,$(VERSION)),) + USE_PG72=0 +else + USE_PG72=1 +endif + +#--------------------------------------------------------------- +# Regression test temporary database. TEST_DB=geom_regress #--------------------------------------------------------------- @@ -43,7 +52,7 @@ override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS) ifeq ($(USE_PG72),1) OBJS=postgis_debug.o postgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o postgis_gist_72.o postgis_estimate.o else - OBJS=postgis_debug.o postgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o postgis_gist.o + OBJS=postgis_debug.o postgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o postgis_gist.o endif # Add libraries that libpq depends (or might depend) on into the