diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-05-02 02:15:05 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-05-02 02:15:05 +0200 |
commit | 23ad231bf566ba9cb877d409de80b8259cdd9bb5 (patch) | |
tree | 79c75090ddf93bf16cb19c19008b2e0928300bb4 /configure.ac | |
parent | cd9c08173c375db1fd0dc7ad466946eba12ff165 (diff) | |
download | gtk-vlc-player-23ad231bf566ba9cb877d409de80b8259cdd9bb5.tar.gz |
added skeleton docbook and site-configuration support
* docbook is built by default and also included in distro
* doxygen is not built by default (developer docs)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 887a46e..56f6d70 100644 --- a/configure.ac +++ b/configure.ac @@ -2,11 +2,12 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.65) -AC_INIT([Experiment Player], [dev], [robin.haberkorn@st.ovgu.de]) +AC_INIT([Experiment Player], [dev], [robin.haberkorn@st.ovgu.de], + [experiment-player]) AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE -AC_CONFIG_SRCDIR(src/player.c) +AC_CONFIG_SRCDIR(src/main.c) AC_CONFIG_HEADER(config.h) AC_CANONICAL_BUILD @@ -29,9 +30,10 @@ if [[ x$PKG_CONFIG = x ]]; then AC_MSG_ERROR([Couldn't find pkg-config]) fi -# FIXME: this should be configurable AC_CHECK_PROG(DOXYGEN, doxygen, doxygen) -AM_CONDITIONAL(USE_DOXYGEN, test x$DOXYGEN != x) +AC_CHECK_PROG(XSLTPROC, xsltproc, xsltproc) +XSLT_FLAGS="--xinclude" +AC_SUBST(XSLT_FLAGS) # # Checks for libraries. @@ -91,6 +93,23 @@ AC_FUNC_REALLOC # # Config options # +AC_ARG_ENABLE(doxygen-doc, + AS_HELP_STRING([--enable-doxygen-doc], + [Generate Doxygen documentation [default=no]]), + [doxygen_doc=$enableval], [doxygen_doc=no]) +if [[ $doxygen_doc = yes -a x$DOXYGEN = x ]]; then + AC_MSG_ERROR([Enabled generating Doxygen documentation, but Doxygen not found! Try --disable-doxygen-doc.]) +fi +AM_CONDITIONAL(BUILD_DOXYGEN, test $doxygen_doc = yes) + +AC_ARG_ENABLE(html-doc, + AS_HELP_STRING([--enable-html-doc], + [Generate HTML documentation [default=yes]]), + [html_doc=$enableval], [html_doc=yes]) +if [[ $html_doc = yes -a x$XSLTPROC = x ]]; then + AC_MSG_ERROR([Enabled generating HTML documentation, but XSLTProc not found! Try --disable-html-doc.]) +fi +AM_CONDITIONAL(BUILD_HTML, test $html_doc = yes) # FIXME AC_DEFINE(USE_BUILDER, , [foo]) |