mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Add --enable-coverage option to configure script.
This option enables the proper compiler flags for tracking code coverage, which is useful along side automated testing. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
11
configure.ac
11
configure.ac
@@ -288,6 +288,17 @@ AC_ARG_ENABLE([dev-mode],
|
||||
AC_SUBST(NOISY_BUILD)
|
||||
AC_SUBST(AST_DEVMODE)
|
||||
|
||||
AST_CODE_COVERAGE=no
|
||||
AC_ARG_ENABLE([coverage],
|
||||
[AS_HELP_STRING([--enable-coverage],
|
||||
[Turn on code coverage tracking (for gcov)])],
|
||||
[case "${enableval}" in
|
||||
y|ye|yes) AST_CODE_COVERAGE=yes ;;
|
||||
n|no) AST_CODE_COVERAGE=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-coverage) ;;
|
||||
esac])
|
||||
AC_SUBST(AST_CODE_COVERAGE)
|
||||
|
||||
# AST_EXT_LIB_SETUP is used to tell configure to handle variables for
|
||||
# various packages.
|
||||
# $1 is the prefix for the variables in makeopts and autoconfig.h
|
||||
|
Reference in New Issue
Block a user