Debian Codegraph @

m4/sigpipe.m4

raw
1 # sigpipe.m4
2 # serial 3
3 dnl Copyright (C) 2008-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 dnl Tests whether SIGPIPE is provided by <signal.h>.
10 dnl Sets gl_cv_header_signal_h_SIGPIPE.
11 AC_DEFUN([gl_SIGNAL_SIGPIPE],
12 [
13 dnl Ensure to expand the default settings once only, before all statements
14 dnl that occur in other macros.
15 AC_REQUIRE([gl_SIGNAL_SIGPIPE_BODY])
16 ])
17
18 AC_DEFUN([gl_SIGNAL_SIGPIPE_BODY],
19 [
20 AC_REQUIRE([AC_PROG_CC])
21 AC_CACHE_CHECK([for SIGPIPE], [gl_cv_header_signal_h_SIGPIPE], [
22 AC_EGREP_CPP([booboo],[
23 #include <signal.h>
24 #if !defined SIGPIPE
25 booboo
26 #endif
27 ],
28 [gl_cv_header_signal_h_SIGPIPE=no],
29 [gl_cv_header_signal_h_SIGPIPE=yes])
30 ])
31 ])