Index: vtkConfigure.h.in =================================================================== RCS file: /cvsroot/VTK/VTK/vtkConfigure.h.in,v retrieving revision 1.53 diff -u -3 -r1.53 vtkConfigure.h.in --- vtkConfigure.h.in 9 Jun 2006 12:18:37 -0000 1.53 +++ vtkConfigure.h.in 2 Nov 2006 21:31:38 -0000 @@ -21,7 +21,20 @@ /* Platform Features */ /* Byte order. */ +/* All compilers that support Mac OS X, and (I believe) gcc on any platform, + define either __BIG_ENDIAN__ or __LITTLE_ENDIAN__ to match the endianness + of the architecture being compiled for. This is not necessarily the same + as the architecture of the machine doing the building. In order to better + support cross-compilation, and Universal Binaries on Mac OS X in + particular, we prefer those defines to decide the endianness. As a last + resort, we use the endianess of the building machine. */ +#if defined(__BIG_ENDIAN__) +# define VTK_WORDS_BIGENDIAN +#elif defined(__LITTLE_ENDIAN__) +# undef VTK_WORDS_BIGENDIAN +#else #cmakedefine VTK_WORDS_BIGENDIAN +#endif /* Threading system. */ #cmakedefine VTK_USE_PTHREADS