mainAutoconf - Support: sr #110395, Makefile generated from...


sr #110395: Makefile generated from unqoute *FLAGS variable twice while ./configure script only once

Submitter:  None
Submitted:  Mon 07 Dec 2020 06:30:09 PM UTC
Priority:  * 2 - Eventually Severity:  3 - Normal
Status:  Need Info Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup

Fri 08 Dec 2023 03:41:01 PM UTC, comment #1: 

I am inclined to say that *FLAGS should be unquoted only once. However, it is not obvious to me whether this means the bug needs to be addressed in Automake, or whether this means config.status needs to put back some quoting so that Automake's existing code does the right thing.

Postponing until someone has time to have a conversation with the automake people and decide what is the best approach.

Zack Weinberg <zackw>
Group administrator
Mon 07 Dec 2020 06:30:09 PM UTC, original submission:  

For the following scenario it's impossible to provide correct CFLAGS with attached,, and main.c files.

You must use +CFLAGS='-DSTRING="string"'+ to pass +AC_COMPILE_IFELSE+ test from, but to provide same macro value to main.c you should use +CFLAGS='-DSTRING=\"string\"'+.

As result we have the current situation:

> ./configure CFLAGS='-DSTRING="string"' && make # Fails on compilation
> ./configure CFLAGS='-DSTRING=\"string\"' && make # Fails on configuration



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #50418: added by None (309B - application/octet-stream)
file #50419: added by None (44B - application/octet-stream)
file #50420:  main.c added by None (56B - text/x-csrc)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by zackw (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-08 zackw StatusNone Need Info
    2023-12-08 zackw Priority5 - Unprioritized 2 - Eventually
    2020-12-07 None Attached File- Added, #50418
        Attached File- Added, #50419
        Attached File- Added main.c, #50420

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code