xserver: Branch 'xorg-server-1.5-apple'

Jeremy Huddleston jeremyhu at kemper.freedesktop.org
Wed Jan 7 10:56:56 PST 2009


 configure.ac                       |   13 -------------
 include/dix-config-post-verbatim.h |   10 ++++++++++
 include/dix-config.h.in            |   15 ++-------------
 include/xorg-server.h.in           |   13 -------------
 4 files changed, 12 insertions(+), 39 deletions(-)

New commits:
commit 637050f1e1163552a2f12a2a941a160c6bb82f92
Author: Jeremy Huddleston <jeremyhu at freedesktop.org>
Date:   Wed Jan 7 10:54:25 2009 -0800

    XQuartz: Fat binary buildfixes
    
    Let Xarch.h set X_BYTE_ORDER for us.
    Determine _XSERVER64 at build time.
    (cherry picked from commit f54736c2b0b537c8322ecb2db8e9cee5eea68165)

diff --git a/configure.ac b/configure.ac
index 27c8aa2..6b88e1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1228,19 +1228,6 @@ AC_DEFINE([SVR4],1,[Define to 1 on systems derived from System V Release 4])
 AC_MSG_RESULT([yes])], AC_MSG_RESULT([no]))
 
 XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC"
-AC_DEFINE_UNQUOTED(_X_BYTE_ORDER,[$ENDIAN],[Endian order])
-AH_VERBATIM([X_BYTE_ORDER],[
-/* Deal with multiple architecture compiles on Mac OS X */
-#ifndef __APPLE_CC__
-#define X_BYTE_ORDER _X_BYTE_ORDER
-#else
-#ifdef __BIG_ENDIAN__
-#define X_BYTE_ORDER X_BIG_ENDIAN
-#else
-#define X_BYTE_ORDER X_LITTLE_ENDIAN
-#endif
-#endif
-])
 
 dnl ---------------------------------------------------------------------------
 dnl DDX section.
diff --git a/include/dix-config-post-verbatim.h b/include/dix-config-post-verbatim.h
new file mode 100644
index 0000000..4bbb9b0
--- /dev/null
+++ b/include/dix-config-post-verbatim.h
@@ -0,0 +1,10 @@
+/* Do not include this file directly.  It is included at the end of <dix-config.h> */
+
+/* Correctly set _XSERVER64 for OSX fat binaries */
+#ifdef __APPLE__
+#if defined(__LP64__) && !defined(_XSERVER64)
+#define _XSERVER64 1
+#elif !defined(__LP64__) && defined(_XSERVER64)
+#undef _XSERVER64
+#endif
+#endif
diff --git a/include/dix-config.h.in b/include/dix-config.h.in
index 08c7aca..2c219a7 100644
--- a/include/dix-config.h.in
+++ b/include/dix-config.h.in
@@ -451,19 +451,6 @@
 /* Vendor name */
 #undef XVENDORNAME
 
-/* Endian order */
-#undef _X_BYTE_ORDER
-/* Deal with multiple architecture compiles on Mac OS X */
-#ifndef __APPLE_CC__
-#define X_BYTE_ORDER _X_BYTE_ORDER
-#else
-#ifdef __BIG_ENDIAN__
-#define X_BYTE_ORDER X_BIG_ENDIAN
-#else
-#define X_BYTE_ORDER X_LITTLE_ENDIAN
-#endif
-#endif
-
 /* Enable GNU and other extensions to the C environment for GLIBC */
 #undef _GNU_SOURCE
 
@@ -530,4 +517,6 @@
 /* Need the strcasestr function. */
 #undef NEED_STRCASESTR
 
+#include <dix-config-post-verbatim.h>
+
 #endif /* _DIX_CONFIG_H_ */
diff --git a/include/xorg-server.h.in b/include/xorg-server.h.in
index 1d41b4c..4dd2f27 100644
--- a/include/xorg-server.h.in
+++ b/include/xorg-server.h.in
@@ -178,19 +178,6 @@
 /* Vendor name */
 #undef XVENDORNAME
 
-/* Endian order */
-#undef _X_BYTE_ORDER
-/* Deal with multiple architecture compiles on Mac OS X */
-#ifndef __APPLE_CC__
-#define X_BYTE_ORDER _X_BYTE_ORDER
-#else
-#ifdef __BIG_ENDIAN__
-#define X_BYTE_ORDER X_BIG_ENDIAN
-#else
-#define X_BYTE_ORDER X_LITTLE_ENDIAN
-#endif
-#endif
-
 /* BSD-compliant source */
 #undef _BSD_SOURCE
 


More information about the xorg-commit mailing list