glib r7210 - branches/glib-2-16
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7210 - branches/glib-2-16
- Date: Sun, 20 Jul 2008 02:36:21 +0000 (UTC)
Author: matthiasc
Date: Sun Jul 20 02:36:20 2008
New Revision: 7210
URL: http://svn.gnome.org/viewvc/glib?rev=7210&view=rev
Log:
Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
Modified:
branches/glib-2-16/ChangeLog
branches/glib-2-16/configure.in
Modified: branches/glib-2-16/configure.in
==============================================================================
--- branches/glib-2-16/configure.in (original)
+++ branches/glib-2-16/configure.in Sun Jul 20 02:36:20 2008
@@ -831,6 +831,19 @@
# 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]