Configure: base compiler-specific decisions on pre-defines.
The commit subject is a bit misleading in sense that decisions affect
only gcc and gcc-alikes, like clang, recent icc...
This is back-port of 54cf3b98, GH#4281.
Reviewed-by: Rich Salz <rsalz@openssl.org>