Mon Mar 23 07:55:04 1998 Tom Tromey <tromey@cygnus.com>
+ * aclocal.in (usage): Document --print-ac-dir.
+ (parse_arguments): Added --print-ac-dir.
+
* ansi2knr.c, ansi2knr.1: New versions from ghostscript.
(main): Reapplied "-" change from Harlan Stenn.
--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)
+ --print-ac-dir print name of directory holding m4 files
--verbose don't be silent
--version print version number, then exit
{
local (@arglist) = @_;
local (@dirlist);
+ local ($print_and_exit) = 0;
while (@arglist)
{
shift (@arglist);
push (@dirlist, $arglist[0]);
}
+ elsif ($arglist[0] eq '--print-ac-dir')
+ {
+ $print_and_exit = 1;
+ }
elsif ($arglist[0] eq '--verbose')
{
++$verbosity;
shift (@arglist);
}
+ if ($print_and_exit)
+ {
+ print $acdir, "\n";
+ exit 0;
+ }
+
return @dirlist;
}
@item --output=@var{file}
Cause the output to be put into @var{file} instead of @file{aclocal.m4}.
+@item --print-ac-dir
+Prints the name of the directory which @code{aclocal} will search to
+find the @samp{m4} files. When this option is given, normal processing
+is suppressed. This option can be used by a package to determine where
+to install a macro file.
+
@item --verbose
Print the names of the files it examines.
-@set UPDATED 20 March 1998
+@set UPDATED 23 March 1998
@set EDITION 1.2g
@set VERSION 1.2g
-@set UPDATED 20 March 1998
+@set UPDATED 23 March 1998
@set EDITION 1.2g
@set VERSION 1.2g