[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: fix handle_single_transform_list diagnostic about configure subst
From: |
Alexandre Duret-Lutz |
Subject: |
FYI: fix handle_single_transform_list diagnostic about configure subst |
Date: |
Thu, 03 Jul 2003 01:15:30 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
I'm installing this. The test for the two flavor of this diagnostic
are subsrc.test and subsrc2.test (they will be made more strict
by the exit-status-check-overhaul-patch I'm preparing).
2003-07-03 Alexandre Duret-Lutz <address@hidden>
* 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.
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1473
diff -u -r1.1473 automake.in
--- automake.in 2 Jul 2003 22:20:32 -0000 1.1473
+++ automake.in 2 Jul 2003 23:13:14 -0000
@@ -1894,11 +1894,14 @@
# Configure substitutions in _SOURCES variables are errors.
if (/address@hidden@$/)
{
- 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
--
Alexandre Duret-Lutz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: fix handle_single_transform_list diagnostic about configure subst,
Alexandre Duret-Lutz <=