From 82f13dcb410d2f13b9b1f7b4d97925bd5bdcd5ef Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Mon, 9 Jul 2012 17:59:13 -0700 Subject: [PATCH] Update to handle newer endian autoconf components. --- configure.ac | 2 -- m4/bottom.m4 | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 13ecc579..97934a57 100644 --- a/configure.ac +++ b/configure.ac @@ -293,8 +293,6 @@ if test $ac_cv_c_endian = little; then fi ]) -AC_C_ENDIAN - AX_CHECK_SOCK_CLOEXEC([AC_DEFINE([HAVE_SOCK_CLOEXEC], [1], [Check for SOCK_CLOEXEC.])], [AC_DEFINE([HAVE_SOCK_CLOEXEC], [0], [Check for SOCK_CLOEXEC.])]) diff --git a/m4/bottom.m4 b/m4/bottom.m4 index a772e059..6306aee1 100644 --- a/m4/bottom.m4 +++ b/m4/bottom.m4 @@ -30,6 +30,12 @@ typedef unsigned long int ulong; #define RPACKAGE "memcached" #define RVERSION "1.4.13" + +#ifdef WORDS_BIGENDIAN +# define ENDIAN_BIG 1 +#else +# define ENDIAN_LITTLE 1 +#endif ]) -- 2.30.2