build: handle output of localized gcc or clang
authorBen Noordhuis <info@bnoordhuis.nl>
Sat, 30 Jun 2012 15:49:31 +0000 (17:49 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 30 Jun 2012 15:49:37 +0000 (17:49 +0200)
commitf78ce087ba195540c8293f57a0a774c1de9e19bb
tree5020d7df7b5cce13ad38e7e7e27273f344b04f5c
parentf3150292687e04332e1ae252817ee703fe316a70
build: handle output of localized gcc or clang

Before this commit, we used to scan the output of `$CC -v` for strings like
"gcc version x.y.z".

It was pointed out that this approach fails with localized versions of gcc
because those print (for example) "gcc versiĆ³n x.y.z".

Use the output of `$CC --version` instead and only look at the first line.
configure