summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
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