]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
authorBruno Haible <bruno@clisp.org>
Sun, 27 Sep 2020 22:49:20 +0000 (00:49 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 27 Sep 2020 22:49:20 +0000 (00:49 +0200)
Reported by Gavin Smith <gavinsmith0123@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.

* m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
ourselves; don't use AC_DECL_SYS_SIGLIST.

ChangeLog
m4/strsignal.m4

index a17008f8a4821b639235869c0b3a1679f4fc62a4..f57bdaf1607169b57fcec06b7500b19d00ed4a87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-09-27  Bruno Haible  <bruno@clisp.org>
+
+       Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
+       Reported by Gavin Smith <gavinsmith0123@gmail.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
+       * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
+       ourselves; don't use AC_DECL_SYS_SIGLIST.
+
 2020-09-27  Bruno Haible  <bruno@clisp.org>
 
        Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
index e8451fc78631b475b089217220ed0eb2c7286a85..0b7a59bea723802a60152d9d489f9b39026d4a63 100644 (file)
@@ -1,4 +1,4 @@
-# strsignal.m4 serial 8
+# strsignal.m4 serial 9
 dnl Copyright (C) 2008-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,6 +54,6 @@ AC_DEFUN([gl_FUNC_STRSIGNAL],
 # Prerequisites of lib/strsignal.c.
 AC_DEFUN([gl_PREREQ_STRSIGNAL], [
   AC_CHECK_HEADERS_ONCE([unistd.h])
-  AC_REQUIRE([AC_DECL_SYS_SIGLIST])
+  AC_CHECK_DECLS([sys_siglist], [], [], [[#include <signal.h>]])
   AC_CHECK_DECLS([_sys_siglist], [], [], [[#include <signal.h>]])
 ])