+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
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