Eric Blake wrote: > I named the helper file sig-handler.h. Since it uses 'inline', it needs AC_C_INLINE.
2008-06-22 Bruno Haible <[EMAIL PROTECTED]> * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro. (gl_PREREQ_SIGPROCMASK): Invoke it. * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise. *** m4/sigaction.m4.orig 2008-06-22 21:40:53.000000000 +0200 --- m4/sigaction.m4 2008-06-22 21:40:46.000000000 +0200 *************** *** 1,4 **** ! # sigaction.m4 serial 1 dnl Copyright (C) 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, --- 1,4 ---- ! # sigaction.m4 serial 2 dnl Copyright (C) 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, *************** *** 18,29 **** fi ]) ! # Prerequisites of the part of lib/signal.in.h and of lib/sigprocmask.c. AC_DEFUN([gl_PREREQ_SIGACTION], [ AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([AC_TYPE_UID_T]) - AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([sigaltstack siginterrupt]) AC_CHECK_TYPES([siginfo_t], [], [], [[ #include <signal.h> --- 18,29 ---- fi ]) ! # Prerequisites of the part of lib/signal.in.h and of lib/sigaction.c. AC_DEFUN([gl_PREREQ_SIGACTION], [ + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([AC_TYPE_UID_T]) AC_CHECK_FUNCS_ONCE([sigaltstack siginterrupt]) AC_CHECK_TYPES([siginfo_t], [], [], [[ #include <signal.h> *************** *** 32,35 **** --- 32,36 ---- HAVE_SIGINFO_T=0 AC_SUBST([HAVE_SIGINFO_T]) fi + gl_PREREQ_SIG_HANDLER_H ]) *** m4/signalblocking.m4.orig 2008-06-22 21:40:53.000000000 +0200 --- m4/signalblocking.m4 2008-06-22 21:40:46.000000000 +0200 *************** *** 1,4 **** ! # signalblocking.m4 serial 7 dnl Copyright (C) 2001-2002, 2006-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, --- 1,4 ---- ! # signalblocking.m4 serial 8 dnl Copyright (C) 2001-2002, 2006-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, *************** *** 39,42 **** --- 39,50 ---- dnl HAVE_SIGSET_T is 1 if the system lacks the sigprocmask function but has dnl the sigset_t type. AC_SUBST([HAVE_SIGSET_T]) + gl_PREREQ_SIG_HANDLER_H + ]) + + # Prerequisites of lib/sig-handler.h. + AC_DEFUN([gl_PREREQ_SIG_HANDLER_H], + [ + AC_REQUIRE([AC_C_INLINE]) + : ])