[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autoreconf stops with "non-POSIX variable name"
From: |
Russ Allbery |
Subject: |
Re: Autoreconf stops with "non-POSIX variable name" |
Date: |
Mon, 01 Apr 2013 16:24:54 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Eric Blake <address@hidden> writes:
> If you care about non-GNU make users, then you can't use $(shell). And
> as long as you are going to mandate that your package be built with GNU
> make, then you might as well go all the way and document that fact in
> your README file, as well as:
>>>> This is actually an Automake question, but the short answer is that
>>>> you probably have fatal warnings enabled and you need to add
>>>> -Wno-portability to the Automake flags (in AM_INIT_AUTOMAKE, for
>>>> example).
> ...tell automake that you don't care about the non-portability aspect by
> adding -Wno-portability to your AM_INIT_AUTOMAKE, at which point you'd
> no longer need your @DOLLAR_SIGN@ hack.
Yeah, if you're going to require GNU make, just say so and add
-Wno-portability. That's the whole point of the flag. Hiding the dollar
sign from Automake so that it can't detect the portability issue is an odd
way of expressing things and just adds complexity to no real purpose.
--
Russ Allbery (address@hidden) <http://www.eyrie.org/~eagle/>