Argh. Very sorry for the breakage, I'll get straight onto it. What versions of the mingw+msys tools are you using? Can you please send me a copy of the generated libtool script, and the output you get when re-running the failing libtool command manually after adding the "--debug" (non-modal) option?
This is the problem: removedotparts="s,/\(\./\)\{1\,\},/,g;s,/\.$,/," \, should be , (there is another occurrence). Also please single-quote the commands. Paolo