diff options
Diffstat (limited to 'Build/source/texk/xdvik/m4/xdvi-func-poll.m4')
-rw-r--r-- | Build/source/texk/xdvik/m4/xdvi-func-poll.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/texk/xdvik/m4/xdvi-func-poll.m4 b/Build/source/texk/xdvik/m4/xdvi-func-poll.m4 new file mode 100644 index 00000000000..df70d821428 --- /dev/null +++ b/Build/source/texk/xdvik/m4/xdvi-func-poll.m4 @@ -0,0 +1,15 @@ +dnl ### Check for poll() + +AC_DEFUN([XDVI_FUNC_POLL], +[AC_CACHE_CHECK([for poll.h and poll()], xdvi_cv_func_poll, +[AC_TRY_LINK( +[#include <poll.h> +], [poll((struct pollfd *) 0, 0, 0);], +xdvi_cv_func_poll=yes, xdvi_cv_func_poll=no)]) +if test $xdvi_cv_func_poll = yes; then + AC_DEFINE([HAVE_POLL], 1, [Define if your system has <poll.h> and poll().]) +else + AC_CHECK_HEADERS(sys/select.h select.h) +fi]) + + |