automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No AM_YFLAGS support within conditionals


From: Alexandre Duret-Lutz
Subject: Re: No AM_YFLAGS support within conditionals
Date: Sun, 07 Aug 2005 11:56:00 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

>>> "JL" == Juergen Leising <address@hidden> writes:
[...]
 JL> src/libbsql/Makefile.am:8: automake does not support AM_YFLAGS
 JL> being defined conditionally
 JL> automake: ####################
 JL> automake: ## Internal Error ##
 JL> automake: ####################
 JL> automake: undefined condition `TRUE' for `AM_YFLAGS'
[...]

Thanks.  I'm installing this on HEAD.

2005-08-07  Alexandre Duret-Lutz  <address@hidden>

        * lib/Automake/Variable.pm (variable_value): Do not read the TRUE
        value of a conditionally defined variable.
        Report from Juergen Leising.

Index: THANKS
===================================================================
RCS file: /cvs/automake/automake/THANKS,v
retrieving revision 1.274
diff -u -r1.274 THANKS
--- THANKS      9 Jul 2005 09:24:40 -0000       1.274
+++ THANKS      7 Aug 2005 09:54:24 -0000
@@ -125,6 +125,7 @@
 js pendry              address@hidden
 Juergen A. Erhard      address@hidden
 Juergen Keil           address@hidden
+Juergen Leising                address@hidden
 Julien Sopena          address@hidden
 Karl Berry             address@hidden
 Karl Heuer             address@hidden
Index: lib/Automake/Variable.pm
===================================================================
RCS file: /cvs/automake/automake/lib/Automake/Variable.pm,v
retrieving revision 1.39
diff -u -r1.39 Variable.pm
--- lib/Automake/Variable.pm    27 Jul 2005 11:09:45 -0000      1.39
+++ lib/Automake/Variable.pm    7 Aug 2005 09:54:25 -0000
@@ -1180,7 +1180,7 @@
 
 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
@@ -1191,7 +1191,8 @@
     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>

-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]