summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 31edd35792..993e41ced9 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -551,7 +551,12 @@ AC_ARG_ENABLE(clang-static-analyzer,
enableval="yes")
case "$enableval" in
yes) AC_SUBST(ENABLE_CLANG_STATIC_ANALYZER,[1]) ;;
- no) AC_SUBST(ENABLE_CLANG_STATIC_ANALYZER,[0]) ;;
+ no)
+ if test ${clang_arcmt} != "no" ; then
+ AC_MSG_ERROR([Cannot enable clang ARC Migration Tool while disabling static analyzer.])
+ fi
+ AC_SUBST(ENABLE_CLANG_STATIC_ANALYZER,[0])
+ ;;
default) AC_SUBST(ENABLE_CLANG_STATIC_ANALYZER,[1]);;
*) AC_MSG_ERROR([Invalid setting for --enable-clang-static-analyzer. Use "yes" or "no"]) ;;
esac