After much searching, I found the 'magic' preprocessor definitions to
determine compiler and CPU architecture. They are "__GNUC__",
"__i386__", and "__x86_64__". This should work under Linux, mingw, OSX,
etc; basically any platform with GCC and an MMX-capable CPU. I have
tested and verified that it works under Gentoo/x86_64 and Ubuntu7.04/i686.
The attached zip contains a 'transform.c' which is based on v1.7.1 and
includes the new smoothscale function with compile-time checks to
include the MMX routines for compilation and a run-time check via
SDL_cpuinfo. The modified 'config.py' is no longer needed.