glib r7149 - trunk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7149 - trunk
- Date: Wed, 2 Jul 2008 19:21:54 +0000 (UTC)
Author: matthiasc
Date: Wed Jul 2 19:21:53 2008
New Revision: 7149
URL: http://svn.gnome.org/viewvc/glib?rev=7149&view=rev
Log:
Better endianness fix
Modified:
trunk/ChangeLog
trunk/configure.in
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Wed Jul 2 19:21:53 2008
@@ -821,6 +821,20 @@
# check for bytesex stuff
AC_C_BIGENDIAN
+if test x$ac_cv_c_bigendian = xuniversal ; then
+AC_TRY_COMPILE([#include <endian.h>], [#if __BYTE_ORDER == __BIG_ENDIAN
+#else
+#error Not a big endian.
+#endif],
+ ac_cv_c_bigendian=yes
+ ,AC_TRY_COMPILE([#include <endian.h>], [#if __BYTE_ORDER == __LITTLE_ENDIAN
+#else
+#error Not a little endian.
+#endif],
+ ac_cv_c_bigendian=no
+ ,AC_MSG_WARN([Could not determine endianness.])))
+fi
+
# check for header files
AC_CHECK_HEADERS([dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]