Use an all-permissive copyright notice, recommended by RMS.
[gnulib.git] / m4 / poll.m4
1 # poll.m4 serial 3
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.
6
7 AC_DEFUN([gl_FUNC_POLL],
8 [
9   AC_CHECK_HEADERS(poll.h)
10   if test "$ac_cv_header_poll_h" = no; then
11     POLL_H=poll.h
12   else
13     POLL_H=
14   fi
15   AC_SUBST([POLL_H])
16
17   AC_REPLACE_FUNCS(poll)
18   if test $ac_cv_func_poll = no; then
19     gl_PREREQ_POLL
20   fi
21 ])
22
23 # Prerequisites of lib/poll.c.
24 AC_DEFUN([gl_PREREQ_POLL],
25 [
26   AC_REQUIRE([AC_HEADER_TIME])
27   AC_CHECK_HEADERS_ONCE(sys/time.h)
28 ])