summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-02-20 08:16:38 +0100
committerJim Meyering <meyering@redhat.com>2008-02-20 19:29:28 +0100
commita1ec12dad6e5c68948551b6b34ecae4c7ebbe7b6 (patch)
treeacd4e6494bfbf9b86485e475cba8b2a303041b72
parentcb3147d29860195780f745faf42e2b8a02bdcbf5 (diff)
downloadcoreutils-a1ec12dad6e5c68948551b6b34ecae4c7ebbe7b6.tar.xz
* bootstrap: Remove dangling symlinks before invoking aclocal.
-rwxr-xr-xbootstrap9
1 files changed, 8 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 7dacfe6be..1c0b97ebc 100755
--- a/bootstrap
+++ b/bootstrap
@@ -2,7 +2,7 @@
# Bootstrap this package from checked-out sources.
-# Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003-2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -538,6 +538,13 @@ if test -f $mam_template; then
done
fi
+# Remove dangling symlinks in gnulib-populated directories, since
+# a dangling m4/*.m4 symlink would cause aclocal to fail.
+# This depends on GNU find, and a relatively recent version at that.
+# Ignore any failure for now, since it's only to avoid the relatively
+# unusual case in which a symlinked-to file in gnulib/ or gl/ is removed.
+find m4 lib build-aux -depth -type l -xtype l -delete > /dev/null 2>&1
+
# Reconfigure, getting other files.
for command in \