Mailing List Archive

[PATCH] Low: md5: avoid a swap NOOP on little endian systems
# HG changeset patch
# User Pádraig Brady <P@draigBrady.com>
# Date 1316188791 -3600
# Node ID 424074028614b5862843269e0e54774a123d13d7
# Parent 177de02442d54d435eaf1d4a6ac9e1248845c05e
Low: md5: avoid a swap NOOP on little endian systems

diff -r 177de02442d5 -r 424074028614 configure.ac
--- a/configure.ac Wed Aug 17 18:00:09 2011 +0200
+++ b/configure.ac Fri Sep 16 16:59:51 2011 +0100
@@ -467,11 +467,7 @@
LIBS=$ac_save_LIBS

dnl check byte order
-AC_MSG_CHECKING(for byteorder)
-AC_TRY_RUN(`cat $srcdir/config/byteorder_test.c`,
-[AC_MSG_RESULT(little-endian); AC_DEFINE(CONFIG_LITTLE_ENDIAN, 1, [little-endian])],
-[AC_MSG_RESULT(big-endian); AC_DEFINE(CONFIG_BIG_ENDIAN, 1, [big-endian])],)
-
+AC_C_BIGENDIAN([AC_DEFINE(CONFIG_BIG_ENDIAN, 1, [big])], [AC_DEFINE(CONFIG_LITTLE_ENDIAN, 1, [little])])

dnl ===============================================
dnl Program Paths
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/