From: Paul Eggert Date: Thu, 27 Jun 2002 07:50:42 +0000 (+0000) Subject: (AC_C_BIGENDIAN): Prefer && to test's -a option, as per "Limitations X-Git-Tag: AUTOCONF-2.53b~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9340473f809ee0a1d0dcf57bb8a70dd80725165;p=thirdparty%2Fautoconf.git (AC_C_BIGENDIAN): Prefer && to test's -a option, as per "Limitations of Builtins". --- diff --git a/tests/semantics.at b/tests/semantics.at index d1a856c4f..1d8616664 100644 --- a/tests/semantics.at +++ b/tests/semantics.at @@ -353,11 +353,11 @@ _AT_CHECK_AC_MACRO( [cross_compiling=yes AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown]) ac_prevendian=`cat at-endian` - # Chech we have found the same result as in the previous run + # Check that we have found the same result as in the previous run # or unknown (because the cross-compiling check is allowed to fail; # although it might be interesting to suppress this comparison, just # to know on which system it fails if it ever does). - if test $ac_endian != $ac_prevendian -a $ac_endian != unknown; then + if test $ac_endian != $ac_prevendian && test $ac_endian != unknown; then AC_MSG_ERROR([unexpected endianness: first run found '$ac_prevendian' but second run found '$ac_endian']) fi ])