summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-02-25 08:54:27 +0000
committerwlemb <wlemb>2003-02-25 08:54:27 +0000
commit917c3c7c1ccaa879f7c649b74e9654c535e3a272 (patch)
treee41ce4a93eef566710cb2ef1f5c5ccc681b8d1b9 /aclocal.m4
parent13c738d1f14c49524dfefce85c51c09d2b8591ea (diff)
downloadgroff-917c3c7c1ccaa879f7c649b74e9654c535e3a272.tar.gz
* aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
(GROFF_PNMTOPS_NOSETPAGE): New macro. * configure.ac: Use it. * configure: Regenerated. * Makefile.in: Updated. * tmac/Makefile.sub (NORMALFILES): Remove www.tmac. (CLEANADD): Add www.tmac-sed. (pnmtops_nosetpage): Define default. (install_data): Handle www.tmac-sed and substitute @PNMTOPS_NOSETPAGE@. (stamp-sed): Add www.tmac. * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken. It now breaks URLs at suitable places. (www:substring_ok): New register set by... (www:@test_substring): New macro. (www:error): New alias to www-error. (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted): New macros. (URL): Use www:url_breaks. (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@. (CDS, CDE): New macros. * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid buffer overflow.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m419
1 files changed, 17 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index c3e6b643..a832a969 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -68,13 +68,14 @@ 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
+AC_CHECK_PROG(pnmtops, pnmtops, found, missing)
+case "x$pnmcut$pnmcrop$pnmtopng$gs$psselect$pnmtops$pstopnm" 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,
+ Since one or more of the above six 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.
]) ;;
@@ -82,6 +83,20 @@ esac
AC_SUBST(make_html)
AC_SUBST(make_install_html)])dnl
dnl
+dnl check to see whether pnmtops can handle the -nosetpage option
+dnl
+AC_DEFUN(GROFF_PNMTOPS_NOSETPAGE,
+[AC_MSG_CHECKING([whether pnmtops can handle the -nosetpage option])
+if echo P1 2 2 0 1 1 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
+ AC_MSG_RESULT(yes)
+ pnmtops_nosetpage="pnmtops -nosetpage"
+else
+ AC_MSG_RESULT(no)
+ pnmtops_nosetpage="pnmtops"
+fi
+AC_SUBST(pnmtops_nosetpage)
+])dnl
+dnl
dnl
dnl GROFF_CSH_HACK(if hack present, if not present)
dnl