aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-02-01 14:04:25 -0800
committerBen Pfaff <blp@nicira.com>2010-02-02 15:21:09 -0800
commit7c126fbb8a0589f2a29f3e7c520723a2d74b254e (patch)
tree3b0db7f29ddb7403fd8a192ac78652b535c09182 /m4
parenta778696338b85b86b31b9ec7d1a4daeda430aa8b (diff)
Rework and simplify the "lcov" support for the testsuite.
Diffstat (limited to 'm4')
-rw-r--r--m4/openvswitch.m415
1 files changed, 4 insertions, 11 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4
index bdb8b198..7b827e70 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],