Issue #28 (libatomic_ops).
* Makefile.am (dist_doc_DATA): Define only if ENABLE_DOCS.
* doc/Makefile.am (dist_doc_DATA): Likewise.
* configure.ac (docs): New AC_ARG_ENABLE.
* configure.ac (ENABLE_DOCS): New AM_CONDITIONAL.
pkgconfig_DATA = pkgconfig/atomic_ops.pc
noinst_DATA = pkgconfig/atomic_ops-uninstalled.pc
+if ENABLE_DOCS
dist_doc_DATA = COPYING README.md
+endif
EXTRA_DIST = autogen.sh
CFLAGS=`echo "$CFLAGS" | 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)
+
AC_SUBST(PICFLAG)
AC_SUBST(DEFS)
# installed documentation
#
+
+if ENABLE_DOCS
dist_doc_DATA = LICENSING.txt README_details.txt README_stack.txt \
README_malloc.txt README_win32.txt
+endif