summaryrefslogtreecommitdiff
path: root/automake.in
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2001-10-26 09:56:43 +0000
committerAkim Demaille <akim@epita.fr>2001-10-26 09:56:43 +0000
commit60a93569e1c10c95a88f1e6b1bdb02b8dc665ef4 (patch)
tree1d87c7e6280662287aff28402ae566a39500e9cd /automake.in
parent9738d7d6bba871738e08a37913da1628ec7fda4e (diff)
downloadautomake-60a93569e1c10c95a88f1e6b1bdb02b8dc665ef4.tar.gz
* automake.in (&handle_configure): Use the config.status 2.50
invocation syntax for config files and headers. autoheader needs the name of the file to create, not from what it must be created, hence CONFIG_HEADER_FULL is $one_name, not $one_fullname. * lib/am/configure.am, lib/am/remake-hdr.am: Likewise. * tests/confsub.test (SUBDIRS): Adjust to the new config.status invocation. Strengthen: Use the non-default config.hin source. Strengthen: Make sure config.h is properly updated when config.hin is changed.
Diffstat (limited to 'automake.in')
-rwxr-xr-xautomake.in23
1 files changed, 9 insertions, 14 deletions
diff --git a/automake.in b/automake.in
index 5b68ef35e..58100fd70 100755
--- a/automake.in
+++ b/automake.in
@@ -3782,7 +3782,7 @@ sub handle_configure
('FILES' => join (' ', @files),
'CONFIG_HEADER' => $cn_sans_dir,
'CONFIG_HEADER_IN' => $ch_sans_dir,
- 'CONFIG_HEADER_FULL' => $one_fullname,
+ 'CONFIG_HEADER_FULL' => $one_name,
'STAMP' => "$stamp_dir$stamp_name",
'SRC_STAMP' => "$out_dir/$stamp_name"));
@@ -3836,30 +3836,26 @@ sub handle_configure
my @actual_other_files = ();
foreach my $lfile (@other_input_files)
{
- my ($file, $local);
- my (@inputs, @rewritten_inputs);
- my ($need_rewritten);
+ my $file;
+ my @inputs;
if ($lfile =~ /^([^:]*):(.*)$/)
{
# This is the ":" syntax of AC_OUTPUT.
$file = $1;
@inputs = split (':', $2);
- $need_rewritten = 1;
}
else
{
# Normal usage.
$file = $lfile;
@inputs = $file . '.in';
- $need_rewritten = 0;
}
# Automake files should not be stored in here, but in %MAKE_LIST.
prog_error ("$lfile in \@other_input_files")
if -f $file . '.am';
- $local = basename ($file);
- @rewritten_inputs = rewrite_inputs_into_dependencies (1, @inputs);
+ my $local = basename ($file);
# Make sure the dist directory for each input file is created.
# We only have to do this at the topmost level though. This
@@ -3902,16 +3898,15 @@ sub handle_configure
next;
}
+ my @rewritten_inputs = rewrite_inputs_into_dependencies (1, @inputs);
$output_rules .= ($local . ': '
. '$(top_builddir)/config.status '
- . join (' ', @rewritten_inputs) . "\n"
+ . "@rewritten_inputs\n"
. "\t"
- . 'cd $(top_builddir) && CONFIG_FILES='
+ . 'cd $(top_builddir) && '
+ . '$(SHELL) ./config.status '
. ($relative_dir eq '.' ? '' : '$(subdir)/')
- . '$@' . ($need_rewritten
- ? (':' . join (':', @inputs))
- : '')
- . ' CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status'
+ . '$@'
. "\n");
push (@actual_other_files, $local);