diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-10-29 10:19:14 -0500 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-10-29 12:52:02 -0500 |
commit | 7d94789c29ab707255ea0e4fec3d090e0179a411 (patch) | |
tree | 0d2a2a61435cd5024c4d2dca382e69eb14014eb7 /m4 | |
parent | df1a83d781ea227414a20b9f22529728f233d890 (diff) | |
download | groff-git-7d94789c29ab707255ea0e4fec3d090e0179a411.tar.gz |
m4/groff.m4: Improve shell code portability.
* m4/groff.m4 (GROFF_POPPLER): Improve shell code portability. Per the
GNU Autoconf manual, "The -a, -o, '(', and ')' operands are not
present in all implementations, and have been marked obsolete by Posix
2008. ...portable uses of test should never have more than four
arguments, and scripts should use shell constructs like '&&' and '||'
instead."
Continues commit 1e4d06f1dc, 24 May.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/groff.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4 index 27f954238..7bf76838c 100644 --- a/m4/groff.m4 +++ b/m4/groff.m4 @@ -1780,8 +1780,8 @@ AC_DEFUN([GROFF_POPPLER], [ AC_CHECK_PROG([PDFFONTS], [pdffonts], [found], [missing]) AC_CHECK_PROG([PDFIMAGES], [pdfimages], [found], [missing]) if test "$PDFINFO" = found \ - -a "$PDFFONTS" = found \ - -a "$PDFIMAGES" = found + && test "$PDFFONTS" = found \ + && test "$PDFIMAGES" = found then groff_have_pdftools=yes fi |