[geos-commits] r3215 - trunk

svn_geos at osgeo.org svn_geos at osgeo.org
Sun Feb 13 16:29:20 EST 2011


Author: mloskot
Date: 2011-02-13 13:29:20 -0800 (Sun, 13 Feb 2011)
New Revision: 3215

Modified:
   trunk/configure.in
Log:
Added new ./configure option: --enable-glibcxx-debug which to enable libstdc++ debug mode (see Ticket #395). Added AC_MSG_CHECKING and AC_MSG_RESULT to existing options.

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2011-02-13 20:14:49 UTC (rev 3214)
+++ trunk/configure.in	2011-02-13 21:29:20 UTC (rev 3215)
@@ -94,17 +94,43 @@
 	[enable_cassert=true]
 )
 
+AC_ARG_ENABLE([glibcxx-debug], [  --enable-glibcxx-debug    Enable libstdc++ debug mode],
+	[case "${enableval}" in
+		yes) enable_glibcxx_debug=true ;;
+		no)  enable_glibcxx_debug=false ;;
+		*) AC_MSG_ERROR(bad value ${enableval} for --enable-glibcxx-debug);;
+	esac],
+	[enable_glibcxx_debug=false]
+)
+
+
+AC_MSG_CHECKING([if requested to force inline functions])
 INLINE_FLAGS=
 AC_SUBST(INLINE_FLAGS)
 if test x"$enable_inline" = xtrue; then
 	INLINE_FLAGS="-DGEOS_INLINE"
 	AM_CXXFLAGS="$AM_CXXFLAGS $INLINE_FLAGS"
+    AC_MSG_RESULT([yes])
+else
+    AC_MSG_RESULT([no])
 fi
 
+AC_MSG_CHECKING([if requested to enable assert macros])
 if test x"$enable_cassert" = xfalse; then
 	AM_CXXFLAGS="$AM_CXXFLAGS -DNDEBUG"
+    AC_MSG_RESULT([no])
+else
+    AC_MSG_RESULT([yes])
 fi
 
+AC_MSG_CHECKING([if requested libstdc++ debug mode])
+if test x"$enable_glibcxx_debug" = xtrue; then
+    AM_CXXFLAGS="$AM_CXXFLAGS -D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1"
+    AC_MSG_RESULT([yes])
+else
+    AC_MSG_RESULT([no])
+fi
+
 dnl --------------------------------------------------------------------
 dnl - Append default C++ and C flags 
 dnl --------------------------------------------------------------------



More information about the geos-commits mailing list