Commit cfd90e4e authored by Jeremy Huddleston Sequoia's avatar Jeremy Huddleston Sequoia Committed by Vladimir Vukicevic
Browse files

[mac] Correctly handle endianness in multi-architecture compiles on MacOS X

parent e7fe79aa
......@@ -61,8 +61,26 @@ AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL dnl required version (1.4) DON'T REMOVE!
AC_STDC_HEADERS
AC_C_INLINE
case $host_os in
darwin*) XORG="no" ;;
AH_VERBATIM([X_BYTE_ORDER],[
/* Deal with multiple architecture compiles on Mac OS X */
#ifdef __APPLE_CC__
#ifdef __BIG_ENDIAN__
#define WORDS_BIGENDIAN 1
#define FLOAT_WORDS_BIGENDIAN 1
#else
#undef WORDS_BIGENDIAN
#undef FLOAT_WORDS_BIGENDIAN
#endif
#endif
])
*)
AC_C_BIGENDIAN
AX_C_FLOAT_WORDS_BIGENDIAN
;;
esac
dnl ===========================================================================
dnl === Local macros
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment