If configure detects some tools in the existing path, the build process may fail.In my case, there's perl under c:\program files. make will fail while in bin/psql because "/c/program" is not found.
Regards,Andreas