[postgis-commits] svn - r2882 - trunk
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Thu Jul 24 03:22:16 PDT 2008
Author: mcayland
Date: 2008-07-24 03:22:16 -0700 (Thu, 24 Jul 2008)
New Revision: 2882
Modified:
trunk/configure.ac
Log:
Add PROJ.4 version check to ensure that a minimum version of 4.5.0 is installed. This is to ensure that the pj_set_searchpath() function is present (note: it was actually added in 4.4.9, however we version detect on major.minor rather than major.minor.release)
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2008-07-24 05:55:44 UTC (rev 2881)
+++ trunk/configure.ac 2008-07-24 10:22:16 UTC (rev 2882)
@@ -346,6 +346,11 @@
AC_SUBST([POSTGIS_PROJ_VERSION])
CPPFLAGS="$CPPFLAGS_SAVE"
+dnl Ensure that we are using PROJ >= 4.5.0 (requires pj_set_searchpath)
+if test ! "$POSTGIS_PROJ_VERSION" -ge 45; then
+ AC_MSG_ERROR([PostGIS requires PROJ >= 4.5.0])
+fi
+
dnl Ensure we can link against libproj
LIBS_SAVE="$LIBS"
LIBS="$PROJ_LDFLAGS"
More information about the postgis-commits
mailing list