* configure.ac (docs): New AC_ARG_ENABLE.
* configure.ac (ENABLE_DOCS): New AM_CONDITIONAL.
* doc/doc.am (dist_doc_DATA): Define only if ENABLE_DOCS.
CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/-O\(1\|2\|3\|4\|s\|fast\)\?//g'`
fi
+AC_ARG_ENABLE(docs,
+ [AC_HELP_STRING([--disable-docs],
+ [Do not build and install documentation])])
+AM_CONDITIONAL(ENABLE_DOCS, test x$enable_docs != xno)
+
# Atomic Ops
# ----------
## Process this file with automake to produce Makefile.in.
# installed documentation
-#
+if ENABLE_DOCS
dist_doc_DATA = \
AUTHORS \
README.md \
doc/scale.md \
doc/simple_example.md \
doc/tree.md
+endif