* configure.in: Allow mingw32 and cygwin targets to build cross-gdb.
[deliverable/binutils-gdb.git] / configure.in
index b472484116ea724ef614566302e6231626ac9290..48b3a334a1f64c5443a5c00f5c39ea67f32dc4c9 100644 (file)
@@ -617,13 +617,6 @@ case "${target}" in
   i[[3456789]]86-*-mingw32*)
     target_configdirs="$target_configdirs target-mingw"
     noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
-
-    # Can't build gdb for mingw32 if not native.
-    case "${host}" in
-      i[[3456789]]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
-      *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
-         ;;
-    esac
     ;;    
   *-*-cygwin*)
     target_configdirs="$target_configdirs target-libtermcap target-winsup"
@@ -634,13 +627,6 @@ case "${target}" in
     elif test -d "$srcdir/newlib"; then
       echo "Warning: winsup is missing so newlib can't be built."
     fi
-
-    # Can't build gdb for Cygwin if not native.
-    case "${host}" in
-      *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
-      *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
-         ;;
-    esac
     ;;    
   i[[3456789]]86-moss-msdos | i[[3456789]]86-*-moss* | \
   i[[3456789]]86-*-uwin* | i[[3456789]]86-*-interix* )
@@ -1254,8 +1240,8 @@ if test -d ${srcdir}/gcc; then
         esac
 
         # Disable languages that need other directories if these aren't available.
-       for i in $subdir_requires .; do
-         test -d gcc/$i && continue
+       for i in $subdir_requires; do
+         test -f "$srcdir/gcc/$i/config-lang.in" && continue
          case ,${enable_languages}, in
             *,${language},*)
               # Specifically requested language; tell them.
This page took 0.0255030000000001 seconds and 4 git commands to generate.