[GRASS-SVN] r38872 - grass/trunk

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 26 08:41:07 EDT 2009


Author: glynn
Date: 2009-08-26 08:41:06 -0400 (Wed, 26 Aug 2009)
New Revision: 38872

Modified:
   grass/trunk/configure
   grass/trunk/configure.in
Log:
Revert r38867 (bogus GEOM check)


Modified: grass/trunk/configure
===================================================================
--- grass/trunk/configure	2009-08-26 10:36:15 UTC (rev 38871)
+++ grass/trunk/configure	2009-08-26 12:41:06 UTC (rev 38872)
@@ -7740,22 +7740,22 @@
 LDFLAGS="$GEOS_LIBS $LDFLAGS"
 
 
-echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
-echo "configure:7745: checking for initGEOS in -lgeos_c" >&5
-ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for GEOSGeom_createLinearRing in -lgeos""... $ac_c" 1>&6
+echo "configure:7745: checking for GEOSGeom_createLinearRing in -lgeos" >&5
+ac_lib_var=`echo geos'_'GEOSGeom_createLinearRing | sed 'y%./+-%__p_%'`
 
 ac_save_LIBS="$LIBS"
-LIBS="-lgeos_c  $LIBS"
+LIBS="-lgeos  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 7751 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
-char initGEOS();
+char GEOSGeom_createLinearRing();
 
 int main() {
-initGEOS()
+GEOSGeom_createLinearRing()
 ; return 0; }
 EOF
 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@ -7772,7 +7772,7 @@
 
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-  GEOS_LIBS="$GEOS_LIBS -lgeos_c "
+  GEOS_LIBS="$GEOS_LIBS -lgeos "
 else
   echo "$ac_t""no" 1>&6
 

Modified: grass/trunk/configure.in
===================================================================
--- grass/trunk/configure.in	2009-08-26 10:36:15 UTC (rev 38871)
+++ grass/trunk/configure.in	2009-08-26 12:41:06 UTC (rev 38872)
@@ -761,7 +761,7 @@
   fi
   
   LOC_CHECK_INCLUDES(geos_c.h,GEOS,$GEOS_CFLAGS)
-  LOC_CHECK_LIBS(geos_c,initGEOS,GEOS,$GEOS_LIBS,GEOS_LIBS)
+  LOC_CHECK_LIBS(geos,GEOSGeom_createLinearRing,GEOS,$GEOS_LIBS,GEOS_LIBS)
   AC_DEFINE(HAVE_GEOS)
 fi
 



More information about the grass-commit mailing list