]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Reinstate _AC_CHECK_HEADER_OLD for gcc.
authorEric Blake <ebb9@byu.net>
Mon, 15 Jun 2009 12:21:06 +0000 (06:21 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 15 Jun 2009 12:59:00 +0000 (06:59 -0600)
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
(_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
others used these undocumented macros.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/autoconf/headers.m4

index dd5a354dcc3f35210155cc6f56366986769d9a28..f1313f6c8d28a72edb3ccfdee2111b92efd6425c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-15  Eric Blake  <ebb9@byu.net>
+
+       Reinstate _AC_CHECK_HEADER_OLD for gcc.
+       * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
+       (_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
+       others used these undocumented macros.
+       Reported by Ralf Wildenhues.
+
 2009-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Fix concurrent autom4te.cache directory creation race.
index 120adc950e3dfd61456127269b8d1f86aad89756..6ba0b91b7ee22f5e25b3314867984be11b3267ee 100644 (file)
@@ -194,6 +194,13 @@ AC_DEFUN([_AC_CHECK_HEADER_COMPILE],
 AS_VAR_IF([ac_Header], [yes], [$2], [$3])
 AS_VAR_POPDEF([ac_Header])])# _AC_CHECK_HEADER_COMPILE
 
+# _AC_CHECK_HEADER_NEW(HEADER-FILE, [ACTION-IF-FOUND],
+#                      [ACTION-IF-NOT-FOUND])
+# ----------------------------------------------------
+# Some packages used this macro, even though it is undocumented.
+AU_DEFUN([_AC_CHECK_HEADER_NEW],
+[AC_CHECK_HEADER([$1], [$2], [$3], [AC_INCLUDES_DEFAULT])])
+
 
 # _AC_CHECK_HEADER_PREPROC_BODY
 # -----------------------------
@@ -225,6 +232,13 @@ AS_VAR_IF([ac_Header], [yes], [$2], [$3])
 AS_VAR_POPDEF([ac_Header])dnl
 ])# _AC_CHECK_HEADER_PREPROC
 
+# _AC_CHECK_HEADER_OLD(HEADER-FILE, [ACTION-IF-FOUND],
+#                      [ACTION-IF-NOT-FOUND])
+# ----------------------------------------------------
+# Some packages used this macro, even though it is undocumented.
+AU_DEFUN([_AC_CHECK_HEADER_OLD],
+[AC_CHECK_HEADER([$1], [$2], [$3], [-])])
+
 
 # _AH_CHECK_HEADER(HEADER-FILE)
 # -----------------------------