python emconfigure ./configure gives this result: %1 is not a valid windows executable and cygwin: emconfigure ./configure %1 is not a valid windows executable but if you do it this way in cygwin: emconfigure C:\\cygwin\\bin\\mintty.exe -h always ./configure it pops up a new cygwin window that launches ./configure and works correctly