]> granicus.if.org Git - postgis/commitdiff
Added detect_geos_version rule
authorSandro Santilli <strk@keybit.net>
Mon, 20 Sep 2004 08:51:43 +0000 (08:51 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 20 Sep 2004 08:51:43 +0000 (08:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@836 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/Makefile

index c344bfb19dd72fa42f2ccb31ff2d496be7e021b6..f30e5aa26947ed5c6658da47c3f4a8de30c770da 100644 (file)
@@ -110,7 +110,7 @@ override CFLAGS += -DPOSTGIS_SCRIPTS_VERSION='"$(SCRIPTS_VERSION)"'
 
 ifeq ($(USE_GEOS),1)
        override CFLAGS += -I$(GEOS_DIR)/include -DUSE_GEOS
-       #GEOS_RULES=detect_geos_version
+       GEOS_RULES=detect_geos_version
        GEOS_WRAPPER=lwgeom_geos_wrapper.o
 endif
 
@@ -199,6 +199,9 @@ endif
 endif # not win
 #----------------------------------------------------------
 
+detect_geos_version: 
+       ../geos_version.sh $(GEOS_DIR) > postgis_geos_version.h
+
 installdirs:
        $(mkinstalldirs) $(docdir)/contrib $(datadir)/contrib $(libdir)