]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC: Use AU_DEFUN
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Oct 2012 19:25:34 +0000 (12:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Oct 2012 19:25:58 +0000 (12:25 -0700)
This fixes a bug introduced by the most recent change to c.m4.
Problem reported by Jim Meyering in
<http://lists.gnu.org/archive/html/autoconf/2012-10/msg00048.html>.
* lib/autoconf/c.m4 (AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC):
Use AU_DEFUN and AC_REQUIRE, not AU_ALIAS, as the latter is not
compatible with how Automake redefines AC_PROG_CC.

lib/autoconf/c.m4

index 4a84489c793bbc6fd72077899144be97fa2610bc..0802f85d0396263e0076922c14cf0b9abc031def 100644 (file)
@@ -1448,15 +1448,27 @@ dnl preferably extc11.
 
 # AC_PROG_CC_C89
 # --------------
-AU_ALIAS([AC_PROG_CC_C89], [AC_PROG_CC])
+# Do not use AU_ALIAS here and in AC_PROG_CC_C99 and AC_PROG_CC_STDC,
+# as that'd be incompatible with how Automake redefines AC_PROG_CC.  See
+# <http://lists.gnu.org/archive/html/autoconf/2012-10/msg00048.html>.
+AU_DEFUN([AC_PROG_CC_C89],
+  [AC_REQUIRE([AC_PROG_CC])],
+  [$0 is obsolete; use AC_PROG_CC]
+)
 
 # AC_PROG_CC_C99
 # --------------
-AU_ALIAS([AC_PROG_CC_C99], [AC_PROG_CC])
+AU_DEFUN([AC_PROG_CC_C99],
+  [AC_REQUIRE([AC_PROG_CC])],
+  [$0 is obsolete; use AC_PROG_CC]
+)
 
 # AC_PROG_CC_STDC
 # ---------------
-AU_ALIAS([AC_PROG_CC_STDC], [AC_PROG_CC])
+AU_DEFUN([AC_PROG_CC_STDC],
+  [AC_REQUIRE([AC_PROG_CC])],
+  [$0 is obsolete; use AC_PROG_CC]
+)
 
 
 # AC_C_BACKSLASH_A