Mercurial > hg > octave-nkf
changeset 16012:ca37c6023a79
don't abort configure if makeinfo is missing
* acinclude.m4 (OCTAVE_PROG_MAKEINFO): Issue warning instead of error
if makeinfo is not found.
* configure.ac: Disable building docs if makeinfo is not found.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Feb 2013 12:26:50 -0500 |
parents | 8122286c69a9 |
children | 4efc0c1537df |
files | configure.ac m4/acinclude.m4 |
diffstat | 2 files changed, 21 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -2185,13 +2185,21 @@ #endif ]]) -### Need to disable building documentation if gnuplot was not found, -### unless it was already disabled previously. - -if test -n "$DOCDIR" && test -n "$warn_gnuplot"; then - DOCDIR= - warn_docs="building documentation disabled because gnuplot was not found; make dist will fail" - OCTAVE_CONFIGURE_WARNING([warn_docs]) +### Need to disable building documentation if either gnuplot or +### makeinfo are missing. Skip this warning if building docs was +### disabled with a configure option. + +if test -n "$DOCDIR"; then + if test -n "$warn_gnuplot"; then + DOCDIR= + warn_docs_gnuplot="building documentation disabled because gnuplot was not found; make dist will fail" + OCTAVE_CONFIGURE_WARNING([warn_docs_gnuplot]) + fi + if test -n "$warn_makeinfo"; then + DOCDIR= + warn_docs_makeinfo="building documentation disabled because makeinfo was not found; make dist will fail" + OCTAVE_CONFIGURE_WARNING([warn_docs_makeinfo]) + fi fi AM_CONDITIONAL([AMCOND_BUILD_DOCS], [test -n "$DOCDIR"])
--- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -1537,7 +1537,12 @@ dnl exist which will then fool the 'test -z' line. AC_CHECK_PROG(MKINFO, makeinfo, makeinfo, []) if test -z "$MKINFO"; then - AC_MSG_ERROR([makeinfo program required for reading documentation]) + warn_makeinfo=" + +I didn't find makeinfo, which is required for reading documentation. +You may install a copy later for Octave to use. +" + OCTAVE_CONFIGURE_WARNING([warn_makeinfo]) fi ]) dnl