Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
*.dsc
*.changes
./config.*
+*.gcda
+*.gcov
*.gcno
.deps
web/*.html
AC_DEFINE([DEBUG_GATHER], [1], [Define if you want C_Gather debugging])
+# code coverage?
+AC_ARG_ENABLE([coverage],
+ [AS_HELP_STRING([--enable-coverage], [enable code coverage tracking])],
+ [],
+ [enable_coverage=no])
+AM_CONDITIONAL(ENABLE_COVERAGE, test "x$enable_coverage" != xno)
+
# radosgw?
AC_ARG_WITH([radosgw],
[AS_HELP_STRING([--with-radosgw], [build RADOS gateway])],
AM_LDFLAGS += -latomic_ops
endif
+if ENABLE_COVERAGE
+AM_CFLAGS += -fprofile-arcs -ftest-coverage
+AM_CXXFLAGS += -fprofile-arcs -ftest-coverage -O0
+EXTRALIBS += -lgcov
+endif
noinst_LIBRARIES = \
libcommon.a \