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

anonymous <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/support/?110395>

                 Summary: Makefile generated from Makefile.in unqoute *FLAGS
variable twice while ./configure script only once
                 Project: Autoconf
            Submitted by: None
            Submitted on: Mon 07 Dec 2020 06:30:09 PM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None

    _______________________________________________________

Details:

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

You must use +CFLAGS='-DSTRING="string"'+ to pass +AC_COMPILE_IFELSE+ test
from configure.ac, 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



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 07 Dec 2020 06:30:09 PM UTC  Name: configure.ac  Size: 309B   By:
None

<http://savannah.gnu.org/support/download.php?file_id=50418>
-------------------------------------------------------
Date: Mon 07 Dec 2020 06:30:09 PM UTC  Name: Makefile.am  Size: 44B   By: None

<http://savannah.gnu.org/support/download.php?file_id=50419>
-------------------------------------------------------
Date: Mon 07 Dec 2020 06:30:09 PM UTC  Name: main.c  Size: 56B   By: None

<http://savannah.gnu.org/support/download.php?file_id=50420>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110395>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.