bug-autoconf
[Top][All Lists]
Advanced

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

Re: bug: "gcc -std=gnu99" passes AC_PROG_CC_C11


From: Adrian Bunk
Subject: Re: bug: "gcc -std=gnu99" passes AC_PROG_CC_C11
Date: Tue, 25 Sep 2012 20:47:30 +0300
User-agent: Mutt/1.5.21 (2010-09-15)

This bug is still present after the AC_PROG_CC changes
(that didn't touch the relevant code at all):

<--  snip  -->

$ autoconf --version
autoconf (GNU Autoconf) 2.69.33-6cd96
...
$ gcc --version
gcc (Debian 4.7.2-2) 4.7.2
...
$ cat configure.ac 
AC_INIT
AC_PROG_CC
$ autoconf
$ CC="gcc -std=gnu99" ./configure
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C11... none needed
$ grep ^CC config.log 
CC='gcc -std=gnu99'
$ 

<--  snip  -->

cu
Adrian



On Thu, Sep 20, 2012 at 12:10:15PM +0300, Adrian Bunk wrote:
> <--  snip  -->
> 
> $ autoconf --version
> autoconf (GNU Autoconf) 2.69.22-787a
> ...
> $ gcc --version
> gcc (Debian 4.7.1-9) 4.7.1
> ...
> $ cat configure.ac
> AC_INIT
> 
> AC_PROG_CC_C99
> AC_PROG_CC_C11
> $ ./configure 
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables... 
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for gcc option to accept ISO C99... -std=gnu99
> checking for gcc -std=gnu99 option to accept ISO C11... none needed
> $ 
> 
> <--  snip  -->



reply via email to

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