diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2023-12-11 20:46:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 20:46:54 +0100 |
commit | c2db51eeb33543930109444d82def8bb36229802 (patch) | |
tree | 21c63278c812b309f1f5ceee72a1e033ea57a2a0 /configure.ac | |
parent | 507eb8283c45bc9241020f14febabe0ada6c5ec6 (diff) |
shtest+configure: remove uses of non-portable/non-standard commands
Replace deprecated test(1) parentheses and -a logical operator with two
tests command.
Replace deprecated tail -1 with tail -n1.
Replace non-standard egrep(1) command with grep -E ; this also
prevents obsolescence warnings on GNU systems.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 008f1ae9..118e0843 100644 --- a/configure.ac +++ b/configure.ac @@ -48,7 +48,7 @@ AC_CHECK_FUNCS(memmem) AC_CHECK_HEADER("sys/cygwin.h", [have_cygwin=1;]) AC_CHECK_HEADER("shlwapi.h",[have_shlwapi=1;]) -AM_CONDITIONAL([WIN32], [test \( "x$have_shlwapi" = x1 \) -a ! \( "x$have_cygwin" = x1 \)]) +AM_CONDITIONAL([WIN32], [test "x$have_shlwapi" = x1 && test ! "x$have_cygwin" = x1]) dnl Running tests with Valgrind is slow. It is faster to iterate on dnl code without Valgrind until tests pass, then enable Valgrind and @@ -275,7 +275,7 @@ AS_IF([test "x$with_oniguruma" != xno], [ AC_MSG_NOTICE([Oniguruma was not found. Will use the packaged oniguruma.]) ]) ]) - AS_IF([test "x$build_oniguruma" = xyes -a -f "${srcdir}/modules/oniguruma/configure.ac" ], [ + AS_IF([test "x$build_oniguruma" = xyes && test -f "${srcdir}/modules/oniguruma/configure.ac" ], [ onig_CFLAGS="-I${srcdir}/modules/oniguruma/src" onig_LDFLAGS="-L${srcdir}/modules/oniguruma/src -Wl,-rpath,${libdir}" AC_CONFIG_SUBDIRS([modules/oniguruma]) |