Fix proper macro expansion order across autotools versions for C compiler and preprocessor program checks.