From 9a37974ffb271e95073695935cfb1967f12d2a3b Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 9 May 2001 18:24:12 +0000 Subject: [PATCH] * automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET. (&handle_tests_dejagnu, &define_standard_variables): Don't. (&define_standard_variables): Don't transform %top_builddir% since... * header-vars.am: Use %TOPDIR% instead. --- ChangeLog | 7 +++++++ automake.in | 20 +++++++------------- header-vars.am | 2 +- lib/am/header-vars.am | 2 +- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 512fe82..cb9bd23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2001-05-09 Akim Demaille + * automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET. + (&handle_tests_dejagnu, &define_standard_variables): Don't. + (&define_standard_variables): Don't transform %top_builddir% since... + * header-vars.am: Use %TOPDIR% instead. + +2001-05-09 Akim Demaille + * automake.in (@objects): Remove, unused. Remove all the code related to it, and to former `$(OBJECTS)'. diff --git a/automake.in b/automake.in index df79ae5..142db33 100755 --- a/automake.in +++ b/automake.in @@ -4256,11 +4256,7 @@ sub handle_tests_dejagnu # Only create site.exp rule if user hasn't already written one. $output_rules .= - &file_contents ('dejagnu', - ('SITE-EXP' => ! &target_defined ('site.exp'), - 'BUILD' => $seen_canonical == $AC_CANONICAL_SYSTEM, - 'HOST' => $seen_canonical, - 'TARGET' => $seen_canonical == $AC_CANONICAL_SYSTEM)); + file_contents ('dejagnu', ('SITE-EXP' => ! target_defined ('site.exp'))); } @@ -6691,7 +6687,6 @@ sub read_am_file } elsif (/$ASSIGNMENT_PATTERN/o) { - # print STDERR; # Found a macro definition. $was_rule = 0; $last_var_name = $1; @@ -6717,7 +6712,6 @@ sub read_am_file $var_comment{$last_var_name} .= "$comment"; $comment = $spacing = ''; - # print STDERR "$last_var_name => $last_var_value\n"; macro_define ($last_var_name, 0, $last_var_type, $cond, $last_var_value, $.) @@ -6782,11 +6776,7 @@ sub define_standard_variables { my $saved_output_vars = $output_vars; my ($comments, undef, $rules) = - &file_contents_internal (1, "$am_dir/header-vars.am", - ('BUILD' => $seen_canonical == $AC_CANONICAL_SYSTEM, - 'HOST' => $seen_canonical, - 'TARGET' => $seen_canonical == $AC_CANONICAL_SYSTEM, - 'top_builddir' => backname ($relative_dir))); + file_contents_internal (1, "$am_dir/header-vars.am"); # This will output the definitions in $output_vars, which we don't # want... @@ -6898,6 +6888,10 @@ sub make_paragraphs ($%) 'TOPDIR_P' => $relative_dir eq '.', 'CONFIGURE-AC' => $configure_ac, + 'BUILD' => $seen_canonical == $AC_CANONICAL_SYSTEM, + 'HOST' => $seen_canonical, + 'TARGET' => $seen_canonical == $AC_CANONICAL_SYSTEM, + 'LIBTOOL' => defined $configure_vars{'LIBTOOL'}) # We don't need more than two consecutive new-lines. . 's/\n{3,}/\n\n/g'; @@ -7078,7 +7072,7 @@ sub file_contents_internal ($$%) { my ($var, $type, $val) = ($1, $2, $3); &am_file_error ($file, "macro `$var' with trailing backslash") - if /\\$/;; + if /\\$/; # Accumulating variables must not be output. $var_comment{$var} .= "$spacing" diff --git a/header-vars.am b/header-vars.am index 5b965c7..1e09146 100644 --- a/header-vars.am +++ b/header-vars.am @@ -53,7 +53,7 @@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ ## Location of top build directory relative to this one. -top_builddir = %top_builddir% +top_builddir = %TOPDIR% ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am index 5b965c7..1e09146 100644 --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -53,7 +53,7 @@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ ## Location of top build directory relative to this one. -top_builddir = %top_builddir% +top_builddir = %TOPDIR% ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ -- 2.7.4