bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_PROG_CC_* shouldn't append multiple options


From: Adrian Bunk
Subject: Re: AC_PROG_CC_* shouldn't append multiple options
Date: Fri, 21 Sep 2012 12:13:48 +0300
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Sep 21, 2012 at 11:18:03AM +0300, Andrew W. Nosenko wrote:
> On Fri, Sep 21, 2012 at 8:20 AM, Paul Eggert <address@hidden> wrote:
> > Yup, macros that invoke AC_PROG_CC_C89 and AC_PROG_CC_C99
> > are trouble.  They're trouble now, and they'll continue to
> > be trouble.  It's not clear how to fix this, other than
> > to advise people to avoid those macros, which the patch
> > does in the manual.
> >
> 
> OK.  Assuming that AC_PROG_CC_C99 deprecated and then removed, how I
> supposed to express "give me c99 or higher compiler or raise error if
> there only c89 or lower compiler found"?  In another words: How can I
> set the _lower_ bound of C standard support, after that configure
> should stop trying and just raises an error?

The problem here are the exact semantics of "c99 or higher compiler".

Take gcc as an example:
- in it's default (non-strict) C89 mode it supports some C99
  features like "long long int"
- no version of gcc so far supports C99 completely [1]

What exactly are your usecases where you need to know the mode of the 
compiler, and not whether some specific C99 features are supported?

cu
Adrian

[1] http://gcc.gnu.org/gcc-4.7/c99status.html

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed




reply via email to

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