2 dnl Copyright (C) 2004, 2008 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.
9 dnl Prerequisites of lib/pipe.h.
10 AC_CHECK_HEADERS_ONCE(unistd.h)
11 dnl Prerequisites of lib/pipe.c.
12 AC_REQUIRE([AC_C_INLINE])
13 AC_REQUIRE([AC_TYPE_MODE_T])
14 AC_REQUIRE([AC_FUNC_FORK])
15 AC_CHECK_FUNC([posix_spawn],
17 case "$gl_cv_func_posix_spawn_works" in
19 AC_DEFINE([HAVE_POSIX_SPAWN], 1,
20 [Define if you have the posix_spawn() function and it works.])