autoconf: use compiler flag test macro from GNU Autoconf Archive

(This implementation has EXTRA-FLAGS option.)

norefs

Change-Id: I456b89ce8a7b2624b0196013527682fce13078e6
configure: test support of -fpredictive-commoning with -Werror

Clang compiler does not support this flag but emits a warning only,
so the option was used anyway.

norefs

Change-Id: I865551a5ac7b605123e0f9df0fc786a844d849ce