do not try to build docs by default, unless './configure --enable-docs' is specified
This commit is contained in:
parent
f37e788a9e
commit
1c3385b50c
1 changed files with 27 additions and 18 deletions
45
configure.ac
45
configure.ac
|
@ -49,6 +49,11 @@ AC_ARG_ENABLE([daemon],
|
||||||
(default is yes)])],
|
(default is yes)])],
|
||||||
[], [enable_daemon=yes])
|
[], [enable_daemon=yes])
|
||||||
AC_SUBST(enable_daemon)
|
AC_SUBST(enable_daemon)
|
||||||
|
AC_ARG_ENABLE([docs],
|
||||||
|
[AS_HELP_STRING([--enable-docs[=ARG]],
|
||||||
|
[build documentation (default is no)])],
|
||||||
|
[], [enable_docs=no])
|
||||||
|
AC_SUBST(enable_docs)
|
||||||
|
|
||||||
SEARCHPATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin"
|
SEARCHPATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin"
|
||||||
|
|
||||||
|
@ -148,25 +153,29 @@ if test "x$enable_daemon" = "xyes"; then
|
||||||
AC_MSG_ERROR([Python bindings require libev (try installing your 'libev-devel' or 'libev-dev' package)])))
|
AC_MSG_ERROR([Python bindings require libev (try installing your 'libev-devel' or 'libev-dev' package)])))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_PROG(help2man, help2man, yes, no, $SEARCHPATH)
|
want_docs=no
|
||||||
|
if test "x$enable_docs" = "xyes" ; then
|
||||||
|
|
||||||
if test "x$help2man" = "xno" ; then
|
AC_CHECK_PROG(help2man, help2man, yes, no, $SEARCHPATH)
|
||||||
|
|
||||||
|
if test "x$help2man" = "xno" ; then
|
||||||
AC_MSG_WARN([Could not locate help2man.])
|
AC_MSG_WARN([Could not locate help2man.])
|
||||||
want_docs_missing="$want_docs_missing help2man"
|
want_docs_missing="$want_docs_missing help2man"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$want_docs_missing" = "x" ; then
|
if test "x$want_docs_missing" = "x" ; then
|
||||||
want_docs=yes
|
want_docs=yes
|
||||||
else
|
else
|
||||||
AC_MSG_WARN([Could not find required helper utilities (${want_docs_missing}) so the CORE documentation will not be built.])
|
AC_MSG_ERROR([Could not find required helper utilities (${want_docs_missing}) so the CORE documentation will not be built.])
|
||||||
want_docs=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
# check for sphinx required during make
|
|
||||||
AC_CHECK_PROG(sphinxapi_path, sphinx-apidoc, $as_dir, no, $SEARCHPATH)
|
|
||||||
if test "x$sphinxapi_path" = "xno" ; then
|
|
||||||
AC_MSG_WARN(["Could not location sphinx-apidoc, from the python-sphinx package"])
|
|
||||||
want_docs=no
|
want_docs=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
# check for sphinx required during make
|
||||||
|
AC_CHECK_PROG(sphinxapi_path, sphinx-apidoc, $as_dir, no, $SEARCHPATH)
|
||||||
|
if test "x$sphinxapi_path" = "xno" ; then
|
||||||
|
AC_MSG_ERROR(["Could not location sphinx-apidoc, from the python-sphinx package"])
|
||||||
|
want_docs=no
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#AC_PATH_PROGS(tcl_path, [tclsh tclsh8.5 tclsh8.4], no)
|
#AC_PATH_PROGS(tcl_path, [tclsh tclsh8.5 tclsh8.4], no)
|
||||||
|
@ -227,8 +236,8 @@ ${PACKAGE_STRING} Configuration:
|
||||||
Build:
|
Build:
|
||||||
Host System Type: ${host}
|
Host System Type: ${host}
|
||||||
C Compiler and flags: ${CC} ${CFLAGS}
|
C Compiler and flags: ${CC} ${CFLAGS}
|
||||||
Prefix: ${prefix}
|
Prefix: ${prefix}
|
||||||
Exec Prefix: ${exec_prefix}
|
Exec Prefix: ${exec_prefix}
|
||||||
|
|
||||||
GUI:
|
GUI:
|
||||||
GUI path: ${CORE_LIB_DIR}
|
GUI path: ${CORE_LIB_DIR}
|
||||||
|
@ -240,11 +249,11 @@ Daemon:
|
||||||
Python modules: ${pythondir}
|
Python modules: ${pythondir}
|
||||||
Logs: ${CORE_STATE_DIR}/log
|
Logs: ${CORE_STATE_DIR}/log
|
||||||
|
|
||||||
Startup: ${with_startup}
|
Startup: ${with_startup}
|
||||||
|
|
||||||
Features to build:
|
Features to build:
|
||||||
Build GUI: ${enable_gui}
|
Build GUI: ${enable_gui}
|
||||||
Build Daemon: ${enable_daemon}
|
Build Daemon: ${enable_daemon}
|
||||||
Documentation: ${want_docs}
|
Documentation: ${want_docs}
|
||||||
|
|
||||||
------------------------------------------------------------------------"
|
------------------------------------------------------------------------"
|
||||||
|
|
Loading…
Reference in a new issue