AC_PROG_CC actually sets '-g -O2' if CFLAGS isn't already set, so all this is doing in turning off -O2. Took me a while to figure that out.