]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
configure.ac: Define ENABLE_COVERAGE macro
authorSimon South <simon@simonsouth.net>
Thu, 23 Sep 2021 13:21:13 +0000 (09:21 -0400)
committerSimon South <simon@simonsouth.net>
Tue, 28 Sep 2021 15:06:52 +0000 (11:06 -0400)
Allow conditional compilation based on whether the "--enable-coverage"
configure option was specified.

configure.ac

index b4617a400364e7e66b9c400e19f2f3c3d29d2a4e..f010c547b782ca360ccdd415f11f98d15d908387 100644 (file)
@@ -119,6 +119,11 @@ AM_CONDITIONAL(USE_RUST, test "x$enable_rust" = "xyes")
 AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes")
 AM_CONDITIONAL(USE_OPENSSL, test "x$enable_nss" != "xyes")
 
+if test "x$enable_coverage" = "xyes"; then
+  AC_DEFINE(ENABLE_COVERAGE, 1,
+           [Defined if coverage support is enabled for the unit tests])
+fi
+
 if test "x$enable_nss" = "xyes"; then
   AC_DEFINE(ENABLE_NSS, 1,
            [Defined if we're building with NSS.])