>>>>> "Robert" == Robert Collins <[EMAIL PROTECTED]> writes:
Robert> 3) src/Makefile.am: cf_gen_DEPENDENCIES must be set with `='
Robert> before using `+='
>> We recently talked about this with Tom, and we agreed that there is
>> no reason not to do that (but to protect the user from herself, but
>> it's not our job). So consider this is solved. I don't have time
>> now, but I'll submit a patch soon.
Robert> The same applies to CFLAGS. In fact for CFLAGS it's probably
Robert> more important - you want to add to the configured CFLAGS
Robert> variable, not replace it. No rush for me though :].
Hm, I don't understand this sentence too well. CFLAGS should be
initialized, so you should not face this problem.
Could you give a try to Automake without the following else branch?
Just remove the - lines below from macro_define:
# An Automake variable must be consistently defined with the same
# sign by Automake. A user variable must be set by either `=' or
# `:=', and later promoted to `+='.
if ($var_is_am)
{
if (defined $var_type{$var} && $var_type{$var} ne $type)
{
am_line_error ($var,
("$var was set with `$var_type{$var}=' "
. "and is now set with `$type='"));
}
}
- else
- {
- if (!defined $var_type{$var} && $type eq '+')
- {
- am_line_error ($var, "$var must be set with `=' before using `+='");
- }
- }
$var_type{$var} = $type;