summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-04-17 16:42:15 +0000
committerwlemb <wlemb>2003-04-17 16:42:15 +0000
commit2250faa6dbcc2143b10ae0729c4fabff0093cab7 (patch)
tree302a6f5768e3737b27a7b26788617f1f5077b67a /aclocal.m4
parent8874e67498a2dca711dee19cd9bdf129888b30f9 (diff)
downloadgroff-2250faa6dbcc2143b10ae0729c4fabff0093cab7.tar.gz
* aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
if --quiet is used for the configure script. * configure: Regenerated.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m464
1 files changed, 53 insertions, 11 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index ef8cd404..4b1b68ec 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -63,23 +63,65 @@ dnl
AC_DEFUN(GROFF_HTML_PROGRAMS,
[make_html=html
make_install_html=install_html
+missing=
AC_CHECK_PROG(pnmcut, pnmcut, found, missing)
+if test $pnmcut = missing; then
+ missing="$missing pnmcut"
+fi
AC_CHECK_PROG(pnmcrop, pnmcrop, found, missing)
+if test $pnmcrop = missing; then
+ missing="$missing pnmcrop"
+fi
AC_CHECK_PROG(pnmtopng, pnmtopng, found, missing)
+if test $pnmtopng = missing; then
+ missing="$missing pnmtopng"
+fi
AC_CHECK_PROG(gs, gs gsos2, found, missing)
+if test $gs = missing; then
+ missing="$missing gs"
+fi
AC_CHECK_PROG(psselect, psselect, found, missing)
+if test $psselect = missing; then
+ missing="$missing psselect"
+fi
AC_CHECK_PROG(pnmtops, pnmtops, found, missing)
-case "x$pnmcut$pnmcrop$pnmtopng$gs$psselect$pnmtops$pstopnm" in
-*missing*)
+if test $pnmtops = missing; then
+ missing="$missing pnmtops"
+fi
+if test -n "$missing"; then
+ cnt=0
+ for i in $missing
+ do
+ cnt=`expr $cnt + 1`
+ eval "prog$cnt=$i"
+ done
+ plural="s"
+ case $cnt in
+ 1)
+ plural=""
+ progs="\`$prog1'" ;;
+ 2)
+ progs="\`$prog1' and \`$prog2'" ;;
+ 3)
+ progs="\`$prog1', \`$prog2', and \`$prog3'" ;;
+ 4)
+ progs="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
+ 5)
+ progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
+ 6)
+ progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
+ esac
make_html=
make_install_html=
AC_MSG_WARN([
- 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.
-]) ;;
-esac
+ The program$plural
+ $progs
+ can't be found in the path, thus the HTML backend of groff (grohtml)
+ won't work properly. Consequently, no documentation in HTML format
+ is built and installed.
+])
+fi
AC_SUBST(make_html)
AC_SUBST(make_install_html)])dnl
dnl
@@ -88,11 +130,11 @@ dnl
AC_DEFUN(GROFF_PNMTOPS_NOSETPAGE,
[AC_MSG_CHECKING([whether pnmtops can handle the -nosetpage option])
if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
- AC_MSG_RESULT(yes)
- pnmtops_nosetpage="pnmtops -nosetpage"
+ AC_MSG_RESULT(yes)
+ pnmtops_nosetpage="pnmtops -nosetpage"
else
- AC_MSG_RESULT(no)
- pnmtops_nosetpage="pnmtops"
+ AC_MSG_RESULT(no)
+ pnmtops_nosetpage="pnmtops"
fi
AC_SUBST(pnmtops_nosetpage)
])dnl