From: Sandro Santilli Date: Mon, 14 Nov 2005 10:05:22 +0000 (+0000) Subject: Forced use of CAPI when building against GEOS 3.x.x or superior X-Git-Tag: pgis_1_1_0~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9657e4678c3857215a6f6769516b4d0470305a37;p=postgis Forced use of CAPI when building against GEOS 3.x.x or superior git-svn-id: http://svn.osgeo.org/postgis/trunk@2038 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.in b/configure.in index 0d5ab2c31..10670bc35 100644 --- a/configure.in +++ b/configure.in @@ -176,17 +176,24 @@ AC_ARG_WITH(geos, fi ) -AC_ARG_WITH(geos-capi, -[ --with-geos-capi enable use of GEOS C API ], - if test "$with_geos_capi" != "no"; then - USE_GEOS_CAPI=1 - fi -) - if test $USE_GEOS -gt 0; then GEOS_DIR=`$GEOSCONFIG --prefix` + GEOS_MAJOR=`$GEOSCONFIG --version | cut -d. -f1` + if test "$GEOS_MAJOR" = "@GEOS_VERSION@"; then + GEOS_MAJOR = 1 + fi + if test $GEOS_MAJOR -gt 2; then + USE_GEOS_CAPI=1 + fi fi +dnl AC_ARG_WITH(geos-capi, +dnl [ --with-geos-capi enable use of GEOS C API ], +dnl if test "$with_geos_capi" != "no"; then +dnl USE_GEOS_CAPI=1 +dnl fi +dnl ) + AC_SUBST(USE_PROJ) AC_SUBST(PROJ_DIR) USE_PROJ=0