[ http://issues.apache.org/jira/browse/XERCESC-1502?page=comments#action_12329595 ]
Eric Albert commented on XERCESC-1502: -------------------------------------- I agree, but there's one catch -- Mac OS X allows you to build for multiple architectures at once by invoking gcc with "-arch i386 -arch ppc". configure scripts don't work well with that because autoconf doesn't support the concept of targeting multiple configurations simultaneously. As a result, checking for __BIG_ENDIAN__ or __LITTLE_ENDIAN__ (as I've done here) works better in practice than moving this into a configure script. Doing so works better than AC_C_BIGENDIAN in practice for all gcc-based platforms. In fact, given the state of, say, the NetBSD platform defs I'd suggest this check be added to other platform definitions. However, I'm personally only interested in Mac OS X on Intel for now, since a few Mac developers have already hit this as part of their transition to Intel-based Macs. > xerces gets endianness wrong on Intel-based Macs > ------------------------------------------------ > > Key: XERCESC-1502 > URL: http://issues.apache.org/jira/browse/XERCESC-1502 > Project: Xerces-C++ > Type: Bug > Components: Miscellaneous > Versions: Nightly build (please specify the date) > Environment: Mac OS X on an Apple Developer Transition Kit > Reporter: Eric Albert > Attachments: diffs.tgz > > MacOSDefs.hpp currently says this: > // > --------------------------------------------------------------------------- > // MacOS runs in big endian mode. > // > --------------------------------------------------------------------------- > #define ENDIANMODE_BIG > That's wrong, or at least out of date -- Apple is shifting to Intel-based > Macs and will support both PowerPC and Intel systems moving forward. The > Intel-based Macs are of course little-endian. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
