Blame gettext-tools/gnulib-m4/pipe2.m4
|
Packit |
5b56b6 |
# pipe2.m4 serial 2
|
|
Packit |
5b56b6 |
dnl Copyright (C) 2009-2015 Free Software Foundation, Inc.
|
|
Packit |
5b56b6 |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
5b56b6 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
5b56b6 |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
5b56b6 |
|
|
Packit |
5b56b6 |
AC_DEFUN([gl_FUNC_PIPE2],
|
|
Packit |
5b56b6 |
[
|
|
Packit |
5b56b6 |
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
Packit |
5b56b6 |
|
|
Packit |
5b56b6 |
dnl Persuade glibc <unistd.h> to declare pipe2().
|
|
Packit |
5b56b6 |
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
|
|
Packit |
5b56b6 |
|
|
Packit |
5b56b6 |
AC_CHECK_FUNCS_ONCE([pipe2])
|
|
Packit |
5b56b6 |
if test $ac_cv_func_pipe2 != yes; then
|
|
Packit |
5b56b6 |
HAVE_PIPE2=0
|
|
Packit |
5b56b6 |
fi
|
|
Packit |
5b56b6 |
])
|