diff -Nurd postgis-1.5.3/postgis/Makefile.in postgis-1.5.3-new/postgis/Makefile.in --- postgis-1.5.3/postgis/Makefile.in 2010-01-08 17:48:29.000000000 -0500 +++ postgis-1.5.3-new/postgis/Makefile.in 2011-07-21 12:07:54.000000000 -0400 @@ -19,6 +19,7 @@ # SQL objects (files requiring C pre-processing) SQL_OBJS=postgis.sql.in uninstall_postgis.sql.in +SQL_CPP=$(CPP) # PostgreSQL objects PG_OBJS=lwgeom_pg.o \ @@ -68,8 +69,8 @@ # to an existing liblwgeom.so in the PostgreSQL $libdir supplied by an # older version of PostGIS, rather than with the static liblwgeom.a # supplied with newer versions of PostGIS -PG_CPPFLAGS+=@CPPFLAGS@ -I../liblwgeom -SHLIB_LINK+=@SHLIB_LINK@ ../liblwgeom/liblwgeom.a +PG_CPPFLAGS+=@CPPFLAGS@ @PGSQL_FE_CPPFLAGS@ -I../liblwgeom +SHLIB_LINK+=@SHLIB_LINK@ @PGSQL_FE_LDFLAGS@ ../liblwgeom/liblwgeom.a # Extra files to remove during 'make clean' EXTRA_CLEAN=$(SQL_OBJS) @@ -116,5 +117,5 @@ # Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor $(SQL_OBJS): %.in: %.in.c - $(CPP) -traditional-cpp $< | grep -v '^#' > $@ + $(SQL_CPP) -traditional-cpp $< | grep -v '^#' > $@ diff -Nurd postgis-1.5.3/topology/Makefile.in postgis-1.5.3-new/topology/Makefile.in --- postgis-1.5.3/topology/Makefile.in 2008-11-06 10:15:06.000000000 -0500 +++ postgis-1.5.3-new/topology/Makefile.in 2011-07-21 12:08:01.000000000 -0400 @@ -7,6 +7,7 @@ # SQL objects (files requiring C pre-processing) SQL_OBJS=topology.sql.in +SQL_CPP=$(CPP) # Extra files to remove during 'make clean' EXTRA_CLEAN=$(SQL_OBJS) @@ -24,5 +25,5 @@ # Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor $(SQL_OBJS): %.in: %.in.c - $(CPP) -traditional-cpp $< | grep -v '^#' > $@ + $(SQL_CPP) -traditional-cpp $< | grep -v '^#' > $@