diff options
author | Ben Pfaff <blp@nicira.com> | 2010-02-01 14:04:25 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-02-02 15:21:09 -0800 |
commit | 7c126fbb8a0589f2a29f3e7c520723a2d74b254e (patch) | |
tree | 3b0db7f29ddb7403fd8a192ac78652b535c09182 /m4 | |
parent | a778696338b85b86b31b9ec7d1a4daeda430aa8b (diff) | |
download | openvswitch-7c126fbb8a0589f2a29f3e7c520723a2d74b254e.tar.gz |
Rework and simplify the "lcov" support for the testsuite.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/openvswitch.m4 | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index bdb8b1980..7b827e70d 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -22,22 +22,15 @@ AC_DEFUN([OVS_CHECK_COVERAGE], [AC_HELP_STRING([--enable-coverage], [Enable gcov coverage tool.])], [case "${enableval}" in - (lcov) coverage=true lcov=true ;; - (yes) coverage=true lcov=false ;; - (no) coverage=false lcov=false ;; + (lcov|yes) coverage=true ;; + (no) coverage=false ;; (*) AC_MSG_ERROR([bad value ${enableval} for --enable-coverage]) ;; esac], - [coverage=false lcov=false]) + [coverage=false]) if $coverage; then CFLAGS="$CFLAGS -O0 --coverage" LDFLAGS="$LDFLAGS --coverage" - fi - if $lcov; then - if lcov --version >/dev/null 2>&1; then :; else - AC_MSG_ERROR([--enable-coverage=lcov was specified but lcov is not in \$PATH]) - fi - fi - AC_SUBST([LCOV], [$lcov])]) + fi]) dnl Checks for --enable-ndebug and defines NDEBUG if it is specified. AC_DEFUN([OVS_CHECK_NDEBUG], |