[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3-bigendian-tests.patch

From: Alexandre Duret-Lutz
Subject: Re: 3-bigendian-tests.patch
Date: 13 Aug 2001 20:42:05 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>> "Akim" == Akim Demaille <address@hidden> writes:

 Akim> I believe Alexandre meant to keep the CC.

Yes, I did, thank.

I have found an small issue with the test.

Basically, AC_C_BIGENDIAN works that way

  - check endianess using system headers
  - if it did not work, resort to
       - running a test (non cross-compile case)
       - grep'ing a test (cross-compile case)

So setting cross_compile=yes only affect the second part of this
check.  However, on my machine (Linux) the headers check are
always enough, therefore the run/grep test are never done.  

It means that, on my host, the cross_compile=yes is meaningless:
the grep'ing part is never exercised.  I do have to set
something like --host=i586-mingw32mscv (or any other target
installed) to exert the code.

I'm sure there are hosts for which the headers check is not
enough, and where the testsuite will exercise the run/grep tests.

It's not clear to me what can be done to really wlays exert that code.
Splitting AC_C_BIGENDIAN into shorter functions, callable
Alexandre Duret-Lutz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]