2007.10.23 08:38 "[Tiff] universal build patch", by Kai-Uwe Behrmann

2007.10.23 20:44 "Re: [Tiff] universal build patch", by Bob Friesenhahn

I am sure that AC_C_BIGENDIAN macro can deduce the target byte order using some heuristics (that macro works in case of cross-compilation). So it can be adopted for OS X case too. The only problem for me is that I do not have a proper environment to develop and test such a macro. It shouldn't be too complicated. So my preference is to modify a test rather than libarary itself. I don't see any serious reason to replace the compile time switch.

The problem seems to be that the compiler is run just "once" with same options and header files to produce object code for completely different targets. Any executables that configure builds and runs in order to implement tests will be tested on the current host CPU/OS. That is why there is a problem. The problem is not limited to endianness, although that is the most obvious issue.

The #ifdef hack that Apple prescribes could be used to handle this specific case but it is based on GCC extensions so it will only work for this case. Maybe that is ok.

In a week or two I will have Leopard here to see what has changed.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/