On Wed, Sep 06, 2000 at 02:32:18PM +0200, Guido Draheim wrote:
: will update the page some day). The basic idea is to create a binary
: from special C-source and "grep" the binary for some pattern. The C-source
[...]
: 
: AC_MSG_CHECKING(whether byte order LOOKS bigendian)
: [
: cat >conftest.c <<EOF
: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };

I don't think "short" is guaranteed to be two chars, so you should
probably do some sizeof tests and define your own integer type...
Anyways, it's a smart approach - I wonder if it really works globally?

  Lars J

Reply via email to