/* include/libratbox_config.h.in. Generated from configure.ac by autoheader. */
+/* Define if building universal (internal helper macro) */
+#undef AC_APPLE_UNIVERSAL_BUILD
+
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
systems. This function is required for `alloca.c' support on those systems.
*/
/* Define this to disable debugging support. */
#undef NDEBUG
-/* Define if your system needs crypt. */
-#undef NEED_CRYPT
-
/* Define to 1 if you wish to disable the block allocator. */
#undef NOBALLOC
/* This is a Windows system */
#undef WINDOWS
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+# define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+# undef WORDS_BIGENDIAN
+# endif
+#endif
+
/* Define to 1 if on MINIX. */
#undef _MINIX
static void MD5Update (MD5_CTX *, const void *, unsigned int);
static void MD5Final (unsigned char [16], MD5_CTX *);
-#if (BYTE_ORDER == LITTLE_ENDIAN)
+#ifndef WORDS_BIGENDIAN
#define Encode memcpy
#define Decode memcpy
#else
char buffer[128]; /* NB: always correctly aligned for uint32_t. */
};
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#ifndef WORDS_BIGENDIAN
# define SHA256_SWAP(n) \
(((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
#else
};
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#ifndef WORDS_BIGENDIAN
# define SHA512_SWAP(n) \
(((n) << 56) \
| (((n) & 0xff00) << 40) \