[libdispatch-dev] autoconf HAVE macro conventions

Ronnie Misra rgmisra at apple.com
Fri Oct 30 14:57:14 PDT 2009


On Oct 30, 2009, at 1:15 PM, Paolo Bonzini wrote:

>> Mac OS X projects usually use the same set of source files for all of
>> the multiple machine architectures that the project is be built for.
>> This can cause problems when a configure-time check doesn't match the
>> target architecture. An example that has come up in the past is
>> configure-time detection of endianness. If configure was run on a
>> PowerPC machine, the generated config.h would indicate that the  
>> machine
>> was big-endian:
>
> AC_C_BIGENDIAN supports universal binaries.  You just have to run
>
> ./configure CC='gcc -arch i686 -arch ppc'
>
> (or anyway use the appropriate GCC flags).
>
> Are there any other cases?

What about the SIZEOF_LONG test? Does autoconf do the right thing for  
'-arch i386 -arch x86_64'? Also, what version of autoconf is required  
to get the support for AC_C_BIGENDIAN and universal binaries?

Ronnie



More information about the libdispatch-dev mailing list