aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-07 12:44:08 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-07 12:44:08 -0500
commit66a476419d301ca7eb879d205e394a0a8c21e598 (patch)
tree06bb478fe68f81ce2db5374b0f3ed96ccbdb9b51 /configure
parentprofiles (diff)
downloadfirejail-66a476419d301ca7eb879d205e394a0a8c21e598.tar.gz
firejail-66a476419d301ca7eb879d205e394a0a8c21e598.tar.zst
firejail-66a476419d301ca7eb879d205e394a0a8c21e598.zip
gcov support
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 21 insertions, 2 deletions
diff --git a/configure b/configure
index a89fddbef..47413e5b8 100755
--- a/configure
+++ b/configure
@@ -625,6 +625,7 @@ ac_includes_default="\
625ac_subst_vars='LTLIBOBJS 625ac_subst_vars='LTLIBOBJS
626LIBOBJS 626LIBOBJS
627HAVE_SECCOMP_H 627HAVE_SECCOMP_H
628HAVE_GCOV
628BUSYBOX_WORKAROUND 629BUSYBOX_WORKAROUND
629HAVE_FATAL_WARNINGS 630HAVE_FATAL_WARNINGS
630HAVE_WHITELIST 631HAVE_WHITELIST
@@ -709,6 +710,7 @@ enable_file_transfer
709enable_whitelist 710enable_whitelist
710enable_fatal_warnings 711enable_fatal_warnings
711enable_busybox_workaround 712enable_busybox_workaround
713enable_gcov
712' 714'
713 ac_precious_vars='build_alias 715 ac_precious_vars='build_alias
714host_alias 716host_alias
@@ -1346,6 +1348,7 @@ Optional Features:
1346 --enable-fatal-warnings -W -Wall -Werror 1348 --enable-fatal-warnings -W -Wall -Werror
1347 --enable-busybox-workaround 1349 --enable-busybox-workaround
1348 enable busybox workaround 1350 enable busybox workaround
1351 --enable-gcov Gcov instrumentation
1349 1352
1350Some influential environment variables: 1353Some influential environment variables:
1351 CC C compiler command 1354 CC C compiler command
@@ -3508,7 +3511,7 @@ fi
3508fi 3511fi
3509if test "x$enable_apparmor" = "xyes"; then : 3512if test "x$enable_apparmor" = "xyes"; then :
3510 3513
3511 EXTRA_LDFLAGS="-lapparmor" 3514 EXTRA_LDFLAGS+="-lapparmor "
3512 3515
3513fi 3516fi
3514 3517
@@ -3693,6 +3696,21 @@ if test "x$enable_busybox_workaround" = "xyes"; then :
3693fi 3696fi
3694 3697
3695 3698
3699HAVE_GCOV=""
3700# Check whether --enable-gcov was given.
3701if test "${enable_gcov+set}" = set; then :
3702 enableval=$enable_gcov;
3703fi
3704
3705if test "x$enable_gcov" = "xyes"; then :
3706
3707 HAVE_GCOV="--coverage "
3708 EXTRA_LDFLAGS+="-lgcov --coverage "
3709
3710
3711fi
3712
3713
3696 3714
3697# checking pthread library 3715# checking pthread library
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
@@ -4954,7 +4972,8 @@ echo " file transfer support: $HAVE_FILE_TRANSFER"
4954echo " overlayfs support: $HAVE_OVERLAYFS" 4972echo " overlayfs support: $HAVE_OVERLAYFS"
4955echo " fatal warnings: $HAVE_FATAL_WARNINGS" 4973echo " fatal warnings: $HAVE_FATAL_WARNINGS"
4956echo " busybox workaround: $BUSYBOX_WORKAROUND" 4974echo " busybox workaround: $BUSYBOX_WORKAROUND"
4957printf " EXTRA_LDFLAGS: $EXTRA_LDFLAGS" 4975echo " EXTRA_LDFLAGS: $EXTRA_LDFLAGS"
4976echo " Gcov instrumentation: $HAVE_GCOV"
4958echo 4977echo
4959 4978
4960 4979