File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libiconv / srcm4 / sigpipe.m4
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 13:38:46 2021 UTC (3 years, 9 months ago) by misho
Branches: libiconv, MAIN
CVS tags: v1_16p0, HEAD
libiconv 1.16

    1: # sigpipe.m4 serial 2
    2: dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
    3: dnl This file is free software; the Free Software Foundation
    4: dnl gives unlimited permission to copy and/or distribute it,
    5: dnl with or without modifications, as long as this notice is preserved.
    6: 
    7: dnl Tests whether SIGPIPE is provided by <signal.h>.
    8: dnl Sets gl_cv_header_signal_h_SIGPIPE.
    9: AC_DEFUN([gl_SIGNAL_SIGPIPE],
   10: [
   11:   dnl Use AC_REQUIRE here, so that the default behavior below is expanded
   12:   dnl once only, before all statements that occur in other macros.
   13:   AC_REQUIRE([gl_SIGNAL_SIGPIPE_BODY])
   14: ])
   15: 
   16: AC_DEFUN([gl_SIGNAL_SIGPIPE_BODY],
   17: [
   18:   AC_REQUIRE([AC_PROG_CC])
   19:   AC_CACHE_CHECK([for SIGPIPE], [gl_cv_header_signal_h_SIGPIPE], [
   20:     AC_EGREP_CPP([booboo],[
   21: #include <signal.h>
   22: #if !defined SIGPIPE
   23: booboo
   24: #endif
   25:       ],
   26:       [gl_cv_header_signal_h_SIGPIPE=no],
   27:       [gl_cv_header_signal_h_SIGPIPE=yes])
   28:   ])
   29: ])

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>