aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-07-07 15:33:31 +0200
committerJelmer Vernooij <jelmer@samba.org>2006-07-07 15:33:31 +0200
commit66b9e86eafc3709c491f96c917069db8b6a0c895 (patch)
tree2332c2527f4467adec8d354223ef42d1abd39152 /configure
parentbf25fa3627c00f80bad624bb4549c46e4b084279 (diff)
Add support for checking test suite coverage using gcov.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index a3c16e75..43bd2f95 100755
--- a/configure
+++ b/configure
@@ -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`