+Tue Jan 7 18:35:10 1997 Tom Tromey <tromey@cygnus.com>
+
+ * aclocal.in (parse_arguments): Handle -I.
+ (usage): Ditto.
+ (scan_m4_files): Ditto.
+
+ * automake.in (handle_single_transform_list): Don't give error
+ message if extension unrecognized.
+
+Tue Dec 17 11:18:20 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * m4/header.m4 (AM_CONFIG_HEADER): Check for $CONFIG_HEADERS, not
+ $CONFIG_HEADER.
+
Tue Jan 7 17:59:26 1997 Tom Tromey <tromey@cygnus.com>
* automake.in (scan_one_configure_file): AM_INIT_GUILE_MODULE runs
\f
-&parse_arguments (@ARGV);
-&scan_m4_files ($acdir);
+local (@dirlist) = &parse_arguments (@ARGV);
+&scan_m4_files ($acdir, @dirlist);
&scan_configure;
if (! $exit_status)
{
print "\
--acdir=DIR directory holding config files
--help print this help, then exit
+ -I DIR add directory to search list for .m4 files
--output=FILE put output in FILE (default aclocal.m4)
--verbose don't be silent
--version print version number, then exit
sub parse_arguments
{
local (@arglist) = @_;
+ local (@dirlist);
while (@arglist)
{
{
$output_file = $1;
}
+ elsif ($arglist[0] eq '-I')
+ {
+ shift (@arglist);
+ push (@dirlist, $arglist[0]);
+ }
elsif ($arglist[0] eq '--verbose')
{
++$verbosity;
shift (@arglist);
}
+
+ return @dirlist;
}
################################################################
# Scan all the installed m4 files and construct a map.
sub scan_m4_files
{
- local ($m4dir) = @_;
+ local (@dirlist) = @_;
# First, scan acinclude.m4 if it exists.
if (-f 'acinclude.m4')
$file_contents{'acinclude.m4'} = &scan_file ('acinclude.m4');
}
- opendir (DIR, $m4dir)
- || die "aclocal: couldn't open directory \`$m4dir': $!\n";
- local ($file, $fullfile, $expr);
- foreach $file (sort grep (! /^\./, readdir (DIR)))
+ local ($m4dir);
+ foreach $m4dir (@dirlist)
{
- # Only examine .m4 files.
- next unless $file =~ /\.m4$/;
+ opendir (DIR, $m4dir)
+ || die "aclocal: couldn't open directory \`$m4dir': $!\n";
+ local ($file, $fullfile, $expr);
+ foreach $file (sort grep (! /^\./, readdir (DIR)))
+ {
+ # Only examine .m4 files.
+ next unless $file =~ /\.m4$/;
- # Skip some files when running out of srcdir.
- next if $file eq 'aclocal.m4';
+ # Skip some files when running out of srcdir.
+ next if $file eq 'aclocal.m4';
- $fullfile = $m4dir . '/' . $file;
- $file_contents{$fullfile} = &scan_file ($fullfile);
+ $fullfile = $m4dir . '/' . $file;
+ $file_contents{$fullfile} = &scan_file ($fullfile);
+ }
+ closedir (DIR);
}
- closedir (DIR);
# Construct a new function that does the searching. We use a
# function (instead of just evalling $search in the loop) so that
dnl that is generated. We must strip everything past the first ":",
dnl and everything past the last "/".
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
-test -z "<<$>>CONFIG_HEADER" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl
+test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl
changequote([,]))])