X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=configure.in;h=ab4ad9ced78a73437ed7f92ec031b4aea86efae9;hb=6650f84c0990f8cd61814f9a43aea5bc870e57ff;hp=2d0de78c81126cc7418429374b63ab1c6f0634b7;hpb=24ecaf67a8dcf80de05f86dd8ee7b11dad0ead69;p=apps%2Fmadmutt.git diff --git a/configure.in b/configure.in index 2d0de78..ab4ad9c 100644 --- a/configure.in +++ b/configure.in @@ -1124,6 +1124,29 @@ if test x$use_libesmtp = xyes; then fi dnl -- end libesmtp -- +dnl -- sgml tools -- +AC_MSG_CHECKING([for SGML Tools style]) +SGML2TXT_CMD="true" +SGML2PS_CMD="true" +SGML2HTML_CMD="true" +case "`uname -s`" in + FreeBSD) + SGML2TXT_CMD="sgmlfmt -f ascii manual.sgml && uniq < manual.ascii | expand > manual.txt && rm -rf manual.ascii || true" + SGML2PS_CMD="sgmlfmt -f ps manual.sgml || true" + SGML2HTML_CMD="sgmlfmt -f html manual.sgml || true" + AC_MSG_RESULT(FreeBSD) + ;; + *) + SGML2TXT_CMD="if linuxdoc -B txt --pass='-P -c' manual ; then uniq < manual.txt | expand > _manual.txt ; rm manual.txt ; col -b < _manual.txt > manual.txt ; rm -rf _manual.txt ; fi || true" + SGML2PS_CMD="sgml2latex --output=ps manual || true" + SGML2HTML_CMD="sgml2html manual || true" + AC_MSG_RESULT(Linux (default)) + ;; +esac +AC_SUBST(SGML2TXT_CMD) +AC_SUBST(SGML2PS_CMD) +AC_SUBST(SGML2HTML_CMD) + AC_OUTPUT(Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh