Johan Danielsson writes:

> This of course depends on what the CC_STDC macro means,

It effectively tries to give a couple of flags to the compiler to make it
a little more modern. That means accepting prototypes and perhaps const,
etc.

> but if it tests for a `ANSI C' compiler, -std is not enough (it
> defines __STDC__ to 0 to just mention one thing).

It's not the purpose of this macro to make the header files and libraries
ANSI compliant. That's what the rest of Autoconf is for. :)

> In my experience there are more programs that compile with -std1 than
> with any other -std setting (excluding programs that rely on old
> constructs).

>From what I gather -std1 is a proper subset of -std. If your system is
different, we'd have to test for it. The problem is that -std1 disables
common extensions, which is not the purpose of this macro. The user can
decide that for himself.


-- 
Peter Eisentraut                  Sernanders väg 10:115
[EMAIL PROTECTED]                   75262 Uppsala
http://yi.org/peter-e/            Sweden

Reply via email to