]> granicus.if.org Git - postgis/commitdiff
Changed default variable setting to a more portable syntax
authorSandro Santilli <strk@keybit.net>
Tue, 5 Oct 2004 15:11:07 +0000 (15:11 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 5 Oct 2004 15:11:07 +0000 (15:11 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@925 b70326c6-7e19-0410-871a-916f4a2858ee

Makefile.config

index 8bfdd671f671afaaa46acfed4f738790364ad1a4..9d2bc73d3ef20cd3aa8b64581684e0affc31645d 100644 (file)
@@ -16,9 +16,7 @@
 # Download from: http://www.remotesensing.org/proj
 #
 USE_PROJ=1
-ifeq (${PROJ_DIR},) 
-       PROJ_DIR=/usr/local
-endif
+PROJ_DIR ?= /usr/local
 
 #
 # Set USE_GEOS to 1 for GEOS spatial predicate and operator
@@ -33,9 +31,7 @@ endif
 # Download from: http://geos.refractions.net
 #
 USE_GEOS=1
-ifeq (${GEOS_DIR},) 
-       GEOS_DIR=/usr/local
-endif
+GEOS_DIR ?= /usr/local
 
 #
 # Set USE_STATS to 1 for new GiST statistics collection support
@@ -51,9 +47,7 @@ USE_STATS=1
 # set the PGSQL_SRC either below or in the environment (an absolute path).
 #
 # PGSQL_SRC=/usr/src/postgresql
-ifeq (${PGSQL_SRC},) 
-       PGSQL_SRC = ${PWD}/../..
-endif
+PGSQL_SRC ?= ${PWD}/../..
 
 #
 # Path to library (to be specified in CREATE FUNCTION queries)
@@ -61,9 +55,7 @@ endif
 # Set LPATH below or in the environment to change it.
 #
 # LPATH=/usr/src/postgis
-ifeq (${LPATH},)
-       LPATH := \$$libdir
-endif
+LPATH ?= \$$libdir
 
 #---------------------------------------------------------------
 # END OF CONFIGURATION