On 8/17/21 11:19 AM, Osipov, Michael (LDA IT PLM) wrote:
> Am 2021-08-17 um 17:09 schrieb Chet Ramey:
>> On 8/17/21 10:01 AM, Osipov, Michael (LDA IT PLM) wrote:
>>
>>> But is still logically doesn't add up. From ./configure:
>>>> if test $ac_compiler_gnu = yes; then
>>>> GCC=yes
>>>> else
>>>> GCC=
>>>> fi
>>>
>>> So the variable is *always* set. Thus word is always substituted. I would
>>> expect no else branch in the if clause then I would competely agree with
>>> Chet. Removing the else block makes the sript works as expected.
>>>
>>> What am I missing here?
>>
>> I think that's the issue. But since that code fragment isn't in the bash
>> or readline configure.ac, it's inserted by autoconf, probably as part of
>> AC_PROG_CC.
>>
>> The documentation for AC_PROG_CC doesn't mention setting GCC to the empty
>> string if the compilation is not using gcc, but it seems to do that.
>>
>> I guess I'll have to work around it.
>
> Why not use :+ then?
That's the obvious workaround.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/