aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-12 19:24:06 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-12 19:24:06 +0000
commit9d9ae9fb59ee3897ffc21dfa3b7078478ac6d674 (patch)
tree7e3b46e0d8d7ad0ca331e198cc0509b4c0dc9303 /autoconf
parent52668c9a3025ee64b408bf041453c93a1ac51908 (diff)
downloadexternal_llvm-9d9ae9fb59ee3897ffc21dfa3b7078478ac6d674.zip
external_llvm-9d9ae9fb59ee3897ffc21dfa3b7078478ac6d674.tar.gz
external_llvm-9d9ae9fb59ee3897ffc21dfa3b7078478ac6d674.tar.bz2
Add --enable-docs. Patch by NAKAMURA Takumi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 1d5fa15..9988f0e 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -493,6 +493,18 @@ else
esac
fi
+dnl Allow enablement of building and installing docs
+AC_ARG_ENABLE(docs,
+ AS_HELP_STRING([--enable-docs],
+ [Build documents (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_DOCS,[1]) ;;
+ no) AC_SUBST(ENABLE_DOCS,[0]) ;;
+ default) AC_SUBST(ENABLE_DOCS,[1]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-docs. Use "yes" or "no"]) ;;
+esac
+
dnl Allow enablement of doxygen generated documentation
AC_ARG_ENABLE(doxygen,
AS_HELP_STRING([--enable-doxygen],