autoconf-patches
[Top][All Lists]
Advanced

[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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]