From: Jan Chren Date: Mon, 8 Jul 2019 20:20:26 +0000 (+0000) Subject: configure: fix --disable-code-coverage X-Git-Tag: curl-7_65_2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fecc4d6267b6dfba023347289ddff66c2521635;p=thirdparty%2Fcurl.git 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 --- diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 84f6ffcb29..9020f39428 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" )