...
chmod +x libraries/integer-gmp2/gmp/ln
# Their cmd invocation only works on msys. On cygwin it starts
# a cmd interactive shell. The replacement works in both environments.
mv libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh.orig
sed 's#cmd //c echo "\$1"#cmd /c "echo $1"#' < libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh.orig > libraries/integer-gmp2/gmp/gmpbuild/ltmain.sh
cd libraries/integer-gmp2/gmp; (set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \
CC=clang NM=/usr/bin/nm AR=/usr/bin/ar ./configure \
--host=x86_64-apple-darwin --build=x86_64-apple-darwin
/bin/sh: SHELLOPTS: readonly variable
checking build system type... /bin/sh: SHELLOPTS: readonly variable
/bin/sh: SHELLOPTS: readonly variable
checking host system type... /bin/sh: SHELLOPTS: readonly variable
/bin/sh: SHELLOPTS: readonly variable
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/sh: SHELLOPTS: readonly variable
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether clang is gcc... yes
checking compiler clang -O2 -pedantic -fPIC -m64 ... no, gnupro alpha ev6 char spilling
checking whether clang is gcc... yes
checking compiler clang -m32 -O2 -pedantic -fPIC -fomit-frame-pointer ... no, gnupro alpha ev6 char spilling
checking compiler clang -O2 -pedantic -fPIC -fomit-frame-pointer ... no, gnupro alpha ev6 char spilling
configure: error: could not find a working compiler, see config.log for details
make[1]: *** [libraries/integer-gmp2/gmp/gmp.h] Error 1