1 diff --git a/configure.ac b/configure.ac
2 index ed27ceda64f7..97e1d35594ca 100644
5 @@ -35,11 +35,11 @@ AC_PREPROC_IFELSE(
9 -if test x"$endian" != "xbig" -a x"$endian" != "xlittle"; then
10 +if test x"$endian" != "xbig" && test x"$endian" != "xlittle"; then
11 AC_MSG_ERROR([Can't determine endianness; is endian.h present?])
14 -if test "$little_endian" == 1; then
15 +if test "$little_endian" = 1; then
16 ENDIAN="-DHAVE_LITTLE_ENDIAN"
18 ENDIAN="-DHAVE_BIG_ENDIAN"