Index: ChangeLog from Alexandre Duret-Lutz * aclang.m4 (AC_C_BIGENDIAN): Move the AC_TRY_RUN call to the ACTION-IF-NOT-FOUND argument of AC_TRY_COMPILE, this suppress the need to initialize ac_cv_c_bigendian. Index: aclang.m4 =================================================================== RCS file: /home/adl/CVSROOT/ac/aclang.m4,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 aclang.m4 --- aclang.m4 2000/10/06 18:41:05 1.1.1.1 +++ aclang.m4 2000/10/06 18:42:11 @@ -1141,8 +1141,7 @@ # -------------- AC_DEFUN([AC_C_BIGENDIAN], [AC_CACHE_CHECK(whether byte ordering is bigendian, ac_cv_c_bigendian, -[ac_cv_c_bigendian=unknown -# See if sys/param.h defines the BYTE_ORDER macro. +[# See if sys/param.h defines the BYTE_ORDER macro. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include #include ], @@ -1156,9 +1155,8 @@ ], [#if BYTE_ORDER != BIG_ENDIAN not big endian #endif -])], [ac_cv_c_bigendian=yes], - [ac_cv_c_bigendian=no])]) -if test $ac_cv_c_bigendian = unknown; then +])], [ac_cv_c_bigendian=yes], [ac_cv_c_bigendian=no])], +[# It does not; compile and run a test. AC_TRY_RUN( [int main () @@ -1171,8 +1169,8 @@ } u; u.l = 1; exit (u.c[sizeof (long) - 1] == 1); -}], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes) -fi]) +}], [ac_cv_c_bigendian=no], [ac_cv_c_bigendian=yes]) +])]) if test $ac_cv_c_bigendian = yes; then AC_DEFINE(WORDS_BIGENDIAN, 1, [Define if your processor stores words with the most significant