2005-08-07 Alexandre Duret-Lutz <adl@gnu.org>
+ * lib/Automake/Variable.pm (variable_value): Do not read the TRUE
+ value of a conditionally defined variable.
+ Report from Juergen Leising.
+
* automake.in (lang_yacc_target_hook): Use AM_MAKEFLAGS in recursive
$(MAKE) invocations.
* lib/am/texibuild.am (?GENERIC_INFO?%SOURCE_SUFFIX%%DEST_SUFFIX%):
js pendry js.pendry@msdw.com
Juergen A. Erhard jae@laden.ilk.de
Juergen Keil jk@tools.de
+Juergen Leising juergen.leising@gmx.de
Julien Sopena julien.sopena@lip6.fr
Karl Berry kb@cs.umb.edu
Karl Heuer kwzh@gnu.org
Get the C<TRUE> value of a variable, warn if the variable is
conditionally defined. C<$var> can be either a variable name
-or a C<Automake::Variable> instance (this allows to calls sucha
+or a C<Automake::Variable> instance (this allows calls such
as C<$var-E<gt>variable_value>).
=cut
my $v = ref ($var) ? $var : var ($var);
return () unless $v;
$v->check_defined_unconditionally;
- return $v->rdef (TRUE)->value;
+ my $d = $v->def (TRUE);
+ return $d ? $d->value : "";
}
=item C<$str = output_variables>