From 0dcedd986aa0eb8129df2b934a5fc4ebe35041d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Jan 2017 22:14:21 +0300 Subject: Add configure flag with_gcov for create coverage data. Disabled by default. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5fe9ad6f2..c64befcac 100755 --- a/configure.ac +++ b/configure.ac @@ -314,6 +314,17 @@ AC_ARG_ENABLE(applebuild, esac],[applebuild_enabled=false]) +# Option to enable gcov +AC_ARG_WITH(gcov,[ --with-gcov use gcov ] ) +if test "x$with_gcov" == "xyes"; then + with_gcov=yes + CPPFLAGS="$CPPFLAGS -coverage" + LDFLAGS="$LDFLAGS -coverage" +else + with_gcov=no +fi +AM_CONDITIONAL(USE_GCOV, test x$with_gcov = xyes) + # Option to enable OpenGL AC_ARG_WITH(opengl,[ --without-opengl don't use OpenGL ] ) if test "x$with_opengl" == "xno"; then -- cgit v1.2.3-70-g09d2