AC_DEFINE_UNQUOTED([PWDREGRESS], [PWDREGRESS], [Define command to determine the current directory during regression])
AC_SUBST([PWDREGRESS])
+AC_PATH_PROG([PERL], [perl], [])
+AC_SUBST([PERL])
dnl ===========================================================================
dnl Find components needed to build documentation
AC_MSG_RESULT([ Libxml2 version: ${POSTGIS_LIBXML2_VERSION}])
AC_MSG_RESULT([ JSON-C support: ${HAVE_JSON}])
AC_MSG_RESULT([ PostGIS debug level: ${POSTGIS_DEBUG_LEVEL}])
+AC_MSG_RESULT([ perl: ${PERL}])
if test "x$RASTER" = "xraster" -o "x$TOPOLOGY" = "xtopology"; then
AC_MSG_RESULT([ -------------- Extensions -------------- ])
if test "x$RASTER" = "xraster"; then
PGXS := @PGXS@
include $(PGXS)
+# Set PERL _after_ the include of PGXS
+PERL=@PERL@
+
# This is to workaround a bug in PGXS 8.4 win32 link line,
# see http://trac.osgeo.org/postgis/ticket/1158#comment:57
SHLIB_LINK := $(SHLIB_LINK_F) $(SHLIB_LINK)
PGXS := @PGXS@
include $(PGXS)
+# Set PERL _after_ the include of PGXS
+PERL=@PERL@
+
# This is to workaround a bug in PGXS 8.4 win32 link line,
# see http://trac.osgeo.org/postgis/ticket/1158#comment:57
SHLIB_LINK := $(SHLIB_LINK_F) $(SHLIB_LINK)
PGXS := @PGXS@
include $(PGXS)
+# Set PERL _after_ the include of PGXS
+PERL=@PERL@
+
# PGXS override feature. The ability to allow PostGIS to install itself
# in a versioned directory is only available in PostgreSQL >= 8.5. To
# do this by default on older PostgreSQL versions, we need to override