From 2f6bcd213d4c607e9fa144b4297e17ed09e65abc Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 24 Jan 2012 19:42:45 +0000 Subject: [PATCH] Double guard against geos versions of 3.4.dev form. (#1488) git-svn-id: http://svn.osgeo.org/postgis/trunk@8917 b70326c6-7e19-0410-871a-916f4a2858ee --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 5c239f494..7adb3a380 100644 --- a/configure.ac +++ b/configure.ac @@ -504,6 +504,9 @@ dnl This is to guard against user error... GEOS_MAJOR_VERSION=`$GEOSCONFIG --version | cut -d. -f1 | sed 's/[[^0-9]]//g'` GEOS_MINOR_VERSION=`$GEOSCONFIG --version | cut -d. -f2 | sed 's/[[^0-9]]//g'` GEOS_PATCH_VERSION=`$GEOSCONFIG --version | cut -d. -f3 | sed 's/[[^0-9]]//g'` +if test "x$GEOS_PATCH_VERSION" = "x"; then + GEOS_PATCH_VERSION="0"; +fi GEOS_FULL_VERSION=`$GEOSCONFIG --version` POSTGIS_GEOS_VERSION="$GEOS_MAJOR_VERSION$GEOS_MINOR_VERSION" GEOS_NUMERIC_VERSION="$GEOS_MAJOR_VERSION$GEOS_MINOR_VERSION$GEOS_PATCH_VERSION" -- 2.40.0