gfortran*)
## With GNU Compiler enable the code coverage
if test "$enable_code_coverage" = yes; then
- CODE_COVERAGE_FFLAGS="-fprofile-arcs -ftest-coverage"
+ CODECOVERAGE_FFLAGS="-fprofile-arcs -ftest-coverage"
fi
;;
g77*)
# enable the code coverage
if test "$enable_code_coverage" = yes; then
- CODE_COVERAGE_CXXFLAGS="-fprofile-arcs -ftest-coverage"
+ CODECOVERAGE_CXXFLAGS="-fprofile-arcs -ftest-coverage"
fi
if test "$enable_debug_CXX" = yes; then
# enable the code coverage
if test "$enable_code_coverage" = yes; then
- CODE_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
+ CODECOVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
fi
if test "$enable_debug_C" = yes; then
if test -z "$GENHTML" ; then
AC_MSG_ERROR([Cannot find genhtml. Please install it (package lcov under Debian) or remove the option --enable-code-coverage])
fi
- CODE_COVERAGE_LDFLAGS="-coverage"
+ CODECOVERAGE_LDFLAGS="-coverage -lgcov"
fi
AM_CONDITIONAL(CODE_COVERAGE, test "$enable_code_coverage" = yes)