]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: Use AC_C_BIGENDIAN instead of custom m4
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Fri, 27 Oct 2017 08:02:25 +0000 (11:02 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 30 Oct 2017 08:18:50 +0000 (10:18 +0200)
configure.ac
m4/endian.m4 [deleted file]

index 024df601c220fbb6a4ab2f93c983b39331c871c9..50050cee1c371e8440bd9cc452acbd491e495800 100644 (file)
@@ -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 (file)
index 9518a11..0000000
+++ /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
-])