On Wed, Sep 29, 2010 at 02:58:31PM +0200, Tamas TEVESZ wrote: > i'm trying to integrate lcov at least a bit. i've gotten this far, and > it completely doesn't work:
Try this:
AC_ARG_ENABLE([lcov],
[AS_HELP_STRING([--enable-lcov[=output-directory]], [enable coverage data
generation using LCOV (GCC only) @<:@default=no@:>@])],
[],
[enable_lcov=no])
AS_IF([test "x$enable_lcov" != xno],
AX_CFLAGS_GCC_OPTION(-fprofile-arcs -ftest-coverage)
if test "x$enable_lcov" = "xyes"; then
lcov_output_directory="coverage-report"
else
lcov_output_directory="$enable_lcov"
fi
AC_SUBST(lcov_output_directory)
)
enable_foo variable is set automatically and I'm unsure if AS_IF
can be nested.
--
Regards, --
Sir Raorn. --- http://thousandsofhate.blogspot.com/
signature.asc
Description: Digital signature
