Debian Codegraph @

m4/raise.m4

raw
1 # raise.m4
2 # serial 4
3 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7 dnl This file is offered as-is, without any warranty.
8
9 AC_DEFUN([gl_FUNC_RAISE],
10 [
11 AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
12 AC_REQUIRE([AC_CANONICAL_HOST])
13 AC_CHECK_FUNCS([raise])
14 if test $ac_cv_func_raise = no; then
15 HAVE_RAISE=0
16 else
17 m4_ifdef([gl_MSVC_INVAL], [
18 AC_REQUIRE([gl_MSVC_INVAL])
19 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20 REPLACE_RAISE=1
21 fi
22 ])
23 m4_ifdef([gl_SIGNALBLOCKING], [
24 gl_SIGNALBLOCKING
25 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
26 m4_ifdef([gl_SIGNAL_SIGPIPE], [
27 gl_SIGNAL_SIGPIPE
28 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
29 REPLACE_RAISE=1
30 fi
31 ], [:])
32 fi
33 ])
34 fi
35 ])
36
37 # Prerequisites of lib/raise.c.
38 AC_DEFUN([gl_PREREQ_RAISE], [:])