annotate m4/sigaction.m4 @ 10245:18a5b4f796a2

Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
author Bruno Haible <bruno@clisp.org>
date Mon, 23 Jun 2008 22:45:30 +0200
parents f3834f370cbd
children a6493a165dd2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10245
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10243
diff changeset
1 # sigaction.m4 serial 3
10229
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
2 dnl Copyright (C) 2008 Free Software Foundation, Inc.
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
6
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
7 # Determine if sigaction interface is present.
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
8 AC_DEFUN([gl_SIGACTION],
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
9 [
10234
82d7fa700d94 Require gl_SIGNAL_H_DEFAULTS.
Bruno Haible <bruno@clisp.org>
parents: 10233
diff changeset
10 AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
10229
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
11 AC_REPLACE_FUNCS([sigaction])
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
12 if test $ac_cv_func_sigaction = no ; then
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
13 HAVE_SIGACTION=0
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
14 AC_SUBST([HAVE_SIGACTION])
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
15 gl_PREREQ_SIGACTION
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
16 fi
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
17 ])
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
18
10233
5c92e27f02d2 Require AC_C_INLINE.
Bruno Haible <bruno@clisp.org>
parents: 10229
diff changeset
19 # Prerequisites of the part of lib/signal.in.h and of lib/sigaction.c.
10229
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
20 AC_DEFUN([gl_PREREQ_SIGACTION],
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
21 [
10233
5c92e27f02d2 Require AC_C_INLINE.
Bruno Haible <bruno@clisp.org>
parents: 10229
diff changeset
22 AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
10229
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
23 AC_REQUIRE([AC_C_RESTRICT])
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
24 AC_REQUIRE([AC_TYPE_UID_T])
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
25 AC_CHECK_FUNCS_ONCE([sigaltstack siginterrupt])
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
26 AC_CHECK_TYPES([siginfo_t], [], [], [[
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
27 #include <signal.h>
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
28 ]])
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
29 if test $ac_cv_type_siginfo_t = no; then
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
30 HAVE_SIGINFO_T=0
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
31 AC_SUBST([HAVE_SIGINFO_T])
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
32 fi
29502a2dd08a New module sigaction, for mingw.
Eric Blake <ebb9@byu.net>
parents:
diff changeset
33 ])
10245
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10243
diff changeset
34
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10243
diff changeset
35 # Prerequisites of lib/sig-handler.h.
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10243
diff changeset
36 AC_DEFUN([gl_PREREQ_SIG_HANDLER_H],
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10243
diff changeset
37 [
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10243
diff changeset
38 AC_REQUIRE([AC_C_INLINE])
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10243
diff changeset
39 :
18a5b4f796a2 Update after lib/sig-handler.h is no longer included by lib/sigprocmask.c.
Bruno Haible <bruno@clisp.org>
parents: 10243
diff changeset
40 ])