(AT_CHECK_ENV): Prefer && to tests's -a option, as per "Limitations of

Builtins".
This commit is contained in:
Paul Eggert 2002-06-27 07:48:53 +00:00
parent b3a4ebb4a0
commit 226b9fa524

View File

@ -201,11 +201,11 @@ m4_define([AT_CHECK_CONFIGURE],
# me tests might exit prematurely when they find a problem, in
# which case `env-after' is probably missing. Don't check it then.
m4_define([AT_CHECK_ENV],
[if test -f state-env.before -a -f state-env.after; then
[if test -f state-env.before && test -f state-env.after; then
mv -f state-env.before expout
AT_CHECK([cat state-env.after], 0, expout)
fi
if test -f state-ls.before -a -f state-ls.after; then
if test -f state-ls.before && test -f state-ls.after; then
mv -f state-ls.before expout
AT_CHECK([cat state-ls.after], 0, expout)
fi