aboutsummaryrefslogtreecommitdiffstats
path: root/m4/sig2str.m4
blob: 709dd958f9794475bbf541be57d4de09b5892ad9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# sig2str.m4
# serial 9
dnl Copyright (C) 2002, 2005-2006, 2009-2026 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.

AC_DEFUN([gl_FUNC_SIG2STR],
[
  AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
  gl_CHECK_FUNCS_ANDROID([sig2str], [[#include <signal.h>]])
  gl_CHECK_FUNCS_ANDROID([str2sig], [[#include <signal.h>]])
  if test $ac_cv_func_sig2str = no; then
    HAVE_SIG2STR=0
  fi
  if test $ac_cv_func_str2sig = no; then
    HAVE_STR2SIG=0
  fi
])

# Prerequisites of lib/sig2str.c.
AC_DEFUN([gl_PREREQ_SIG2STR], [
  :
])