[cairo-commit] configure.in
Vladimir Vukicevic
vladimir at kemper.freedesktop.org
Thu Mar 13 17:50:43 PDT 2008
configure.in | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
New commits:
commit 761b4ce8dd40b8e5536a19018656c2440a61e71a
Author: Jeremy Huddleston <jeremyhu at apple.com>
Date: Thu Mar 13 17:45:25 2008 -0700
[mac] Correctly handle endianness in multi-architecture compiles on MacOS X
diff --git a/configure.in b/configure.in
index 4f19830..a47c193 100644
--- a/configure.in
+++ b/configure.in
@@ -65,8 +65,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
More information about the cairo-commit
mailing list