build: detect cc version with -dumpversion
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 3 Jul 2012 13:14:33 +0000 (15:14 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 3 Jul 2012 13:15:28 +0000 (15:15 +0200)
commita0add919873d6af805f3d70da57600f49a8f8cb3
tree8ee9b29c88274bdac595cbf6f15dedc7a14c9938
parenta25a27817fc8796edd9181122e9aab7ab516751a
build: detect cc version with -dumpversion

The heuristic introduced in f78ce08 ("build: handle output of localized gcc or
clang") does not handle "branded" versions of gcc, i.e. a gcc whose output has
been customized by the distro vendor.

Fixes #3601.
configure