Autotools: make GP_CHECK_CFLAGS() public
geanypy: check for C compiler flags before using them

Check for custom C compiler flags and only used them if available, not
to break build on a compiler that don't understand them.