Cleaned up the configure script with some cases and added --enable-exp_exact for the gf