Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] autoconf: Add test for sys/select.h header file

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:08

Hi,

On Fri, 25 Jan 2008, Jakub Narebski wrote:
quoted hunk ↗ jump to hunk
diff --git a/configure.ac b/configure.ac
index af177fd..85d7ef5 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)
+#
Just because I am curious: would that not define "NO_SYS_SELECT_H" in both 
cases?  IOW would the "ifdef NO_SYS_SELECT_H" not be triggered all the 
time?

Thanks,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help