configure: Include the armcc build number in the compiler identification
authorMartin Storsjö <martin@martin.st>
Mon, 28 Jul 2014 08:51:29 +0000 (11:51 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 6 Aug 2014 16:15:59 +0000 (19:15 +0300)
commited6d9ce914d552eeda16af857da97c4b1aea1e3f
tree237b952119d374dffa922cf11cf41368666cb80f
parentcbc808d726afdf53d866264722785c1304c17390
configure: Include the armcc build number in the compiler identification

This tries to find the most expressive part of the output of
armcc --vsn to include, giving a compiler identification of
"ARM Compiler 5.04 update 2 (build 82)" instead of just
"ARM Compiler 5.04" for armcc 5.0.

4.x versions of armcc output the following, for "armcc --vsn":
ARM C/C++ Compiler, RVCT4.0 [Build 925]
For evaluation purposes only
Software supplied by: ARM Limited

ARM C/C++ Compiler, 4.1 [Build 894]
For evaluation purposes only
Software supplied by: ARM Limited

5.0 versions output this:
Product: ARM Compiler 5.04
Component: ARM Compiler 5.04 update 2 (build 82)
Tool: armcc [5040081]
For evaluation purposes only
Software supplied by: ARM Limited

Signed-off-by: Martin Storsjö <martin@martin.st>
configure