diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-07 12:44:08 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-07 12:44:08 -0500 |
commit | 66a476419d301ca7eb879d205e394a0a8c21e598 (patch) | |
tree | 06bb478fe68f81ce2db5374b0f3ed96ccbdb9b51 /configure.ac | |
parent | profiles (diff) | |
download | firejail-66a476419d301ca7eb879d205e394a0a8c21e598.tar.gz firejail-66a476419d301ca7eb879d205e394a0a8c21e598.tar.zst firejail-66a476419d301ca7eb879d205e394a0a8c21e598.zip |
gcov support
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 9e7680d7d..e05c023f7 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -22,7 +22,7 @@ AS_IF([test "x$enable_apparmor" = "xyes"], [ | |||
22 | [Couldn't find sys/apparmor.h... please install apparmor user space library and development files] )]) | 22 | [Couldn't find sys/apparmor.h... please install apparmor user space library and development files] )]) |
23 | ]) | 23 | ]) |
24 | AS_IF([test "x$enable_apparmor" = "xyes"], [ | 24 | AS_IF([test "x$enable_apparmor" = "xyes"], [ |
25 | EXTRA_LDFLAGS="-lapparmor" | 25 | EXTRA_LDFLAGS+="-lapparmor " |
26 | ]) | 26 | ]) |
27 | AC_SUBST([EXTRA_LDFLAGS]) | 27 | AC_SUBST([EXTRA_LDFLAGS]) |
28 | 28 | ||
@@ -136,6 +136,16 @@ AS_IF([test "x$enable_busybox_workaround" = "xyes"], [ | |||
136 | ]) | 136 | ]) |
137 | 137 | ||
138 | 138 | ||
139 | HAVE_GCOV="" | ||
140 | AC_ARG_ENABLE([gcov], | ||
141 | AS_HELP_STRING([--enable-gcov], [Gcov instrumentation])) | ||
142 | AS_IF([test "x$enable_gcov" = "xyes"], [ | ||
143 | HAVE_GCOV="--coverage " | ||
144 | EXTRA_LDFLAGS+="-lgcov --coverage " | ||
145 | AC_SUBST(HAVE_GCOV) | ||
146 | ]) | ||
147 | |||
148 | |||
139 | 149 | ||
140 | # checking pthread library | 150 | # checking pthread library |
141 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) | 151 | AC_CHECK_LIB([pthread], [main], [], AC_MSG_ERROR([*** POSIX thread support not installed ***])) |
@@ -170,7 +180,8 @@ echo " file transfer support: $HAVE_FILE_TRANSFER" | |||
170 | echo " overlayfs support: $HAVE_OVERLAYFS" | 180 | echo " overlayfs support: $HAVE_OVERLAYFS" |
171 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" | 181 | echo " fatal warnings: $HAVE_FATAL_WARNINGS" |
172 | echo " busybox workaround: $BUSYBOX_WORKAROUND" | 182 | echo " busybox workaround: $BUSYBOX_WORKAROUND" |
173 | printf " EXTRA_LDFLAGS: $EXTRA_LDFLAGS" | 183 | echo " EXTRA_LDFLAGS: $EXTRA_LDFLAGS" |
184 | echo " Gcov instrumentation: $HAVE_GCOV" | ||
174 | echo | 185 | echo |
175 | 186 | ||
176 | 187 | ||