]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - configure
top-level configure: setup target_configdirs based on repository
[thirdparty/gcc.git] / configure
index 85ab99154020a71feb63aef93508e8462a59cd9a..785498efff59b6a3b091ce0734d15175bf4898ab 100755 (executable)
--- a/configure
+++ b/configure
@@ -8874,6 +8874,16 @@ case ,${enable_languages}, in
     ;;
 esac
 
+# If gcc/ is not in the source tree then we'll not be building a
+# target compiler, assume in that case we don't want to build any
+# target libraries or tools.
+#
+# This was added primarily for the benefit for binutils-gdb who reuse
+# this configure script, but don't always have target tools available.
+if test ! -d ${srcdir}/gcc; then
+   skipdirs="${skipdirs} ${target_configdirs}"
+fi
+
 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
 # $build_configdirs and $target_configdirs.
 # If we have the source for $noconfigdirs entries, add them to $notsupp.