Remove error output from configure if CFLAGS is set (r174313).

This fixes PR16724.