From 5fecc4d6267b6dfba023347289ddff66c2521635 Mon Sep 17 00:00:00 2001 From: Jan Chren Date: Mon, 8 Jul 2019 20:20:26 +0000 Subject: configure: fix --disable-code-coverage This fixes the case when --disable-code-coverage supplied to ./configure would result in coverage="yes" being set. Closes #4099 Reviewed-by: Daniel Gustafsson --- m4/curl-functions.m4 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'm4') diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 84f6ffcb2..9020f3942 100644 --- a/m4/curl-functions.m4 +++ b/m4/curl-functions.m4 @@ -7313,8 +7313,7 @@ AC_DEFUN([CURL_COVERAGE],[ dnl check if enabled by argument AC_ARG_ENABLE(code-coverage, AC_HELP_STRING([--enable-code-coverage], [Provide code coverage]), - coverage="yes", - coverage="no") + coverage="$enableval") dnl if not gcc switch off again AS_IF([ test "$GCC" != "yes" ], coverage="no" ) -- cgit v1.2.3