From: Ralf Wildenhues Date: Wed, 22 Apr 2009 05:35:12 +0000 (+0200) Subject: Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99. X-Git-Tag: v2.64~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d29bb704e584a0d6ecd0ddfde0d4a2979fffd950;p=thirdparty%2Fautoconf.git Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99. * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89 and AC_PROG_CC_C99 prefer extended over strict conformance modes. Report by Vincent Lefèvre. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 39bc805bf..0d966d33e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-04-22 Ralf Wildenhues + + Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99. + * doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89 + and AC_PROG_CC_C99 prefer extended over strict conformance modes. + Report by Vincent Lefèvre. + 2009-04-21 Ralf Wildenhues Revert bogus change in last commit. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 461f0778f..1256095a9 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -6809,7 +6809,8 @@ set to accept Standard C; if not, the shell variable If the C compiler is not in @acronym{ANSI} C89 (@acronym{ISO} C90) mode by default, try to add an option to output variable @code{CC} to make it so. This macro tries various options that select @acronym{ANSI} C89 on -some system or another. It considers the compiler to be in +some system or another, preferring extended functionality modes over +strict conformance modes. It considers the compiler to be in @acronym{ANSI} C89 mode if it handles function prototypes correctly. After calling this macro you can check whether the C compiler has been @@ -6823,7 +6824,8 @@ This macro is called automatically by @code{AC_PROG_CC}. @acindex{PROG_CC_C99} If the C compiler is not in C99 mode by default, try to add an option to output variable @code{CC} to make it so. This macro tries -various options that select C99 on some system or another. It +various options that select C99 on some system or another, preferring +extended functionality modes over strict conformance modes. It considers the compiler to be in C99 mode if it handles @code{_Bool}, @code{//} comments, flexible array members, @code{inline}, signed and unsigned @code{long long int}, mixed code and declarations, named