Mercurial > hg > octave-kai > gnulib-hg
changeset 10233:5c92e27f02d2
Require AC_C_INLINE.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 22 Jun 2008 21:43:15 +0200 |
parents | 7faa680288e0 |
children | 82d7fa700d94 |
files | ChangeLog m4/sigaction.m4 m4/signalblocking.m4 |
diffstat | 3 files changed, 17 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-06-22 Bruno Haible <bruno@clisp.org> + * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro. + (gl_PREREQ_SIGPROCMASK): Invoke it. + * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise. + * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed. * lib/sigprocmask.c: Update a comment.
--- a/m4/sigaction.m4 +++ b/m4/sigaction.m4 @@ -1,4 +1,4 @@ -# sigaction.m4 serial 1 +# 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,12 +18,12 @@ fi ]) -# Prerequisites of the part of lib/signal.in.h and of lib/sigprocmask.c. +# 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_REQUIRE([gl_SIGNAL_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([sigaltstack siginterrupt]) AC_CHECK_TYPES([siginfo_t], [], [], [[ #include <signal.h> @@ -32,4 +32,5 @@ HAVE_SIGINFO_T=0 AC_SUBST([HAVE_SIGINFO_T]) fi + gl_PREREQ_SIG_HANDLER_H ])
--- a/m4/signalblocking.m4 +++ b/m4/signalblocking.m4 @@ -1,4 +1,4 @@ -# signalblocking.m4 serial 7 +# 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,4 +39,12 @@ 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]) + : +])