1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

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 <daniel@yesql.se>
This commit is contained in:
Jan Chren 2019-07-08 20:20:26 +00:00 committed by Daniel Gustafsson
parent efc55b8986
commit 5fecc4d626

View File

@ -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" )