When using Clang 7, we may end up trying to use the flag when it won't work properly, which can lead to confusing errors. i.e:
/usr/bin/ld: error: ... <corrupt x86 feature size: 0x8>
Use AX_CHECK_LINK_FLAG & --fatal-warnings to ensure we wont use the flag in this case.
We do this as even when the error is emitted, compilation succeeds, and the binaries produced will run. This means we can't just check if the compiler accepts the flag, or if compilation succeeds (without or without -Werror, and/or passing -Wl,--fatal-warnings, which may not be passed through to the linker).
This was reported by someone configuring for fuzzing, on Debian 10, where Clang 7 is the default.
See here for a minimal example of the problematic behaviour: https://gist.github.com/fanquake/9b33555fcfebef8eb8c0795a71732bc6