VirtualBox

source: kBuild/trunk/src/grep/m4/sigaction.m4

Last change on this file was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

  • Property svn:eol-style set to LF
File size: 1.2 KB
Line 
1# sigaction.m4 serial 7
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7# Determine if sigaction interface is present.
8AC_DEFUN([gl_SIGACTION],
9[
10 AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
11 AC_CHECK_FUNCS_ONCE([sigaction])
12 if test $ac_cv_func_sigaction = yes; then
13 AC_CHECK_MEMBERS([struct sigaction.sa_sigaction], , ,
14 [[#include <signal.h>]])
15 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
16 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
17 fi
18 else
19 HAVE_SIGACTION=0
20 fi
21])
22
23# Prerequisites of the part of lib/signal.in.h and of lib/sigaction.c.
24AC_DEFUN([gl_PREREQ_SIGACTION],
25[
26 AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
27 AC_REQUIRE([AC_C_RESTRICT])
28 AC_REQUIRE([AC_TYPE_UID_T])
29 AC_REQUIRE([gl_PREREQ_SIG_HANDLER_H])
30 AC_CHECK_FUNCS_ONCE([sigaltstack siginterrupt])
31 AC_CHECK_TYPES([siginfo_t], [], [], [[
32#include <signal.h>
33 ]])
34 if test $ac_cv_type_siginfo_t = no; then
35 HAVE_SIGINFO_T=0
36 fi
37])
38
39# Prerequisites of lib/sig-handler.h.
40AC_DEFUN([gl_PREREQ_SIG_HANDLER_H], [:])
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette