]> granicus.if.org Git - postgis/commitdiff
Add in hack to match the library .so substition name to the one produced by a particu...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 16 Nov 2009 22:01:21 +0000 (22:01 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 16 Nov 2009 22:01:21 +0000 (22:01 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4840 b70326c6-7e19-0410-871a-916f4a2858ee

regress/Makefile.in

index 014ea01aaef21f384e7c4f90f64ff7d30564c3bb..fdbf2971e785d52ebfaaf6356699d323481d03dc 100644 (file)
@@ -11,6 +11,14 @@ HAVE_LIBXML2=@HAVE_LIBXML2@
 # colons in drive letters will break PATH.
 PGSQL_BINDIR=$(shell pushd "@PGSQL_BINDIR@" > /dev/null && pwd && popd > /dev/null)
 
+
+# Hack to support the change in .so name from PgSQL 8.3 to 8.4
+# and allow in-place regression testing still. (#219)
+LIBNAME = postgis
+ifeq ($(shell expr $(POSTGIS_PGSQL_VERSION) "<" 84),1)
+       LIBNAME = libpostgis 
+endif
+
 srcdir=$(shell pwd)
 
 # 
@@ -95,7 +103,7 @@ endif
 all: test 
 
 test check: ../postgis/postgis.sql ../loader/pgsql2shp ../loader/shp2pgsql 
-       sed 's,$$libdir/postgis,$(srcdir)/../postgis/libpostgis,g' ../postgis/postgis.sql > postgis.sql
+       sed 's,$$libdir/postgis,$(srcdir)/../postgis/$(LIBNAME),g' ../postgis/postgis.sql > postgis.sql
        @USE_VERSION=$(POSTGIS_PGSQL_VERSION) ./run_test $(TESTS)