configure: remove dependencies on gmp and mpfr when gdb is disabled
[binutils-gdb.git] / configure
index 417fc5a970c818659a9e3b267b31c9fae875693e..9cb953a197e2fc2fe851e99b2c0ba22a9ebe7d45 100755 (executable)
--- a/configure
+++ b/configure
@@ -8032,7 +8032,9 @@ if test -d ${srcdir}/gcc ; then
   require_mpc=yes
 fi
 if test -d ${srcdir}/gdb ; then
-  require_gmp=yes
+  if test "x$enable_gdb" != xno; then
+   require_gmp=yes
+  fi
 fi
 
 gmplibs="-lmpfr -lgmp"