Hello Bruno, all, I'm sure it was you who requested this feature, but I can't find the reference to this issue now. Anyway, here's a small patch series to let automake and aclocal consistenly prefix warning and error messages, applied to git master.
I wasn't completely sure about the case of warnings in the presence of -Werror. I dislike something like error (was warning): because that will make lines even longer than what we have already. Instead, we print a note stating warnings are treated as errors and then continue to prepend them with 'warning: '. I see that while old GCC versions do exactly that, newer ones changed the prefix to be 'error: ' instead. Not sure whether that was done on purpose, it may just be a (very minor, of course) GCC regression. For per-Makefile.am -Werror settings, we could make the "warnings are treated as errors" message produce the line where -Werror was set; not sure if that is all that helpful though. Thanks, Ralf