2 dnl Copyright (c) 2003 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.
7 AC_DEFUN([gl_FUNC_POLL],
9 AC_CHECK_HEADERS(poll.h)
10 if test "$ac_cv_header_poll_h" = no; then
17 AC_REPLACE_FUNCS(poll)
18 if test $ac_cv_func_poll = no; then
23 # Prerequisites of lib/poll.c.
24 AC_DEFUN([gl_PREREQ_POLL],
26 AC_REQUIRE([AC_HEADER_TIME])
27 AC_CHECK_HEADERS_ONCE(sys/time.h)