]> granicus.if.org Git - postgis/commitdiff
Make the configure-time test for PgSQL version check for 8.3+ (#290)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 7 Nov 2009 16:17:58 +0000 (16:17 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 7 Nov 2009 16:17:58 +0000 (16:17 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4765 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index df5ea78ef8a16bd23a5f7eb68c61308ecda15092..92f721c80180baa4b564004b2108654a5da96f57 100644 (file)
@@ -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