* configure.in (geos detection): use $geos_prefix/lib when --ldflags is not supported by geos-config available.

git-svn-id: http://svn.osgeo.org/postgis/trunk@2528 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2006-11-10 15:17:10 +00:00
parent c3a06c5fd6
commit 0ce6a955e9
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-11-10 Sandro Santilli <strk@refractions.net>
* configure.in (geos detection): use $geos_prefix/lib when
--ldflags is not supported by geos-config available.
2006-11-10 Havard Tveite <havard.tveite@nlh.no>
* doc/postgix.xml (Hard Upgrade): add info about createdb params

View file

@ -147,7 +147,16 @@ AC_ARG_WITH(geos,
if test $USE_GEOS -gt 0; then
GEOS_DIR=`$GEOSCONFIG --prefix`
GEOS_LDFLAGS=`$GEOSCONFIG --ldflags`
GEOS_LDFLAGS=`$GEOSCONFIG --ldflags 2> /dev/null`
if test x"$GEOS_LDFLAGS" = "x"; then
# older geos-config versions did not
# support the --ldflags switch, we'll
# default to GEOS_DIR/lib in this case.
#
GEOS_LDFLAGS="$GEOS_DIR/lib"
fi
GEOS_MAJOR=`$GEOSCONFIG --version | cut -d. -f1`
if test "$GEOS_MAJOR" = "@GEOS_VERSION@"; then
GEOS_MAJOR=1