Add sys_select module.
[gnulib.git] / m4 / sys_select_h.m4
1 # sys_select_h.m4 serial 1
2 dnl Copyright (C) 2006 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 dnl Adapted from arpa_inet.m4, written by Simon Josefsson.
8
9 AC_DEFUN([gl_HEADER_SYS_SELECT],
10 [
11   AC_CHECK_HEADERS_ONCE([sys/select.h])
12   if test $ac_cv_header_sys_select_h = yes; then
13     SYS_SELECT_H=''
14   else
15     SYS_SELECT_H='sys/select.h'
16   fi
17   AC_SUBST(SYS_SELECT_H)
18 ])