[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get autoconf to respect CC="gcc -std=c89"?
From: |
Paul Eggert |
Subject: |
Re: How to get autoconf to respect CC="gcc -std=c89"? |
Date: |
Fri, 6 Oct 2023 17:08:38 -0700 |
User-agent: |
Mozilla Thunderbird |
Thanks for looking into this.
Some comments.
This doesn't let you say "I want either c89 or c99, but not c11".
+ m4_ifdef([_AC_C_STANDARD_VERSION_LIST],
+ [m4_fatal([AC_PROG_C_STANDARD_VERSION should only be used once], 1)])
Why have this check?
How about something simpler, like replacing this:
m4_map([_AC_PROG_CC_STDC_EDITION_TRY], [[11], [99], [89]])])
with this:
m4_map([_AC_PROG_CC_STDC_EDITION_TRY],
[m4_default([_AC_C_STANDARD_VERSION_LIST],
[[11], [99], [89]])])
and not bothering to check for allowed or duplicated version lists?
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Niels Möller, 2023/10/06
- Re: How to get autoconf to respect CC="gcc -std=c89"?,
Paul Eggert <=
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Niels Möller, 2023/10/07
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Paul Eggert, 2023/10/07
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Niels Möller, 2023/10/08
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Jacob Bachmeyer, 2023/10/08
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Nick Bowler, 2023/10/09
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Niels Möller, 2023/10/11
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Zack Weinberg, 2023/10/11
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Niels Möller, 2023/10/11
- Re: How to get autoconf to respect CC="gcc -std=c89"?, Jacob Bachmeyer, 2023/10/08