diff --git a/configure.ac b/configure.ac index 7982e21aab0f79deac69023106fab4c7d4cc2e85..985b8c2f85467e61ce5f43fec51a8e0a01f13a2d 100644 --- a/configure.ac +++ b/configure.ac @@ -2389,7 +2389,9 @@ cp -f COPYING.LIB COPYING # Detect when running under the clang static analyzer's scan-build driver # or Coverity-prevent's cov-build. Define STATIC_ANALYSIS accordingly. -test -n "${CCC_ANALYZER_ANALYSIS+set}$COVERITY_BUILD_COMMAND" && t=1 || t=0 +t=0 +test -n "${CCC_ANALYZER_ANALYSIS+set}" && t=1 +test -n "$COVERITY_BUILD_COMMAND$COVERITY_LD_PRELOAD" && t=1 AC_DEFINE_UNQUOTED([STATIC_ANALYSIS], [$t], [Define to 1 when performing static analysis.])