--- a/configure.ac Mon Jun 22 16:45:07 2009 -0500
+++ b/configure.ac Tue Jun 23 23:09:16 2009 -0500
@@ -137,10 +137,17 @@
if test x"$enable_debug" = x"yes" ; then
- CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
+AC_ARG_ENABLE(code_coverage, + AC_HELP_STRING([--enable-code-coverage],[compile with code coverage support]) + ,,enable_code_coverage=no) +if test x"$enable_code_coverage" = x"yes" ; then + CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage -fPIC" if test x"$GCC" = x"yes"; then
CFLAGS="$CFLAGS -Wall -g3"