[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] m4: replace AC_DIAGNOSE with m4_warn
From: |
Mike Frysinger |
Subject: |
[PATCH] m4: replace AC_DIAGNOSE with m4_warn |
Date: |
Sun, 12 Dec 2021 01:07:39 -0500 |
AC_DIAGNOSE was marked obsolete with autoconf-2.62 in 2008.
* m4/obsolete.m4: Change AC_DIAGNOSE to m4_warn.
---
m4/obsolete.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/m4/obsolete.m4 b/m4/obsolete.m4
index 79f3b234bfc5..bf3b68271673 100644
--- a/m4/obsolete.m4
+++ b/m4/obsolete.m4
@@ -9,7 +9,7 @@
# with or without modifications, as long as this notice is preserved.
AC_DEFUN([AM_CONFIG_HEADER],
-[AC_DIAGNOSE([obsolete],
+[m4_warn([obsolete],
['$0': this macro is obsolete.
You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
AC_CONFIG_HEADERS($@)])
@@ -17,7 +17,7 @@ AC_CONFIG_HEADERS($@)])
AC_DEFUN([AM_PROG_CC_STDC],
[AC_PROG_CC
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
-AC_DIAGNOSE([obsolete],
+m4_warn([obsolete],
['$0': this macro is obsolete.
You should simply use the 'AC][_PROG_CC' macro instead.
Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
--
2.33.0
- [PATCH] m4: replace AC_DIAGNOSE with m4_warn,
Mike Frysinger <=