+2002-07-29 Mark D. Roth <roth@feep.net>
+
+ * bin/autom4te.in: Remove --include-envvar and --site-macro-subdir
+ options and use $AUTOM4TE_PATH.
+ * doc/autoconf.texi: Remove documentation of autom4te
+ --include-envvar and --site-macro-subdir options and document
+ use of $AUTOM4TE_PATH.
+ * lib/autom4te.in: Remove --include-envvar and --site-macro-subdir
+ arguments from each language section.
+
2002-07-29 Paul Eggert <eggert@twinsun.com>
* doc/install.texi: Include copyright symbol in copyright notice.
# Process the arguments for real this time.
my @trace;
my @prepend_include;
- my $include_envvar;
- my @site_macro_subdirs;
getopt
(
# Operation modes:
# Library directories:
"B|prepend-include=s" => \@prepend_include,
"I|include=s" => \@include,
- "include-envvar=s" => \$include_envvar,
- "site-macro-subdir=s" => \@site_macro_subdirs,
# Tracing:
# Using a hash for traces is seducing. Unfortunately, upon `-t FOO',
if $freeze;
# Add directories from the appropriate env var to the include path.
- @include = (@include, split(/:/, $ENV{$include_envvar}))
- if defined($include_envvar) && exists($ENV{$include_envvar});
+ @include = (@include, split(/:/, $ENV{'AUTOM4TE_PATH'}))
+ if exists($ENV{'AUTOM4TE_PATH'});
# Also add the site macro directory, if applicable.
- map { @include = (@include, "@SITE_MACRO_DIR@/$_"); } @site_macro_subdirs
- if ('@SITE_MACRO_DIR@' ne 'no') && @site_macro_subdirs;
+ @include = (@include, '@SITE_MACRO_DIR@')
+ if ('@SITE_MACRO_DIR@' ne 'no');
# Normalize the includes: the first occurrence is enough, several is
# a pain since it introduces a useless difference in the path which
After searching any directories specified using @option{--prepend-include}
or @option{--include}, @command{autoconf} will also search the directories
-specified in the @code{AC_MACRO_PATH} environment variable, if set.
+specified in the @code{AUTOM4TE_PATH} environment variable, if set.
And finally, @command{autoconf} will also search the system-wide site
macro directory, which is set to
-@samp{$@{datadir@}/autoconf/site_macros/autoconf} by default.
+@samp{$@{datadir@}/autoconf/site_macros} by default.
@item --output=@var{file}
@itemx -o @var{file}
Prepend directory @var{dir} to the search path. This is used to include
the language-specific files before any third-party macros.
-@item --include-envvar=@var{envvar}
-Add directories specified in the environment variable @var{envvar} to
-the search path.
-
-@item --site-macro-subdir=@var{subdir}
-If the site macro directory is set, add the subdirectory @var{subdir}
-of the site macro directory to the search path.
-@end table
-
@cindex @file{autom4te.cfg}
As an example, if Autoconf is installed in its default location,
@file{/usr/local}, running @samp{autom4te -l m4sugar foo.m4} is
begin-language: "Autoconf"
args: --prepend-include @datadir@
-args: --site-macro-subdir autoconf
-args: --include-envvar AC_MACRO_PATH
args: autoconf/autoconf.m4f
args: acsite.m4?
args: aclocal.m4?
begin-language: "Autotest"
args: --prepend-include @datadir@
-args: --site-macro-subdir autotest
-args: --include-envvar AT_MACRO_PATH
args: autotest/autotest.m4f
args: package.m4?
args: --mode 777
begin-language: "M4sh"
args: --prepend-include @datadir@
-args: --site-macro-subdir m4sh
-args: --include-envvar M4SH_MACRO_PATH
args: m4sugar/m4sh.m4f
args: --mode 777
args: --language M4sugar
begin-language: "M4sugar"
args: --prepend-include @datadir@
-args: --site-macro-subdir m4sugar
-args: --include-envvar M4SUGAR_MACRO_PATH
args: m4sugar/m4sugar.m4f
args: --warning syntax
end-language: "M4sugar"