- AC_CHECK_HEADERS_ONCE(unistd.h)
- AC_REQUIRE([AC_FUNC_FORK])
- AC_CHECK_FUNC([posix_spawn],
- [gl_POSIX_SPAWN_WORKS
- case "$gl_cv_func_posix_spawn_works" in
- *yes)
- AC_DEFINE([HAVE_POSIX_SPAWN], 1,
- [Define if you have the posix_spawn() function and it works.])
- ;;
- esac
- ])