aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2018-10-31 14:52:31 +0100
committerOliver Smith <osmith@sysmocom.de>2018-11-16 15:14:04 +0100
commit3e0af16bfd901acffb479cf502ce5235ca2eea3b (patch)
treec04cdcb969e1446a14e4bb25f1275213c128ca0b /configure.ac
parentc51609aa5c85dc802823393ee3c37abb734db938 (diff)
move project specific manuals to their own repososmith/move-manuals-to-project-repos
Build manuals when ./configure --enable-manuals is specified. Requires osmo-gsm-manuals to be installed. Related: OS#3385 Depends: I96933dd4dd6cac159847647f1c642215051a9aad (osmo-gsm-manuals) Change-Id: I2f9c27f81940b02414f0e618483bffade72e8cf7
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2d8dc425e..9fbcb62e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,25 @@ then
CPPFLAGS="$CPPFLAGS $WERROR_FLAGS"
fi
+# Generate manuals
+AC_ARG_ENABLE(manuals,
+ [AS_HELP_STRING(
+ [--enable-manuals],
+ [Generate manual PDFs [default=no]],
+ )],
+ [osmo_ac_build_manuals=$enableval], [osmo_ac_build_manuals="no"])
+if test x"$osmo_ac_build_manuals" = x"yes"
+then
+ PKG_CHECK_MODULES(OSMOGSMMANUALS, osmo-gsm-manuals)
+ if ! osmo-gsm-manuals-check-depends
+ then
+ AC_MSG_ERROR("missing dependencies for --enable-manuals")
+ fi
+ OSMO_GSM_MANUALS_DIR=$($PKG_CONFIG osmo-gsm-manuals --variable=osmogsmmanualsdir)
+ AC_SUBST([OSMO_GSM_MANUALS_DIR])
+fi
+AM_CONDITIONAL([BUILD_MANUALS], [test x"$osmo_ac_build_manuals" = x"yes"])
+
# Enable/disable smpp support in the msc?
AC_ARG_ENABLE([smpp], [AS_HELP_STRING([--enable-smpp], [Build the SMPP interface])],
[osmo_ac_build_smpp="$enableval"],[osmo_ac_build_smpp="no"])
@@ -219,6 +238,7 @@ AC_OUTPUT(
tests/msc_vlr/Makefile
doc/Makefile
doc/examples/Makefile
+ doc/manuals/Makefile
contrib/Makefile
contrib/systemd/Makefile
Makefile)