From 2f829b9b3469169e828ad2487971dc9971b5f02b Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Thu, 24 Jul 2008 10:22:16 +0000 Subject: [PATCH] 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) git-svn-id: http://svn.osgeo.org/postgis/trunk@2882 b70326c6-7e19-0410-871a-916f4a2858ee --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index e65495515..72048bb13 100644 --- a/configure.ac +++ b/configure.ac @@ -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" -- 2.50.1