From: Jakub Narebski Date: Fri, 25 Jan 2008 11:19:41 +0000 (+0100) Subject: autoconf: define NO_SYS_SELECT_H on systems without . X-Git-Tag: v1.5.4-rc5~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3cf3237400f70329525d1085021910b4b76f8670;p=git.git autoconf: define NO_SYS_SELECT_H on systems without . Pre-POSIX.1-2001 systems don't have , but select(2) is declared in , which git-compat-util.h includes. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/config.mak.in b/config.mak.in index 40b14d985..ee6c33df0 100644 --- a/config.mak.in +++ b/config.mak.in @@ -30,6 +30,7 @@ NO_CURL=@NO_CURL@ NO_EXPAT=@NO_EXPAT@ NEEDS_LIBICONV=@NEEDS_LIBICONV@ NEEDS_SOCKET=@NEEDS_SOCKET@ +NO_SYS_SELECT_H=@NO_SYS_SELECT_H@ NO_D_INO_IN_DIRENT=@NO_D_INO_IN_DIRENT@ NO_D_TYPE_IN_DIRENT=@NO_D_TYPE_IN_DIRENT@ NO_SOCKADDR_STORAGE=@NO_SOCKADDR_STORAGE@ diff --git a/configure.ac b/configure.ac index af177fdb4..85d7ef570 100644 --- a/configure.ac +++ b/configure.ac @@ -235,6 +235,12 @@ test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket" ## Checks for header files. AC_MSG_NOTICE([CHECKS for header files]) # +# Define NO_SYS_SELECT_H if you don't have sys/select.h. +AC_CHECK_HEADER([sys/select.h], +[NO_SYS_SELECT_H=], +[NO_SYS_SELECT_H=UnfortunatelyYes]) +AC_SUBST(NO_SYS_SELECT_H) +# # Define OLD_ICONV if your library has an old iconv(), where the second # (input buffer pointer) parameter is declared with type (const char **). AC_DEFUN([OLDICONVTEST_SRC], [[