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: nikolai.meri...@member.fsf.org 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/