Mercurial > hg > octave-kai > gnulib-hg
annotate m4/signalblocking.m4 @ 6479:913b40e88d1a
Update
author | Sergey Poznyakoff <gray@gnu.org.ua> |
---|---|
date | Fri, 09 Dec 2005 12:34:04 +0000 |
parents | adff74659d81 |
children | a55a9e67f244 |
rev | line source |
---|---|
4770 | 1 # signalblocking.m4 serial 1 (gettext-0.11) |
2 dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. | |
5585
adff74659d81
Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
adff74659d81
Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
adff74659d81
Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents:
4770
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
4770 | 6 |
7 # Determine available signal blocking primitives. Three different APIs exist: | |
8 # 1) POSIX: sigemptyset, sigaddset, sigprocmask | |
9 # 2) SYSV: sighold, sigrelse | |
10 # 3) BSD: sigblock, sigsetmask | |
11 # For simplicity, here we check only for the POSIX signal blocking. | |
12 AC_DEFUN([gt_SIGNALBLOCKING], | |
13 [ | |
14 signals_not_posix= | |
15 AC_EGREP_HEADER(sigset_t, signal.h, , signals_not_posix=1) | |
16 if test -z "$signals_not_posix"; then | |
17 AC_CHECK_FUNC(sigprocmask, | |
18 AC_DEFINE(HAVE_POSIX_SIGNALBLOCKING, 1, | |
19 [Define to 1 if you have the sigset_t type and the sigprocmask function.])) | |
20 fi | |
21 ]) |