* lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc

is set to `no', then that overrides and sets ac_cv_prog_cc_c89
and ac_cv_prog_cc_c99 to `no', for backward compatibility.
* NEWS: Update.
This commit is contained in:
Ralf Wildenhues 2006-05-07 20:36:01 +00:00
parent e35c2c54f7
commit 62e0f31c7c
3 changed files with 21 additions and 15 deletions

View File

@ -1,3 +1,10 @@
2006-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc
is set to `no', then that overrides and sets ac_cv_prog_cc_c89
and ac_cv_prog_cc_c99 to `no', for backward compatibility.
* NEWS: Update.
2006-05-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to

5
NEWS
View File

@ -1,5 +1,10 @@
* Major changes in Autoconf 2.59d
** AC_PROG_CC_STDC
Passing 'ac_cv_prog_cc_stdc=no' to 'configure' now sets ac_cv_prog_cc_c99
and ac_cv_prog_cc_c89 to 'no' as well, for backward compatibility with
obsolete K&R tests in the Automake test suite.
* Major changes in Autoconf 2.59c
Released 2006-04-12, by Ralf Wildenhues.

View File

@ -1208,23 +1208,17 @@ AC_DEFUN([AC_PROG_CC_C99],
# ---------------
AC_DEFUN([AC_PROG_CC_STDC],
[ AC_REQUIRE([AC_PROG_CC])dnl
_AC_PROG_CC_C99([ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99],
[_AC_PROG_CC_C89([ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89],
[ac_cv_prog_cc_stdc=no])])dnl
AS_CASE([$ac_cv_prog_cc_stdc],
[no], [ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no],
[_AC_PROG_CC_C99([ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99],
[_AC_PROG_CC_C89([ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89],
[ac_cv_prog_cc_stdc=no])])])dnl
AC_MSG_CHECKING([for $CC option to accept ISO Standard C])
AC_CACHE_VAL([ac_cv_prog_cc_stdc], [])
case "x$ac_cv_prog_cc_stdc" in
xno)
AC_MSG_RESULT([unsupported])
;;
*)
if test "x$ac_cv_prog_cc_stdc" = x; then
AC_MSG_RESULT([none needed])
else
AC_MSG_RESULT([$ac_cv_prog_cc_stdc])
fi
;;
esac
AS_CASE([$ac_cv_prog_cc_stdc],
[no], [AC_MSG_RESULT([unsupported])],
[''], [AC_MSG_RESULT([none needed])],
[AC_MSG_RESULT([$ac_cv_prog_cc_stdc])])
])