1999-03-27 Tom Tromey <tromey@cygnus.com>
+ * automake.in (saw_sources_p): Correctly count header extensions
+ seen.
+ (handle_headers): Fixed order of arguments to am_install_var.
+
+ * automake.in (am_install_var): Don't error if EXTRA_foo is
+ defined uselessly.
+
* scripts.am (install-@DIR@SCRIPTS): Use NDIR when appropriate.
(uninstall-@DIR@SCRIPTS): Likewise.
* progs.am (install-@DIR@PROGRAMS): Use NDIR when appropriate.
sub handle_headers
{
local (@r);
- @r = &am_install_var ('header', '-defaultdist', 'HEADERS', 'include',
+ @r = &am_install_var ('-defaultdist', 'header', 'HEADERS', 'include',
'oldinclude', 'pkginclude',
'noinst', 'check');
foreach (@r)
}
else
{
- $headers = defined $extension_seen{'header'};
+ local (@exts) = &lang_extensions ('header');
+ $headers = @exts;
}
return scalar keys %extension_seen > $headers;
# all, or install targets.
if ($X eq 'EXTRA')
{
- if (! $warned_about_extra && ! $do_require)
- {
- $warned_about_extra = 1;
- &am_line_error ($one_name,
- "\`$one_name' should not be defined");
- }
+ # We used to warn if EXTRA_FOO was defined uselessly,
+ # but this was annoying.
next;
}