From: Ralf Wildenhues Date: Sun, 7 May 2006 20:36:01 +0000 (+0000) Subject: * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If ac_cv_prog_cc_stdc X-Git-Tag: AUTOCONF-2.59d~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62e0f31c7c6480c896d686ea4fb2a358fca1c341;p=thirdparty%2Fautoconf.git * 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. --- diff --git a/ChangeLog b/ChangeLog index c727112c4..dd904894e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-05-07 Ralf Wildenhues + + * 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 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Take care not to diff --git a/NEWS b/NEWS index 141cf91a9..37764c2eb 100644 --- a/NEWS +++ b/NEWS @@ -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. diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index eb911d9ae..7dcaf6d0d 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -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])]) ])