+2001-05-05 Richard Boulton <richard@tartarus.org>
+
+ * automake.in (handle_dist): Check for existence of DIST_SUBDIRS
+ first.
+
2001-05-05 Robert Collins <robert.collins@itdomain.com.au>
* automake.in (required_targets): Added uninstall-am.
# to all possible directories, and use it. If DIST_SUBDIRS is
# defined, just use it.
my $dist_subdir_name;
- if (variable_conditionally_defined ('SUBDIRS')
- || &variable_defined ('DIST_SUBDIRS'))
+ # Note that we check DIST_SUBDIRS first on purpose. At least
+ # one project uses so many conditional subdirectories that
+ # calling variable_conditionally_defined on SUBDIRS will cause
+ # automake to grow to 150Mb. Sigh.
+ if (&variable_defined ('DIST_SUBDIRS')
+ || variable_conditionally_defined ('SUBDIRS'))
{
$dist_subdir_name = 'DIST_SUBDIRS';
if (! &variable_defined ('DIST_SUBDIRS'))