dnl Handle the --enable-html-doc option. dnl dnl The following snippet goes into doc/Makefile.am dnl ------------------------ dnl CLEANFILES = yourfile.html dnl dnl if MAKE_HTML dnl hdir = @htmldir@ dnl h_DATA = yourfile.html dnl endif dnl dnl SUFFIXES = .html dnl dnl .texi.html: dnl @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] dnl cd $(srcdir) && $(MAKEINFO) --html `echo $< | sed 's,.*/,,'` dnl ------------------------ dnl dnl Written by Alexandre Duret-Lutz AC_DEFUN([adl_ENABLE_HTML_DOC], [AC_ARG_ENABLE([html-doc], [AC_HELP_STRING([--enable-html-doc=DIR], [build and install html documentation])]) if test "${enable_html_doc-no}" != no; then if test "x$enable_html_doc" = xyes; then htmldir="$data_dir/doc" else htmldir="$enable_html_doc" fi AC_SUBST([htmldir]) else htmldir='\' fi AM_CONDITIONAL(MAKE_HTML, [test "${enable_html_doc-no}" != no])])