summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-02-10 20:44:43 +0100
committerGravatar Nikias Bassen2013-02-10 20:44:43 +0100
commitc88f81de2643ef14dbf9bde42055b468d85e45a1 (patch)
treed789fb6c0a892a624664bb492646f7553b730d2a
parent83486a90711963def98a88f680fa7770d3bc7beb (diff)
downloadlibvformat-c88f81de2643ef14dbf9bde42055b468d85e45a1.tar.gz
libvformat-c88f81de2643ef14dbf9bde42055b468d85e45a1.tar.bz2
make building docs optional. use --enable-docs to build docs.
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac14
2 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 2bfe1c6..21ad378 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,3 @@
-SUBDIRS = src vformat test doc
+SUBDIRS = src vformat test $(DOC_SUB)
diff --git a/configure.ac b/configure.ac
index ab68899..9d46ceb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,6 +23,20 @@ AC_FUNC_MKTIME
AC_FUNC_STAT
AC_CHECK_FUNCS([atexit memset strstr])
+AC_ARG_ENABLE([docs],
+ [AS_HELP_STRING([--enable-docs],
+ [build documentation (default is no)])],
+ [build_docs=true],
+ [build_docs=false])
+if test "$build_docs" = true; then
+ DOC_SUB=doc
+else
+ DOC_SUB=
+fi
+
+AM_CONDITIONAL([ENABLE_DOCS],[test "x$DOC_SUB" = "xdoc"])
+AC_SUBST([DOC_SUB])
+
AC_OUTPUT([Makefile src/Makefile vformat/Makefile test/Makefile doc/Makefile])
#AC_CONFIG_FILES([])