> 2020-07-25 Bruno Haible <br...@clisp.org> > > sigprocmask: Small autoconf macro improvement. > * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the > user to override the value of gl_cv_func_sigprocmask. > * m4/gnulib-common.m4 (gl_SILENT): New macro.
Since two people reported that their use of the Autoconf cache broke through this patch, let me rename the cache variable. I stand by what I wrote in <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00021.html>. Nevertheless, to minimize the number of reports by people who use the Autoconf cache without knowing that it is broken: 2020-08-03 Bruno Haible <br...@clisp.org> sigprocmask: Try to avoid breakage for people who use an Autoconf cache. * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache variable. diff --git a/m4/signalblocking.m4 b/m4/signalblocking.m4 index 0f72dd2..cc0ca86 100644 --- a/m4/signalblocking.m4 +++ b/m4/signalblocking.m4 @@ -1,4 +1,4 @@ -# signalblocking.m4 serial 15 +# signalblocking.m4 serial 16 dnl Copyright (C) 2001-2002, 2006-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, @@ -14,18 +14,18 @@ AC_DEFUN([gl_SIGNALBLOCKING], AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) AC_REQUIRE([gl_CHECK_TYPE_SIGSET_T]) AC_CACHE_CHECK([for sigprocmask], - [gl_cv_func_sigprocmask], + [gl_cv_func_sigprocmask_v16], [if test $gl_cv_type_sigset_t = yes; then gl_SILENT([ AC_CHECK_FUNC([sigprocmask], - [gl_cv_func_sigprocmask=yes], - [gl_cv_func_sigprocmask=no]) + [gl_cv_func_sigprocmask_v16=yes], + [gl_cv_func_sigprocmask_v16=no]) ]) else - gl_cv_func_sigprocmask=no + gl_cv_func_sigprocmask_v16=no fi ]) - if test $gl_cv_func_sigprocmask != yes; then + if test $gl_cv_func_sigprocmask_v16 != yes; then HAVE_POSIX_SIGNALBLOCKING=0 fi ])