From a1132502b784937508224adc31369bec773d397b Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 3 Sep 2002 15:31:39 +0000 Subject: [PATCH] Added automatic test for version string and setting of USE_PG72 to appropriate value, as submitted by Greg Stark. git-svn-id: http://svn.osgeo.org/postgis/trunk@183 b70326c6-7e19-0410-871a-916f4a2858ee --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8b4fae8e9..e6fc86a1f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,5 @@ # 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=0 @@ -23,6 +21,17 @@ else libdir := ${PWD} endif +#--------------------------------------------------------------- +# Test the version string and select the correct GiST index +# bindings. +ifneq ($(findstring 7.2,$(VERSION)),) + USE_PG72=1 +else + USE_PG72=0 +endif + +#--------------------------------------------------------------- +# Regression test temporary database. TEST_DB=geom_regress #--------------------------------------------------------------- -- 2.40.0