This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: automake/44: conditional redefinitions (Was: Re: Automake 1.6.3 issue)
- From: Akim Demaille <akim at epita dot fr>
- To: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- Cc: tromey at redhat dot com, automake at gnu dot org, automake-gnats at sources dot redhat dot com
- Date: 28 Oct 2002 13:41:52 +0100
- Subject: Re: automake/44: conditional redefinitions (Was: Re: Automake 1.6.3 issue)
- References: <3D73D239.A9D5A86D@pacbell.net><mv4n0qvtqfw.fsf@nostromo.lrde.epita.fr><3D7A3BD5.B649DE1B@pacbell.net><mv4vg5fpmcm.fsf@nostromo.lrde.epita.fr><3D7D435B.7B2E3F3D@pacbell.net><mv4znuq87wi.fsf@nostromo.lrde.epita.fr><3D7DFD73.F88E9E37@pacbell.net><mv4admp7w5j.fsf@nostromo.lrde.epita.fr><3D7E1CC4.4A35883F@pacbell.net><2002-09-10-18-57-50+31582+duret_g@lrde.epita.fr><877kht6s1x.fsf@fleche.redhat.com><2002-10-11-23-04-05+19905+duret_g@lrde.epita.fr>
| This also works for things like
|
| foo = mumble
| foo = blurgle
|
| which would be interpreted as
|
| foo = blurgle
| if FALSE
| foo = mumble
| endif
I've always thought this is wrong. I still think we should not
support such ``feature'', which is a form of laxism to me, comparable
to globbing.
Nevertheless, I agree a means to install defaults would be most
welcome.
I suggest introducing
foo ?= bar
Which is always valid, but with a clear semantics.
Also, maybe we want to introduce something like (hold you breath):
ifndef foo
foo = bar
endif