configure.ac: added option --enable-gccprofile

Moved switch to turn on gcc profile info from Makefile to
configure.