automake
[Top][All Lists]
Advanced

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

Re: problem: unitialized +=


From: Akim Demaille
Subject: Re: problem: unitialized +=
Date: 17 Apr 2001 18:50:11 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

> I apply this:
> 
> Index: ChangeLog
> from  Akim Demaille  <address@hidden>
> 
>         * automake.in (&macro_define): User variables can be first defined
>         with `+='.

In fact, I don't, because I now recall why I did that.  It is related
to pluseq7 which fails with this test, and it was it that made me
write this snippet.

Given that `the user is allowed to shoot in her foot', I don't
understand pluseq7:

#! /bin/sh

# Test that `+=' fails when required.

. $srcdir/defs || exit 1

cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_RANLIB
END

# If you do this in a real Makefile.am, I will kill you.
cat > Makefile.am << 'END'
lib_LIBRARIES = libq.a
libq_a_SOURCES = q.c
AR += qq
END

: > q.c

$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0



If we agree the test is wrong, I can apply the aforementioned patch.
It's effect is to _set_ AR to qq (since there is no definition
before).

        Akim



reply via email to

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