diff options
author | wlemb <wlemb> | 2002-06-15 09:32:04 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2002-06-15 09:32:04 +0000 |
commit | feecf18f5eeba1ff02ff4592fa75e8808bb46c13 (patch) | |
tree | 2475850e9b6159b33acbf3bce0b2e58837c8d655 /aclocal.m4 | |
parent | 515a9ec8dbc8a5d12a731d9a22a5ab65f37ee075 (diff) | |
download | groff-feecf18f5eeba1ff02ff4592fa75e8808bb46c13.tar.gz |
Don't produce HTML files if utility programs are missing.
* Makefile.in (make_html, make_install_html): New variables.
(MDEFINES): Updated.
* aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
utility programs.
* configure.ac: Use it.
* configure: Regenerated.
* doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
(HTMLEXAMPLESFILES): This new variable.
(EXAMPLESIMAGEFILES): Renamed to...
(HTMLEXAMPLEIMAGEFILES): This.
(CLEANADD): Add HTMLEXAMPLEFILES.
(all): Use `make_html'.
(html): New target.
(install_data): Use `make_install_html'.
Move html stuff to...
(install_html): This new target.
(uninstall_sub): Updated.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -58,6 +58,31 @@ AC_DEFUN(GROFF_PROG_YACC, [AC_CHECK_PROGS(YACC, byacc 'bison -y', yacc)])dnl dnl dnl +dnl The following programs are needed for grohtml. +dnl +AC_DEFUN(GROFF_HTML_PROGRAMS, +[make_html=html +make_install_html=install_html +AC_CHECK_PROG(pnmcut, pnmcut, found, missing) +AC_CHECK_PROG(pnmcrop, pnmcrop, found, missing) +AC_CHECK_PROG(pnmtopng, pnmtopng, found, missing) +AC_CHECK_PROG(gs, gs gsos2, found, missing) +AC_CHECK_PROG(psselect, psselect, found, missing) +case "x$pnmcut$pnmcrop$pnmtopng$gs$psselect" in +*missing*) + make_html= + make_install_html= + AC_MSG_WARN([ + + Since one or more of the above five programs can't be found in the path, + the HTML backend of groff (grohtml) won't work properly. Consequently, + no documentation in HTML format is built and installed. +]) ;; +esac +AC_SUBST(make_html) +AC_SUBST(make_install_html)])dnl +dnl +dnl dnl GROFF_CSH_HACK(if hack present, if not present) dnl AC_DEFUN(GROFF_CSH_HACK, |