* m4/libtool.m4 (_LT_COMPILER_OPTION): Evaluate `lt_compile' variable
twice in order to unquote user-supplied variables in same manner as
it made during compilation in Makefiles
(_LT_COMPILER_C_O): Same
* Makefile.am (TESTSUITE_AT): Add new test
* tests/escaped_cflags.at: New test for quoted
* tests/demo.at (_LT_DEMO_SETUP): $@ expanded to empty string during
_LT_DEMO_SETUP expanding. Avoid $@ usage inside m4_define call.
---
tests/demo.at | 15 ++-
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/tests/demo.at b/tests/demo.at
index 4eb156cf..a10520b0 10064
Currently in the `_LT_COMPILER_OPTION' macro exists same issue as I tried
to fix for autoconf in the following thread:
https://lists.gnu.org/archive/html/autoconf-patches/2019-03/msg3.html
As result of this issue the following call:
> ./configure CPPFLAGS='-DSTR=\"TESTME\"' CC=clang
always
On 3/14/19 5:46 PM, Nikolai Merinov wrote:
> * tests/demo.at (_LT_DEMO_SETUP): $@ expanded to empty string during
> _LT_DEMO_SETUP expanding. Avoid $@ usage inside m4_define call.
It is not necessary to avoid $@, you just merely have to quote it so
that m4 doesn't eat it.
> ---
> tests/demo.at