summaryrefslogtreecommitdiff
path: root/lib/pixman
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-06-12 19:33:25 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-06-12 19:33:25 +0000
commitd6b1fef8fff6d9c666c03f8d21076e21f245259c (patch)
tree4c9e3f6dcf091e097adafb8d7b979957f94870d1 /lib/pixman
parentd4585df428d79685f00a7f8007f2151433b9779c (diff)
regen with autoconf 2.62p0. Fixes xserver build on macppc.
Diffstat (limited to 'lib/pixman')
-rw-r--r--lib/pixman/config.h.in17
-rw-r--r--lib/pixman/configure24
2 files changed, 30 insertions, 11 deletions
diff --git a/lib/pixman/config.h.in b/lib/pixman/config.h.in
index da00edb65..01d2b4edf 100644
--- a/lib/pixman/config.h.in
+++ b/lib/pixman/config.h.in
@@ -1,5 +1,8 @@
/* config.h.in. Generated from configure.ac by autoheader. */
+/* Define if building universal (internal helper macro) */
+#undef AC_APPLE_UNIVERSAL_BUILD
+
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
@@ -76,11 +79,15 @@
#undef VERSION
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
- significant byte first (like Motorola and SPARC, unlike Intel and VAX). */
-#if defined __BIG_ENDIAN__
-# define WORDS_BIGENDIAN 1
-#elif ! defined __LITTLE_ENDIAN__
-# undef WORDS_BIGENDIAN
+ 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 `__inline__' or `__inline' if that's what the C compiler
diff --git a/lib/pixman/configure b/lib/pixman/configure
index ddc0ee92e..6ab477b48 100644
--- a/lib/pixman/configure
+++ b/lib/pixman/configure
@@ -20003,15 +20003,15 @@ if test "${ac_cv_c_bigendian+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_cv_c_bigendian=unknown
- # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
- cat >conftest.$ac_ext <<_ACEOF
+ # See if we're dealing with a universal compiler.
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
- neither is defined;
+#ifndef __APPLE_CC__
+ not a universal capable compiler
#endif
typedef int dummy;
@@ -20034,7 +20034,13 @@ $as_echo "$ac_try_echo") >&5
test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
} && test -s conftest.$ac_objext; then
- ac_cv_c_bigendian=universal
+
+ # Check for potential -arch flags. It is not universal unless
+ # there are some -arch flags. Note that *ppc* also matches
+ # ppc64. This check is also rather less than ideal.
+ case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
+ *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
+ esac
else
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
@@ -20382,7 +20388,12 @@ _ACEOF
no)
;; #(
universal)
- ;; #(
+
+cat >>confdefs.h <<\_ACEOF
+#define AC_APPLE_UNIVERSAL_BUILD 1
+_ACEOF
+
+ ;; #(
*)
{ { $as_echo "$as_me:$LINENO: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
@@ -21713,6 +21724,7 @@ $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
+
if test -z "${USE_MMX_TRUE}" && test -z "${USE_MMX_FALSE}"; then
{ { $as_echo "$as_me:$LINENO: error: conditional \"USE_MMX\" was never defined.
Usually this means the macro was only invoked conditionally." >&5