summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-09 15:37:35 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-02-22 16:57:43 +0100
commit9015fa646e04fc3cb180bea24c33d34edbb48ed7 (patch)
tree11d994d2046f2cb6043add66bc58d57603497836 /configure.ac
parentd489071fb348cd180bc4f70e732b0e76d9804448 (diff)
python: build html docs using sphinx
Build instructions: make make DESTIDIR=/tmp/... install make DESTIDIR=/tmp/... sphinx-html sphinx-man sphinx-epub ...
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 834b12314c..5737c65257 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,6 +180,19 @@ AS_IF([test "x$with_python" != "xno"], [
])
AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
+AC_ARG_ENABLE(sphinx, AS_HELP_STRING([--enable-sphinx],
+ [use sphinx to build documentation for python-systemd]))
+AS_IF([test "x$enable_sphinx" = "xyes"], [
+ AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
+ AS_IF([test -z "$SPHINX_BUILD"], [
+ AC_MSG_ERROR([*** sphinx build requested, but sphinx-build not found])
+ ])
+ AS_IF([test "x$have_python_devel" != "xyes"], [
+ AC_MSG_ERROR([*** sphinx build requested, but python support not enabled])
+ ])
+])
+AM_CONDITIONAL(ENABLE_SPHINX, [test "x$enable_sphinx" = "xyes"])
+
# ------------------------------------------------------------------------------
AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
@@ -902,6 +915,7 @@ AC_MSG_RESULT([
Python Headers: ${have_python_devel}
man pages: ${have_manpages}
gtk-doc: ${enable_gtk_doc}
+ sphinx documentation: ${enable_sphinx}
Split /usr: ${enable_split_usr}
SysV compatibility: ${SYSTEM_SYSV_COMPAT}