Hi,

At Tue, 6 Dec 2005 04:21:37 +0900,
Daniel Berger wrote in [ruby-talk:168948]:
> # extconf.rb
> if [1].pack("I") == [1].pack("N")
>     $CFLAGS += " -DBIG_ENDIAN" # note the leading space
> end

It tells the endian of the running platform, but not of the
target platform.  They can differ when cross-compiling.

Since config.h defines WORDS_BIGENDIAN for big-endian
platforms, you don't have to test it in extconf.rb.

-- 
Nobu Nakada