summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2022-05-24 01:15:18 -0500
committerG. Branden Robinson <g.branden.robinson@gmail.com>2022-05-24 01:15:18 -0500
commit2b15ebba56ea66257ab1ee76406787cfca633d36 (patch)
treec580b21ab0da64cfb9cfc9e5e76ee55f440d9235 /m4
parentdd4cd6e06604610a02f6e39665da3f17f44386de (diff)
downloadgroff-git-2b15ebba56ea66257ab1ee76406787cfca633d36.tar.gz
m4/groff.m4: Migrate `AC_FOREACH` -> `m4_foreach`.
* m4/groff.m4 (GROFF_CHECK_GROHTML_PROGRAMS): Migrate from `AC_FOREACH` to `m4_foreach` to avoid obsolescence warning from GNU Autoconf 2.70 or later. Fixes <https://savannah.gnu.org/bugs/?61059>. Thanks to Bjarni Ingi Gislason for the report. Also make code style more readable.
Diffstat (limited to 'm4')
-rw-r--r--m4/groff.m415
1 files changed, 8 insertions, 7 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4
index d07157bf5..c42ca398e 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -155,13 +155,14 @@ AC_DEFUN([GROFF_CHECK_GROHTML_PROGRAMS], [
make_htmldoc=no
AC_REQUIRE([GROFF_GHOSTSCRIPT_PATH])
missing=
- AC_FOREACH([groff_prog],
- [pnmcrop pnmcut pnmtopng pnmtops psselect],
- [AC_CHECK_PROG(groff_prog, groff_prog, [found], [missing])
- if test $[]groff_prog = missing
- then
- missing="$missing 'groff_prog'"
- fi;])
+ m4_foreach([groff_prog],
+ [[pnmcrop], [pnmcut], [pnmtopng], [pnmtops], [psselect]], [
+ AC_CHECK_PROG(groff_prog, groff_prog, [found], [missing])
+ if test $[]groff_prog = missing
+ then
+ missing="$missing 'groff_prog'"
+ fi
+ ])
test "$GHOSTSCRIPT" = "missing" && missing="'gs' $missing"