]> granicus.if.org Git - openssl/commit
Configure: use a better method to identify gcc and derivates
authorRichard Levitte <levitte@openssl.org>
Sat, 18 Nov 2017 16:54:57 +0000 (17:54 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 10 Dec 2017 09:31:27 +0000 (10:31 +0100)
commit78e9e3f945935c91d8dfe0e832a95d6ea8d05f34
tree0c324756811ccd8e0e5db97635f0aabba72af9d0
parent8d8d903118bb55f78e8bed2197cc4f113c30402d
Configure: use a better method to identify gcc and derivates

Looking for 'gcc' and 'clang' in the output from the C compiler is
uncertain.  Some versions report argv[0], which might be /usr/bin/cc
(for example), and others might mention gcc without being gcc or a
derivate.

Better then to fetch predefined macros and checking if __GNUC__ and
__clang__ are defined.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4755)
Configure