xserver: Branch 'master'

Eric Anholt anholt at kemper.freedesktop.org
Fri Jan 30 16:41:35 PST 2009


 configure.ac                        |    4 +---
 include/Makefile.am                 |    2 ++
 include/dix-config-apple-verbatim.h |    8 ++++++++
 include/dix-config.h.in             |    7 +------
 4 files changed, 12 insertions(+), 9 deletions(-)

New commits:
commit dd098501d800571e71d06ffc936635a6c9d44e05
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jan 30 16:17:58 2009 -0800

    Move the apple fat binary hacks back to a header file, and make it apple-only.

diff --git a/configure.ac b/configure.ac
index 71d37df..e27140b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,9 +45,7 @@ dnl drivers.
 AC_CONFIG_HEADERS(include/xorg-server.h)
 dnl dix-config.h covers most of the DIX (i.e. everything but the DDX, not just
 dnl dix/).
-AC_CONFIG_HEADERS(include/dix-config.h, [mv include/dix-config.h include/dix-config.h.tmp
-                                         sed 's|/undef|#undef|' < include/dix-config.h.tmp > include/dix-config.h
-                                         rm include/dix-config.h.tmp])
+AC_CONFIG_HEADERS(include/dix-config.h)
 dnl xorg-config.h covers the Xorg DDX.
 AC_CONFIG_HEADERS(include/xorg-config.h)
 dnl xkb-config.h covers XKB for the Xorg and Xnest DDXs.
diff --git a/include/Makefile.am b/include/Makefile.am
index f6b3670..cb0b293 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -62,3 +62,5 @@ endif
 
 AM_CFLAGS = $(DIX_CFLAGS)
 
+EXTRA_DIST = 	\
+	dix-config-apple-verbatim.h
diff --git a/include/dix-config-apple-verbatim.h b/include/dix-config-apple-verbatim.h
new file mode 100644
index 0000000..f429d20
--- /dev/null
+++ b/include/dix-config-apple-verbatim.h
@@ -0,0 +1,8 @@
+/* Do not include this file directly.  It is included at the end of <dix-config.h> */
+
+/* Correctly set _XSERVER64 for OSX fat binaries */
+#if defined(__LP64__) && !defined(_XSERVER64)
+#define _XSERVER64 1
+#elif !defined(__LP64__) && defined(_XSERVER64)
+#undef _XSERVER64
+#endif
diff --git a/include/dix-config.h.in b/include/dix-config.h.in
index 1af477d..681fb05 100644
--- a/include/dix-config.h.in
+++ b/include/dix-config.h.in
@@ -422,12 +422,7 @@
 
 /* Correctly set _XSERVER64 for OSX fat binaries */
 #ifdef __APPLE__
-#if defined(__LP64__) && !defined(_XSERVER64)
-#define _XSERVER64 1
-#elif !defined(__LP64__) && defined(_XSERVER64)
-/* configure mangles #undef, so we fix this in AC_CONFIG_HEADERS post process */
-/undef _XSERVER64
-#endif
+#include "dix-config-apple-verbatim.h"
 #endif
 
 #endif /* _DIX_CONFIG_H_ */


More information about the xorg-commit mailing list