Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
authorRoland McGrath <roland@gnu.org>
Wed, 19 Jun 1996 14:52:21 +0000 (14:52 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 19 Jun 1996 14:52:21 +0000 (14:52 +0000)
* Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
up a huge list just to discard most of it.

* configure.in (sysnames): Avoid fgrep by using the case shell
builtin.

* Makeconfig (config.status): Fix dependency on Implies files.

ChangeLog
Make-dist
Makeconfig
configure.in

index e16a548..36ffea4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+       * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
+       up a huge list just to discard most of it.
+
+       * configure.in (sysnames): Avoid fgrep by using the case shell
+       builtin.
+
+       * Makeconfig (config.status): Fix dependency on Implies files.
+
 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
 
        * math/Makefile (distribute): Add ieee-math.c.
index 457c9ac..c511122 100644 (file)
--- a/Make-dist
+++ b/Make-dist
@@ -93,8 +93,8 @@ vpath % $(subdir-dirs)
 endif
 
 # Now find all the sysdep versions of those files.
-+sysdeps := $(wildcard $(foreach dir,$(sysdep_dirs) $(source_dirs),\
-                                $(addprefix $(dir)/, \
++sysdeps := $(foreach dir,$(sysdep_dirs) $(source_dirs),\
+                     $(wildcard $(addprefix $(dir)/, \
                                             $(+sysdep-names) \
                                             $(+sysdep-names:.c=.s) \
                                             $(+sysdep-names:.c=.S) \
index a254e9d..3d79890 100644 (file)
@@ -94,9 +94,11 @@ $(common-objpfx)config.make: $(common-objpfx)config.status $(..)config.h.in
 # configure when any of them changes.
 $(common-objpfx)config.status: $(..)configure \
                               $(foreach dir,$(config-sysdirs),\
+                                        $(wildcard \
+                                          $(sysdep_dir)/$(dir)/Implies) \
                                         $(patsubst %.in,%,\
                                                    $(firstword $(wildcard \
- $(addprefix $(sysdep_dir)/$(dir)/,configure configure.in Implies)))))
+ $(addprefix $(sysdep_dir)/$(dir)/,configure configure.in)))))
        @cd $(@D); if test -f $(@F); then exec $(SHELL) $(@F) --recheck; else \
         echo The GNU C library has not been configured. >&2; \
         echo Run \`configure\' to configure it before building. >&2; \
index e8e9121..38efc2e 100644 (file)
@@ -233,15 +233,15 @@ sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
 # Expand the list of system names into a full list of directories
 # from each element's parent name and Implies file (if present).
 set $sysnames
-names= seen=
+names=
 while test $# -gt 0; do
   name=$1
   shift
 
-  if echo "$seen" | fgrep -x $name >/dev/null; then
+  case " $names " in *" $name "*)
     # Already in the list.
     continue
-  fi
+  esac
 
   # Report each name as we discover it, so there is no long pause in output.
   echo $ac_n "$name $ac_c" >&AC_FD_MSG
@@ -260,9 +260,6 @@ while test $# -gt 0; do
 
   # Add NAME to the list of names.
   names="$names $name"
-  # We maintain a parallel newline-separated list for the fgrep check above.
-  seen="$seen
-$name"
 
   # Find the parent of NAME, using the empty string if it has none.
 changequote(,)dnl