Problem is from mingw, which doesn't recognize cygwin's symbolic links. Script 'configure' is looking for suitable compiler on PATH and first it finds is MinGw outside cygwin (in your case it is in 'd:\programming\mingw\bin\...'). Solution: Make sure, cygwin/bin is first in your environment variable PATH and rerun configure.