On 12/29/2011 12:26 AM, Stefano Lattarini wrote: > On 12/28/2011 08:27 PM, Bob Friesenhahn wrote: >> Sorry for top-posting. I don't want to lose any text of the original mail. >> >> I totally forgot that I had applied Ralf's patch to my 1.11.1 install. Now >> that I have updated GraphicsMagick to using Automake 1.11.2, the patch is no >> longer present and so 'make check' on MinGW/MSYS leads to this: >> >> /usr/bin/csmake check-TESTS check-local >> csmake[2]: Entering directory `/home/bfriesen/mingw/GM-16-static' >> csmake[3]: Entering directory `/home/bfriesen/mingw/GM-16-static' >> csmake[3]: execvp: /bin/sh: Invalid argument >> csmake[3]: *** [tests/constitute_char_bgr.log] Error 127 >> csmake[3]: Leaving directory `/home/bfriesen/mingw/GM-16-static' >> csmake[2]: *** [check-TESTS] Error 2 >> csmake[2]: Leaving directory `/home/bfriesen/mingw/GM-16-static' >> csmake[1]: *** [check-am] Error 2 >> csmake[1]: Leaving directory `/home/bfriesen/mingw/GM-16-static' >> csmake: *** [check] Error 2 >> >> Today I lost more hair because I had totally forgotten about this issue and >> the problem was first noticed after making some changes to configure.ac. >> >> Hopefully this problem can be resolved before Automake 1.12 is released. >> > Let's start by exposing the problem once and for all. > > [SNIP] > OK, I hope I've finally managed to partially fix this incredibly annoying bug -- I say "partially" because the fix is sadly *for GNU make*. Even more sadly, the solution is pretty hacky and somewhat brittle. Still, it should cause no regression with the non-GNU makes (as they will continue to use the old implementation), and I have verified that it works with at least all the GNU make versions >= 3.78. I'm posting the patches here for early feedback (note that the second one still needs a commit message and possibly some polishing), with the hope that someone can suggest a less hacky solution. Regards, Stefano