]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 11 Mar 2006 13:20:14 +0000 (13:20 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 11 Mar 2006 13:20:14 +0000 (13:20 +0000)
nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
trying to execute the command `no'.

ChangeLog
lib/autoconf/c.m4

index a1462c0f940e0b72303e9467ecef053257e9509f..6be4daadb23dc0d88665e054aeab45f3eb21fce1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-03-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
+       nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
+       trying to execute the command `no'.
+
        * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
        m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
        expanded outside.
index 284a89157752c74909491182545892671adc0e6e..a3707f73e0ccb3cc91edd1207135f38fd5e79565 100644 (file)
@@ -1054,7 +1054,8 @@ 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], [no])])dnl
+                 [_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