]> granicus.if.org Git - postgis/commitdiff
Add PROJ.4 version check to ensure that a minimum version of 4.5.0 is installed....
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 24 Jul 2008 10:22:16 +0000 (10:22 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 24 Jul 2008 10:22:16 +0000 (10:22 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2882 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index e65495515b630e61717c3357d9a13e75c24c5c64..72048bb1314c05b6fe0f61faac5fa221c9071e41 100644 (file)
@@ -346,6 +346,11 @@ AC_DEFINE_UNQUOTED([POSTGIS_PROJ_VERSION], [$POSTGIS_PROJ_VERSION], [PROJ librar
 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"