[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnulib breaks CC_FOR_BUILD
From: |
Bruno Haible |
Subject: |
Re: Gnulib breaks CC_FOR_BUILD |
Date: |
Sat, 05 Jan 2019 13:24:26 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
John Darrington wrote on 2018-12-22:
> I'm trying to use gnulib in the same project as ax_prog_cc_for_build.m4
> from the autoconf archive[1]. But it seems that they do not play nicely
> together.
>
> Specifically, gnulibs std-gnu11.m4 seems to negate the effect of the former,
> resulting in CC_FOR_BUILD always getting defined as the empty string.
>
> Is there a way to fix this?
The way to fix this is to
- look at the generated shell code in the configure file,
- ask yourself why this code does not have the desired effect,
- then modify the .m4 files so that the generated shell code
is as expected.
I can see that
- ax_prog_cc_for_build.m4 makes brutal use of pushdef.
- std-gnu11.m4 probably underquotes some uses of CC.
Maybe the fix is that ax_prog_cc_for_build.m4 uses shell assignments
instead of pushdef?
Or that std-gnu11.m4 quotes CC more systematically?
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Gnulib breaks CC_FOR_BUILD,
Bruno Haible <=