* automake.in (handle_source_transform): Removed extraneous
space. Test implicit.test.
+ (read_am_file): Make sure "canonical" variables are mentioned in
+ %contents.
+ (scan_configure): AC_CHECK_TOOL sets $seen_canonical to
+ $AC_CANONICAL_HOST conditionally.
Wed Sep 11 11:54:44 1996 Tom Tromey <tromey@creche.cygnus.com>
document rebuilding configure. CONFIGURE_DEPENDENCIES
-document new variables introduced when AC_CANONICAL_* used
--- actually, must document all variables that are supposed
+-- must document all variables that are supposed
to be public knowledge
automake must be run in each directory with a configure.in
# Handle AC_CANONICAL_*. Always allow upgrading to
# AC_CANONICAL_SYSTEM, but never downgrading.
$seen_canonical = $AC_CANONICAL_HOST
- if ! $seen_canonical && /AC_CANONICAL_HOST/;
+ if ! $seen_canonical
+ && (/AC_CANONICAL_HOST/ || /AC_CHECK_TOOL);
$seen_canonical = $AC_CANONICAL_SYSTEM if /AC_CANONICAL_SYSTEM/;
- $seen_canonical = 1 if /AC_CHECK_TOOL/;
$seen_path_xtra = 1 if /AC_PATH_XTRA/;
# Sometimes it is desirable to explicitly set YACC. For
# Generate some useful variables when AC_CANONICAL_* used.
if ($seen_canonical)
{
- $header_vars .= ('host_alias = @host_alias@' . "\n"
- . 'host_triplet = @host@' . "\n");
+ local ($curs, @varlist);
+ push (@varlist, 'host_alias', 'host_triplet');
if ($seen_canonical == $AC_CANONICAL_SYSTEM)
{
- $header_vars .= ('build_alias = @build_alias@' . "\n"
- . 'build_triplet = @build@' . "\n");
- $header_vars .= ('target_alias = @target_alias@' . "\n"
- . 'target_triplet = @target@' . "\n");
+ push (@varlist, 'build_alias', 'target_alias');
+ }
+ foreach $curs (@varlist)
+ {
+ $header_vars .= "$curs = \@$curs\@\n";
+ $contents{$curs} = "\@$curs\@";
}
}
@cvindex AC_PATH_XTRA
@item AC_CANONICAL_HOST
-@item AC_CANONICAL_SYSTEM
@item AC_CHECK_TOOL
Automake will ensure that @file{config.guess} and @file{config.sub}
-exist.
+exist. Also, the @file{Makefile} variables @samp{host_alias} and
+@samp{host_triplet} are introduced.
+@c fixme xref autoconf docs.
@cvindex AC_CANONICAL_HOST
-@cvindex AC_CANONICAL_SYSTEM
@cvindex AC_CHECK_TOOL
+@vindex host_alias
+@vindex host_triplet
+
+@item AC_CANONICAL_SYSTEM
+This is similar to @code{AC_CANONICAL_HOST}, but also defines the
+@file{Makefile} variables @samp{build_alias} and @samp{target_alias}.
+@cvindex AC_CANONICAL_SYSTEM
+@vindex build_alias
+@vindex target_alias
@item AC_FUNC_ALLOCA
@item AC_FUNC_GETLOADAVG