From: Martti Rannanjärvi Date: Fri, 27 Oct 2017 08:02:25 +0000 (+0300) Subject: m4: Use AC_C_BIGENDIAN instead of custom m4 X-Git-Tag: 2.3.0.rc1~720 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3504130f7726dcf9562e9ad9047348eaae278e2;p=thirdparty%2Fdovecot%2Fcore.git m4: Use AC_C_BIGENDIAN instead of custom m4 --- diff --git a/configure.ac b/configure.ac index 024df601c2..50050cee1c 100644 --- a/configure.ac +++ b/configure.ac @@ -592,7 +592,7 @@ AC_SUBST(DICT_LIBS) AC_SUBST(CDB_LIBS) AC_SUBST(dict_drivers) -DOVECOT_ENDIAN +AC_C_BIGENDIAN DOVECOT_IPV6 diff --git a/m4/endian.m4 b/m4/endian.m4 deleted file mode 100644 index 9518a116eb..0000000000 --- a/m4/endian.m4 +++ /dev/null @@ -1,25 +0,0 @@ -dnl ** -dnl ** Endianness -dnl ** - -dnl At least Apple's gcc supports __BIG_ENDIAN__ and __LITTLE_ENDIAN__ -dnl defines. Use them if possible to allow cross-compiling. -AC_DEFUN([DOVECOT_ENDIAN], [ - AC_CACHE_CHECK([if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined],i_cv_have___big_endian__,[ - AC_TRY_COMPILE([ - #if !(__BIG_ENDIAN__ || __LITTLE_ENDIAN__) - #error nope - #endif - ], [ - ], [ - i_cv_have___big_endian__=yes - ], [ - i_cv_have___big_endian__=no - ]) - ]) - if test $i_cv_have___big_endian__ = yes; then - AC_DEFINE(WORDS_BIGENDIAN, __BIG_ENDIAN__, [Define if your CPU is big endian]) - else - AC_C_BIGENDIAN - fi -])