diff options
author | Colin Walters <walters@verbum.org> | 2012-06-30 10:52:25 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-06-30 10:52:27 -0400 |
commit | f746c4488961851df9a0f11e04511693e427dd03 (patch) | |
tree | 716365a982913151ee142366114a816feba9111e | |
parent | 30b70bdd4113a3bb22e8ee98ecdfde5c5e5c165e (diff) | |
download | gvfs-f746c4488961851df9a0f11e04511693e427dd03.tar.gz |
build: Add --disable-documentation option
Some embedded users may not want it, and for gnome-ostree right now I
don't have the Docbook infrastrucutre set up.
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | configure.ac | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index fc351f6c..f013a7d2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,10 +8,13 @@ SUBDIRS = \ monitor \ po \ programs \ - man \ test \ $(NULL) +if BUILD_DOCUMENTATION +SUBDIRS += man +endif + ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc diff --git a/configure.ac b/configure.ac index 763d539d..8f89621b 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,17 @@ AC_PATH_PROG(PKG_CONFIG, pkg-config, no) AC_PATH_PROG(GIO_QUERYMODULES, gio-querymodules, no) AM_PROG_CC_C_O AC_PROG_SED -AC_PATH_PROG(XSLTPROC, xsltproc, no) +AC_ARG_ENABLE(documentation, + AC_HELP_STRING([--enable-documentation], + [build documentation]),, + enable_documentation=yes) +if test x$enable_documentation = xyes; then + AC_PATH_PROG([XSLTPROC], [xsltproc]) + if test x$XSLTPROC = x; then + AC_MSG_ERROR([xsltproc is required to build documentation]) + fi +fi +AM_CONDITIONAL(BUILD_DOCUMENTATION, test x$enable_documentation = xyes) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) |