bug-autoconf
[Top][All Lists]
Advanced

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

Re: "universal" returned by AC_C_BIGENDIAN when compiling for a single a


From: Paolo Bonzini
Subject: Re: "universal" returned by AC_C_BIGENDIAN when compiling for a single architecture
Date: Mon, 07 Jun 2010 09:37:36 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4

On 06/06/2010 07:48 PM, Maarten ter Huurne wrote:
Hi,

SDL 1.2.14 ships with a "configure" script generated by autoconf 2.63. When
I compile SDL with "-arch ppc" in the CFLAGS, ac_cv_c_bigendian will be set
to "universal". SDL can only handle "yes" and "no" and will treat
"universal" as little endian. This then leads to pixels having the wrong
color because the byte order is reversed.

I can imagine it's a good idea to return "universal" if one GCC invocation
is used to compile for two architectures. But when compiling for a single
architecture (one "-arch" argument) it would make more sense to use the
usual endianess detection. SDL 1.2.13 ships with a "configure" script
generated by autoconf 2.61, which does not check for "-arch" arguments and
detects the PPC endianess correctly.

This was fixed in 2.64.

Paolo



reply via email to

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