diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-07-07 15:33:31 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2006-07-07 15:33:31 +0200 |
commit | 66b9e86eafc3709c491f96c917069db8b6a0c895 (patch) | |
tree | 2332c2527f4467adec8d354223ef42d1abd39152 /configure | |
parent | bf25fa3627c00f80bad624bb4549c46e4b084279 (diff) |
Add support for checking test suite coverage using gcov.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -27,6 +27,7 @@ yahoo=1 debug=0 strip=1 +gcov=0 ipv6=1 events=glib @@ -63,6 +64,7 @@ Option Description Default --debug=0/1 Disable/enable debugging $debug --strip=0/1 Disable/enable binary stripping $strip +--gcov=0/1 Disable/enable test coverage reporting $gcov --ipv6=0/1 IPv6 socket support $ipv6 @@ -313,6 +315,11 @@ else fi; fi +if [ "$gcov" = "1" ]; then + echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings + echo "EFLAGS+=-lgcov" >> Makefile.settings +fi + echo if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then nick=`bzr nick` |