autoconf macros to verify endianess

From: Vogaar (bla_at_grum.xm)
Date: 09/30/03


Date: Tue, 30 Sep 2003 11:30:40 +0100

I'm writing a configure script for an application using autoconf macros.
One of the tests that i must do is a test to verify the endianess of the
system (Big or little endian).

I know that autoconf has a macro called AC_C_BIGENDIAN that should see
this, but until know it always give me an error saying that it couldn't
gess the endianess of the system. I've already tryied a couple of
different flavors and i get always the same error.

-->checking whether byte ordering is bigendian... configure: error: ***
unable to determine endianness

Can someone tell me some way of verifying this with a bigger efficiency?

Thanks in advance

Nuno



Relevant Pages

  • Re: autoconf macros to verify endianess
    ... > One of the tests that i must do is a test to verify the endianess of the ... but until know it always give me an error saying that it couldn't ... > gess the endianess of the system. ... Use a small helper program in C from AC_TRY_RUN? ...
    (comp.os.linux.misc)
  • Re: Collisions for Hash Functions MD4, MD5, HAVAL-128 and RIPEMD
    ... Sebastian Gottschalk schrieb: ... Those Chinese scientists didn't check for the ... endianess. ... Now I can verify the results. ...
    (sci.crypt)