diff options
author | nectar <nectar@FreeBSD.org> | 2002-08-30 21:23:27 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-08-30 21:23:27 +0000 |
commit | a77dba08ca7d8ad2f2dcd653974ac66df78cfa49 (patch) | |
tree | 6015f89700252fb05eb8fa267c46dba41913e9d8 /crypto/heimdal/cf/krb-bigendian.m4 | |
parent | 69a91bec14ec3ad49d1c8a82c40a796755f9e4a3 (diff) | |
download | FreeBSD-src-a77dba08ca7d8ad2f2dcd653974ac66df78cfa49.zip FreeBSD-src-a77dba08ca7d8ad2f2dcd653974ac66df78cfa49.tar.gz |
Import of Heimdal Kerberos from KTH repository circa 2002/08/29.
Diffstat (limited to 'crypto/heimdal/cf/krb-bigendian.m4')
-rw-r--r-- | crypto/heimdal/cf/krb-bigendian.m4 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/crypto/heimdal/cf/krb-bigendian.m4 b/crypto/heimdal/cf/krb-bigendian.m4 index ab16931..4aa73d2 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.6 2000/08/19 15:37:00 assar Exp $ +dnl $Id: krb-bigendian.m4,v 1.8 2002/08/28 19:20:19 joda Exp $ dnl dnl check if this computer is little or big-endian @@ -9,10 +9,10 @@ dnl it when cross-compiling AC_DEFUN(KRB_C_BIGENDIAN, [ AC_ARG_ENABLE(bigendian, -[ --enable-bigendian the target is big endian], + AC_HELP_STRING([--enable-bigendian],[the target is big endian]), krb_cv_c_bigendian=yes) AC_ARG_ENABLE(littleendian, -[ --enable-littleendian the target is little endian], + AC_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, krb_cv_c_bigendian_compile, @@ -50,4 +50,13 @@ fi if test "$krb_cv_c_bigendian_compile" = "yes"; then AC_DEFINE(ENDIANESS_IN_SYS_PARAM_H, 1, [define if sys/param.h defines the endiness])dnl fi +AH_BOTTOM([ +#if ENDIANESS_IN_SYS_PARAM_H +# include <sys/types.h> +# include <sys/param.h> +# if BYTE_ORDER == BIG_ENDIAN +# define WORDS_BIGENDIAN 1 +# endif +#endif +]) ]) |