diff options
Diffstat (limited to 'crypto/heimdal/cf/krb-bigendian.m4')
-rw-r--r-- | crypto/heimdal/cf/krb-bigendian.m4 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/crypto/heimdal/cf/krb-bigendian.m4 b/crypto/heimdal/cf/krb-bigendian.m4 index 672cc25d3194..30e1a799c511 100644 --- a/crypto/heimdal/cf/krb-bigendian.m4 +++ b/crypto/heimdal/cf/krb-bigendian.m4 @@ -1,5 +1,5 @@ dnl -dnl $Id: krb-bigendian.m4,v 1.8.6.1 2004/04/01 07:27:33 joda Exp $ +dnl $Id: krb-bigendian.m4 15456 2005-06-16 21:04:43Z lha $ dnl dnl check if this computer is little or big-endian @@ -9,29 +9,29 @@ dnl it when cross-compiling AC_DEFUN([KRB_C_BIGENDIAN], [ AC_ARG_ENABLE(bigendian, - AC_HELP_STRING([--enable-bigendian],[the target is big endian]), + AS_HELP_STRING([--enable-bigendian],[the target is big endian]), krb_cv_c_bigendian=yes) AC_ARG_ENABLE(littleendian, - AC_HELP_STRING([--enable-littleendian],[the target is little endian]), + AS_HELP_STRING([--enable-littleendian],[the target is little endian]), krb_cv_c_bigendian=no) -AC_CACHE_CHECK(whether byte order is known at compile time, +AC_CACHE_CHECK([whether byte order is known at compile time], krb_cv_c_bigendian_compile, -[AC_TRY_COMPILE([ +[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include <sys/types.h> -#include <sys/param.h>],[ +#include <sys/param.h> #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN bogus endian macros -#endif], krb_cv_c_bigendian_compile=yes, krb_cv_c_bigendian_compile=no)]) +#endif]])],[krb_cv_c_bigendian_compile=yes],[krb_cv_c_bigendian_compile=no])]) AC_CACHE_CHECK(whether byte ordering is bigendian, krb_cv_c_bigendian,[ if test "$krb_cv_c_bigendian_compile" = "yes"; then - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include <sys/types.h> -#include <sys/param.h>],[ +#include <sys/param.h> #if BYTE_ORDER != BIG_ENDIAN not big endian -#endif], krb_cv_c_bigendian=yes, krb_cv_c_bigendian=no) +#endif]])],[krb_cv_c_bigendian=yes],[krb_cv_c_bigendian=no]) else - AC_TRY_RUN([main () { + AC_RUN_IFELSE([AC_LANG_SOURCE([[main (int argc, char **argv) { /* Are we little or big endian? From Harbison&Steele. */ union { @@ -40,8 +40,8 @@ AC_CACHE_CHECK(whether byte ordering is bigendian, krb_cv_c_bigendian,[ } u; u.l = 1; exit (u.c[sizeof (long) - 1] == 1); - }], krb_cv_c_bigendian=no, krb_cv_c_bigendian=yes, - AC_MSG_ERROR([specify either --enable-bigendian or --enable-littleendian])) + }]])],[krb_cv_c_bigendian=no],[krb_cv_c_bigendian=yes], + [AC_MSG_ERROR([specify either --enable-bigendian or --enable-littleendian])]) fi ]) if test "$krb_cv_c_bigendian" = "yes"; then |