Blame m4/sys_wait_h.m4

Packit Service fdd496
# sys_wait_h.m4 serial 6
Packit Service fdd496
dnl Copyright (C) 2008-2017 Free Software Foundation, Inc.
Packit Service fdd496
dnl This file is free software; the Free Software Foundation
Packit Service fdd496
dnl gives unlimited permission to copy and/or distribute it,
Packit Service fdd496
dnl with or without modifications, as long as this notice is preserved.
Packit Service fdd496
Packit Service fdd496
AC_DEFUN([gl_SYS_WAIT_H],
Packit Service fdd496
[
Packit Service fdd496
  AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
Packit Service fdd496
Packit Service fdd496
  dnl <sys/wait.h> is always overridden, because of GNULIB_POSIXCHECK.
Packit Service fdd496
  gl_CHECK_NEXT_HEADERS([sys/wait.h])
Packit Service fdd496
Packit Service fdd496
  dnl Ensure the type pid_t gets defined.
Packit Service fdd496
  AC_REQUIRE([AC_TYPE_PID_T])
Packit Service fdd496
Packit Service fdd496
  dnl Check for declarations of anything we want to poison if the
Packit Service fdd496
  dnl corresponding gnulib module is not in use.
Packit Service fdd496
  gl_WARN_ON_USE_PREPARE([[#include <sys/wait.h>]],
Packit Service fdd496
    [waitpid])
Packit Service fdd496
])
Packit Service fdd496
Packit Service fdd496
AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR],
Packit Service fdd496
[
Packit Service fdd496
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
Packit Service fdd496
  AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS])
Packit Service fdd496
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
Packit Service fdd496
  dnl Define it also as a C macro, for the benefit of the unit tests.
Packit Service fdd496
  gl_MODULE_INDICATOR_FOR_TESTS([$1])
Packit Service fdd496
])
Packit Service fdd496
Packit Service fdd496
AC_DEFUN([gl_SYS_WAIT_H_DEFAULTS],
Packit Service fdd496
[
Packit Service fdd496
  GNULIB_WAITPID=0; AC_SUBST([GNULIB_WAITPID])
Packit Service fdd496
  dnl Assume proper GNU behavior unless another module says otherwise.
Packit Service fdd496
])