llvm.org GIT mirror llvm / bdb05aa
Add a --enable-clang-plugin-support option to configure. This will replace the now badly named CLANG_IS_PRODUCTION. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203471 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
3 changed file(s) with 44 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
252252 # When ENABLE_SPLIT_DWARF is enabled, LLVM uses -gfission to build in debug mode.
253253 ENABLE_SPLIT_DWARF = @ENABLE_SPLIT_DWARF@
254254
255 # When enabled, clang will have plugin support.
256 CLANG_PLUGIN_SUPPORT = @CLANG_PLUGIN_SUPPORT@
257
255258 # When ENABLE_CLANG_ARCMT is enabled, clang will have ARCMigrationTool.
256259 ENABLE_CLANG_ARCMT = @ENABLE_CLANG_ARCMT@
257260
640640 *) AC_MSG_ERROR([Invalid setting for --enable-clang-arcmt. Use "yes" or "no"]) ;;
641641 esac
642642
643 dnl --enable-clang-plugin-support: check whether to enable plugins in clang
644 clang_plugin_support="yes"
645 AC_ARG_ENABLE(clang-plugin-support,
646 AS_HELP_STRING([--enable-clang-plugin-support],
647 [Enable plugin support in clang (default is YES)]),
648 clang_plugin_support="$enableval",
649 enableval="yes")
650 case "$enableval" in
651 yes) AC_SUBST(CLANG_PLUGIN_SUPPORT,[1]) ;;
652 no) AC_SUBST(CLANG_PLUGIN_SUPPORT,[0]) ;;
653 default) AC_SUBST(CLANG_PLUGIN_SUPPORT,[1]);;
654 *) AC_MSG_ERROR([Invalid setting for --enable-clang-plugin-support. Use "yes" or "no"]) ;;
655 esac
656
643657 dnl --enable-clang-static-analyzer: check whether to enable static-analyzer
644658 clang_static_analyzer="yes"
645659 AC_ARG_ENABLE(clang-static-analyzer,
688688 ENABLE_CXX1Y
689689 ENABLE_SPLIT_DWARF
690690 ENABLE_CLANG_ARCMT
691 CLANG_PLUGIN_SUPPORT
691692 ENABLE_CLANG_STATIC_ANALYZER
692693 ENABLE_CLANG_REWRITER
693694 ENABLE_OPTIMIZED
14061407 --enable-cxx1y Use c++1y if available (default is NO)
14071408 --enable-split-dwarf Use split-dwarf if available (default is NO)
14081409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1410 --enable-clang-plugin-support
1411 Enable plugin support in clang (default is YES)
14091412 --enable-clang-static-analyzer
14101413 Enable building of clang Static Analyzer (default is
14111414 YES)
48714874 { (exit 1); exit 1; }; } ;;
48724875 esac
48734876
4877 clang_plugin_support="yes"
4878 # Check whether --enable-clang-plugin-support was given.
4879 if test "${enable_clang_plugin_support+set}" = set; then
4880 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4881 else
4882 enableval="yes"
4883 fi
4884
4885 case "$enableval" in
4886 yes) CLANG_PLUGIN_SUPPORT=1
4887 ;;
4888 no) CLANG_PLUGIN_SUPPORT=0
4889 ;;
4890 default) CLANG_PLUGIN_SUPPORT=1
4891 ;;
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4895 esac
4896
48744897 clang_static_analyzer="yes"
48754898 # Check whether --enable-clang-static-analyzer was given.
48764899 if test "${enable_clang_static_analyzer+set}" = set; then
2017920202 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
2018020203 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
2018120204 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20205 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
2018220206 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
2018320207 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
2018420208 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
2018820212 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
2018920213 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
2019020214 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20191 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
2019220215 _ACEOF
2019320216
2019420217 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2023020253 ac_delim='%!_!# '
2023120254 for ac_last_try in false false false false false :; do
2023220255 cat >conf$$subs.sed <<_ACEOF
20256 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
2023320257 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
2023420258 JIT!$JIT$ac_delim
2023520259 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
2032620350 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
2032720351 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
2032820352 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20329 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
2033020353 _ACEOF
2033120354
2033220355 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2036820391 ac_delim='%!_!# '
2036920392 for ac_last_try in false false false false false :; do
2037020393 cat >conf$$subs.sed <<_ACEOF
20394 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
2037120395 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
2037220396 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
2037320397 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
2037920403 LTLIBOBJS!$LTLIBOBJS$ac_delim
2038020404 _ACEOF
2038120405
20382 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20406 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
2038320407 break
2038420408 elif $ac_last_try; then
2038520409 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5