Pipe some more unwanted output to /dev/null. If gcc is available but cc isn't, symlink gcc into tools-prefix as cc (libgpg-error requires a compiler named cc) Extended the check for bc to make sure the installed bc doesn't return syntax error for 'hz=1000'. Check if a math.h header is available on the buildhost. In binutils (toolchain) comment out macros that include math.h if it isn't available, and get rid of -Werror for gprof. In gcc (toolchain), write a tiny math.h with only the functions we need if the platform doesn't provide one. Added more exceptions for glibc's iconvdata libs that won't build for Solaris. Added __sun__ as a macro to check for in glibc for platforms that already have the quad_t type (among others) For Solaris, comment out anything that has to do with bswap in Linux's relocs tool since Solaris seems to mess up byteorder macros. Drop STRICT_WARN in gcc since it brings in unimportant flags which cause errors if they happen to not be supported. Comment out the math.h include in nettle if math.h is not available. Cycle the tool checks until they all succeed. Started moving some of the portability hacks into functions more out of the way for a clearer and more educational script for the rest.