Re: [sr #110451] autoconf 2.71 generated configure file does not enable C compiler flag for C99 on Solaris 10

Zack Weinberg <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <CAKCAbMjS7KGvTZyLhEU+dcrUg3J7aSeR=qVJ0FJXdQa7r_zsEA@mail.gmail.com>
On Sat, Feb 27, 2021 at 3:05 PM Bruno Haible <[email protected]> wrote:

> Find attached two tarballs, hello-c-2.69.tar.gz (generated with autoconf 2.69)
> and hello-c-2.71.tar.gz (generated with autoconf 2.71). They contain the same
> source code, except for the version number in configure.ac. In particular,
> they contain
>   - in configure.ac, an AC_PROG_CC_C99 invocation,
>   - in hello.c: code that requires C99.

FYI, AC_PROG_CC_C99 is supposed to be unnecessary with 2.70 and later.

> On Solaris 10, I'm using CC="cc -O". This compiler is not C99 compliant, but
> it accepts the option '-xc99' which makes it C99 compliant.
>
> Both packages ought to exhibit the same behaviour, but they don't:

Savannah seems to be down at the moment, so I can't download your test
tarballs.  Could you please reply to this message and attach the
config.log files you get from both?  (I was going to ask for this
anyway since I may not have access to exactly the same incarnation of
Sun's compiler as you do.)

zw
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.