* configure.in: don't even try to configure or make a subdirectory
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Apr 2002 20:23:44 +0000 (20:23 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Apr 2002 20:23:44 +0000 (20:23 +0000)
if there's no configure script for it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52442 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
configure.in

index 68e77bf..cb3ba74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-17  Nathanael Nerode  <neroden@twcny.rr.com>
+
+       * configure.in: don't even try to configure or make a subdirectory
+       if there's no configure script for it.
+
 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
 
        * MAINTAINERS: Remove chill maintainers.
index 9d71f6e..b3d28b9 100644 (file)
@@ -1198,6 +1198,25 @@ if [ -z "${norecursion}" ] && [ -n "${target_configdirs}" ]; then
   done
 fi
 
+# Quietly strip out all directories which aren't configurable in this tree.
+# This relies on all configurable subdirectories being autoconfiscated, which
+# is now the case.
+configdirs_all="$configdirs"
+configdirs=
+for i in ${configdirs_all} ; do
+  if test -f ${srcdir}/$i/configure ; then
+    configdirs="${configdirs} $i"
+  fi
+done
+target_configdirs_all="$target_configdirs"
+target_configdirs=
+for i in ${target_configdirs_all} ; do
+  j=`echo $i | sed -e s/target-//g` 
+  if test -f ${srcdir}/$j/configure ; then
+    target_configdirs="${target_configdirs} $i"
+  fi
+done
+
 # Produce a warning message for the subdirs we can't configure.
 # This isn't especially interesting in the Cygnus tree, but in the individual
 # FSF releases, it's important to let people know when their machine isn't