refine configure, use console for gmc/gcp/gmp/gprof