to print variable in the configure-substitution diagnostic.
Do not mention the parent when it is the variable itself.
2003-07-03 Alexandre Duret-Lutz <adl@gnu.org>
+ * automake.in (handle_single_transform_list): Use $var->name
+ to print variable in the configure-substitution diagnostic.
+ Do not mention the parent when it is the variable itself.
+
* tests/package.test: Delete.
* tests/Makefile.am (TESTS): Remove package.test.
# Configure substitutions in _SOURCES variables are errors.
if (/^\@.*\@$/)
{
- err_var ($var,
- "`$var' includes configure substitution `$_', and is " .
- "referred to\nfrom `$topparent': configure " .
- "substitutions are not allowed\nin _SOURCES variables");
- next;
+ my $parent_msg = '';
+ $parent_msg = "\nand is referred to from `$topparent'"
+ if $topparent ne $var->name;
+ err_var ($var,
+ "`" . $var->name . "' includes configure substitution `$_'"
+ . $parent_msg . ";\nconfigure " .
+ "substitutions are not allowed in _SOURCES variables");
+ next;
}
# If the source file is in a subdirectory then the `.o' is put