time its owner is updated.
* tests/gnuwarn.test: Append to CFLAGS to check for this.
Reported by Harlan Stenn.
+2002-09-22 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * automake.in (macro_define): Update a variable's location each
+ time its owner is updated.
+ * tests/gnuwarn.test: Append to CFLAGS to check for this.
+ Reported by Harlan Stenn.
+
2002-09-20 Alexandre Duret-Lutz <duret_g@epita.fr>
* configure.in: Bump version to 1.6g.
|| $owner > $var_owner{$var}{$cond}))
{
$var_owner{$var}{$cond} = $owner;
+ # Always adjust the location when the owner changes (even for
+ # `+=' statements). The risk otherwise is to warn about
+ # a VAR_MAKEFILE variable and locate it in configure.ac...
+ $var_location{$var}{$cond} = $where;
}
# Call var_VAR_trigger if it's defined.
: > ChangeLog
cat > Makefile.am << 'END'
-CFLAGS = -I..
+CFLAGS += -I..
LDFLAGS = -lfoo
CXXFLAGS = -Wall
bin_PROGRAMS = bar
# Warn in gnu mode
$AUTOMAKE -Wnone --add-missing --gnu 2>stderr && exit 1
cat stderr
-grep CFLAGS stderr
-grep LDFLAGS stderr
+grep 'Makefile.am:1:.*CFLAGS' stderr
+grep 'Makefile.am:2:.*LDFLAGS' stderr
# No reason to warn about CXXFLAGS since it's not used.
grep CXXFLAGS stderr && exit 1
# Don't warn if -Wno-gnu.