From: Paul Ramsey Date: Sat, 7 Nov 2009 16:17:58 +0000 (+0000) Subject: Make the configure-time test for PgSQL version check for 8.3+ (#290) X-Git-Tag: 1.5.0b1~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e1bedc4d91916b164e1a25bf760d4a7b5ebe6d8;p=postgis Make the configure-time test for PgSQL version check for 8.3+ (#290) git-svn-id: http://svn.osgeo.org/postgis/trunk@4765 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index df5ea78ef..92f721c80 100644 --- a/configure.ac +++ b/configure.ac @@ -274,13 +274,13 @@ PGSQL_MAJOR_VERSION=`$PGCONFIG --version | sed 's/[[A-Za-z ]]*//' | cut -d. -f1 PGSQL_MINOR_VERSION=`$PGCONFIG --version | sed 's/[[A-Za-z ]]*//' | cut -d. -f2 | sed 's/[[^0-9]]//g'` POSTGIS_PGSQL_VERSION="$PGSQL_MAJOR_VERSION$PGSQL_MINOR_VERSION" -dnl Ensure that we are using PostgreSQL >= 8.1 +dnl Ensure that we are using PostgreSQL >= 8.3 if test ! "$PGSQL_MAJOR_VERSION" -ge 8; then - AC_MSG_ERROR([PostGIS requires PostgreSQL >= 8.1]) + AC_MSG_ERROR([PostGIS requires PostgreSQL >= 8.3]) else if test "$PGSQL_MAJOR_VERSION" -eq 8; then - if test ! "$PGSQL_MINOR_VERSION" -ge 1; then - AC_MSG_ERROR([PostGIS requires PostgreSQL >= 8.1]) + if test ! "$PGSQL_MINOR_VERSION" -ge 3; then + AC_MSG_ERROR([PostGIS requires PostgreSQL >= 8.3]) fi fi fi