You probably need something like
if test -d ${srcdir}/gcc && test x$have_gmp != xyes; then ... fibut I think that the whole test now belongs in the GCC subdirectory, not in the toplevel (it was anyway a hack for the sake of disabling Fortran).
Sorry for not speaking up earlier, Paolo