llvm.org GIT mirror llvm / 9d9ae9f
Add --enable-docs. Patch by NAKAMURA Takumi. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118918 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 8 years ago
4 changed file(s) with 45 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
4444
4545 ifneq ($(ENABLE_SHARED),1)
4646 DIRS := $(filter-out tools/llvm-shlib, $(DIRS))
47 endif
48
49 ifneq ($(ENABLE_DOCS),1)
50 DIRS := $(filter-out docs, $(DIRS))
4751 endif
4852
4953 ifeq ($(MAKECMDGOALS),libs-only)
263263 # information to allow gprof to be used to get execution frequencies.
264264 #ENABLE_PROFILING = 1
265265
266 # When ENABLE_DOCS is disabled, docs/ will not be built.
267 ENABLE_DOCS = @ENABLE_DOCS@
268
266269 # When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built
267270 ENABLE_DOXYGEN = @ENABLE_DOXYGEN@
268271
492492 esac
493493 fi
494494
495 dnl Allow enablement of building and installing docs
496 AC_ARG_ENABLE(docs,
497 AS_HELP_STRING([--enable-docs],
498 [Build documents (default is YES)]),,
499 enableval=default)
500 case "$enableval" in
501 yes) AC_SUBST(ENABLE_DOCS,[1]) ;;
502 no) AC_SUBST(ENABLE_DOCS,[0]) ;;
503 default) AC_SUBST(ENABLE_DOCS,[1]) ;;
504 *) AC_MSG_ERROR([Invalid setting for --enable-docs. Use "yes" or "no"]) ;;
505 esac
506
495507 dnl Allow enablement of doxygen generated documentation
496508 AC_ARG_ENABLE(doxygen,
497509 AS_HELP_STRING([--enable-doxygen],
687687 DEBUG_SYMBOLS
688688 JIT
689689 TARGET_HAS_JIT
690 ENABLE_DOCS
690691 ENABLE_DOXYGEN
691692 ENABLE_THREADS
692693 ENABLE_PIC
14101411 --enable-debug-symbols Build compiler with debug symbols (default is NO if
14111412 optimization is on and YES if it's off)
14121413 --enable-jit Enable Just In Time Compiling (default is YES)
1414 --enable-docs Build documents (default is YES)
14131415 --enable-doxygen Build doxygen documentation (default is NO)
14141416 --enable-threads Use threads if available (default is YES)
14151417 --enable-pic Build LLVM with Position Independent Code (default
48704872 esac
48714873 fi
48724874
4875 # Check whether --enable-docs was given.
4876 if test "${enable_docs+set}" = set; then
4877 enableval=$enable_docs;
4878 else
4879 enableval=default
4880 fi
4881
4882 case "$enableval" in
4883 yes) ENABLE_DOCS=1
4884 ;;
4885 no) ENABLE_DOCS=0
4886 ;;
4887 default) ENABLE_DOCS=1
4888 ;;
4889 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4890 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4891 { (exit 1); exit 1; }; } ;;
4892 esac
4893
48734894 # Check whether --enable-doxygen was given.
48744895 if test "${enable_doxygen+set}" = set; then
48754896 enableval=$enable_doxygen;
1150011521 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1150111522 lt_status=$lt_dlunknown
1150211523 cat > conftest.$ac_ext <
11503 #line 11504 "configure"
11524 #line 11525 "configure"
1150411525 #include "confdefs.h"
1150511526
1150611527 #if HAVE_DLFCN_H
2169621717 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
2169721718 JIT!$JIT$ac_delim
2169821719 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21720 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
2169921721 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
2170021722 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
2170121723 ENABLE_PIC!$ENABLE_PIC$ac_delim
2170621728 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
2170721729 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
2170821730 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21709 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
2171021731 _ACEOF
2171121732
2171221733 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2174821769 ac_delim='%!_!# '
2174921770 for ac_last_try in false false false false false :; do
2175021771 cat >conf$$subs.sed <<_ACEOF
21772 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
2175121773 CLANGPATH!$CLANGPATH$ac_delim
2175221774 CLANGXXPATH!$CLANGXXPATH$ac_delim
2175321775 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
2184421866 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
2184521867 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
2184621868 RPATH!$RPATH$ac_delim
21847 RDYNAMIC!$RDYNAMIC$ac_delim
2184821869 _ACEOF
2184921870
2185021871 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2188621907 ac_delim='%!_!# '
2188721908 for ac_last_try in false false false false false :; do
2188821909 cat >conf$$subs.sed <<_ACEOF
21910 RDYNAMIC!$RDYNAMIC$ac_delim
2188921911 LIBOBJS!$LIBOBJS$ac_delim
2189021912 LTLIBOBJS!$LTLIBOBJS$ac_delim
2189121913 _ACEOF
2189221914
21893 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
21915 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
2189421916 break
2189521917 elif $ac_last_try; then
2189621918 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5