diff options
author | Tom Tromey <tromey@redhat.com> | 2001-07-31 04:22:07 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2001-07-31 04:22:07 +0000 |
commit | d3910daaf1a35590412938c204de0661f8defca9 (patch) | |
tree | 19a6081603e249ecaf062aa1937a2e049de2fd91 /automake.in | |
parent | acd6275cb30fa7e7fb9dfa94ed5a5e4632c1b8ad (diff) | |
download | automake-d3910daaf1a35590412938c204de0661f8defca9.tar.gz |
* tests/Makefile.am (TESTS): Added aclibobj.test.
* tests/aclibobj.test: New file.
* automake.in (handle_lib_objects_cond): Avoid undefined variable
error.
(scan_one_autoconf_file): Handle AC_LIBSOURCE and AC_LIBSOURCES.
Diffstat (limited to 'automake.in')
-rwxr-xr-x | automake.in | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/automake.in b/automake.in index f0ff3213f..c61b9e525 100755 --- a/automake.in +++ b/automake.in @@ -2174,14 +2174,15 @@ sub handle_lib_objects_cond # means adding entries to dep_files. if ($lsearch =~ /^\@(LT)?LIBOBJS\@$/) { + my $lt = $1 ? $1 : ''; my $myobjext = ($1 ? 'l' : '') . 'o'; push (@dep_list, $lsearch); $seen_libobjs = 1; if (! keys %libsources - && ! &variable_defined ($1 . 'LIBOBJS')) + && ! &variable_defined ($lt . 'LIBOBJS')) { - &am_line_error ($var, "\@$1" . "LIBOBJS\@ seen but never set in `$configure_ac'"); + &am_line_error ($var, "\@$lt" . "LIBOBJS\@ seen but never set in `$configure_ac'"); } foreach my $iter (keys %libsources) @@ -2216,11 +2217,12 @@ sub handle_lib_objects_cond } elsif ($lsearch =~ /^\@(LT)?ALLOCA\@$/) { + my $lt = $1 ? $1 : ''; my $myobjext = ($1 ? 'l' : '') . 'o'; push (@dep_list, $lsearch); &am_line_error ($var, - "\@$1" . "ALLOCA\@ seen but `AC_FUNC_ALLOCA' not in `$configure_ac'") + "\@$lt" . "ALLOCA\@ seen but `AC_FUNC_ALLOCA' not in `$configure_ac'") if ! defined $libsources{'alloca.c'}; $dep_files{'$(DEPDIR)/alloca.P' . $myobjext} = 1; &require_file_with_line ($var, $FOREIGN, 'alloca.c'); @@ -4482,6 +4484,17 @@ sub scan_one_autoconf_file { $libsources{"$1.c"} = 1; } + elsif (/AC_LIBSOURCE\(([^)]+)\)/) + { + $libsources{&unquote_m4_arg ($1)} = 1; + } + elsif (/AC_LIBSOURCES\(([^)]+)\)/) + { + foreach my $lc_iter (split (/[, ]+/, &unquote_m4_arg ($1))) + { + $libsources{$lc_iter} = 1; + } + } if (! $in_ac_replace && s/AC_REPLACE_FUNCS\s*\(\[?//) { |