From 2125bac344a89b7c4bab0a2bbabad6827b6b2996 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 30 Mar 2002 00:31:43 +0000 Subject: [PATCH] * automake.in (check_typos): Examine AM_LDFLAGS. Fixes PR automake/311. --- ChangeLog | 3 +++ automake.in | 13 ++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f954ede..e0ab11e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-03-29 Tom Tromey + * automake.in (check_typos): Examine AM_LDFLAGS. + Fixes PR automake/311. + For PR automake/312: * lib/am/libtool.am (clean-libtool): Use LTRMS. * automake.in (handle_single_transform_list): When processing a diff --git a/automake.in b/automake.in index fce34fa..bd60ba1 100755 --- a/automake.in +++ b/automake.in @@ -3073,6 +3073,9 @@ sub handle_ltlibraries # EXTRA_ variables don't contain configure substitutions. sub check_typos () { + # It is ok if the user sets this particular variable. + &examine_variable ('AM_LDFLAGS'); + foreach my $varname (keys %var_value) { foreach my $primary ('_SOURCES', '_LIBADD', '_LDADD', '_LDFLAGS', @@ -3080,11 +3083,11 @@ sub check_typos () { macro_error ($varname, "invalid unused variable name: `$varname'") - # Note that a configure variable is always legitimate. - # It is natural to name such variables after the - # primary, so we explicitly allow it. - if $varname =~ /$primary$/ && ! $content_seen{$varname} - && ! exists $configure_vars{$varname}; + # Note that a configure variable is always legitimate. + # It is natural to name such variables after the + # primary, so we explicitly allow it. + if $varname =~ /$primary$/ && ! $content_seen{$varname} + && ! exists $configure_vars{$varname}; } } } -- 2.7.4