about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-12-28 21:39:06 +0000
committerAlexander Barton <alex@barton.de>2002-12-28 21:39:06 +0000
commit214842853c68cbe42d6d426f276d422cb8b3710c (patch)
tree2ebcbb7203765e5bd636f96b79a6386e034c0c21
parentcf6b9e3ec11197a6d9053bcc3ff412af43c1427a (diff)
downloadngircd-214842853c68cbe42d6d426f276d422cb8b3710c.tar.gz
ngircd-214842853c68cbe42d6d426f276d422cb8b3710c.zip
- Optimized tests for <sys/select.h> and <sys/poll.h>.
-rw-r--r--configure.in12
1 files changed, 5 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 08da96b9..608f5047 100644
--- a/configure.in
+++ b/configure.in
@@ -9,7 +9,7 @@
 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
 # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
 #
-# $Id: configure.in,v 1.73 2002/12/28 15:17:46 alex Exp $
+# $Id: configure.in,v 1.74 2002/12/28 21:39:06 alex Exp $
 #
 
 # -- Initialisierung --
@@ -81,9 +81,7 @@ AC_CHECK_HEADERS([ \
 	strings.h sys/socket.h sys/time.h unistd.h \
 	],,AC_MSG_ERROR([required C header missing!]))
 
-AC_CHECK_HEADERS([ \
-	arpa/inet.h ctype.h malloc.h stdint.h sys/select.h sys/poll.h \
-	varargs.h])
+AC_CHECK_HEADERS([arpa/inet.h ctype.h malloc.h stdint.h varargs.h])
 
 # -- Datentypen --
 
@@ -125,9 +123,9 @@ AC_CHECK_FUNCS([ \
 
 AC_CHECK_FUNCS(inet_aton isdigit sigaction snprintf vsnprintf strlcpy strlcat)
 
-AC_CHECK_FUNCS(poll,,
-	[AC_CHECK_FUNCS(select,,
-		AC_MSG_ERROR([neither poll() nor select() is supported!]))
+AC_CHECK_FUNCS(poll,AC_CHECK_HEADER([sys/poll.h]),
+	[AC_CHECK_FUNCS(select,AC_CHECK_HEADER([sys/select.h]),
+		AC_MSG_ERROR([neither poll() nor select() is available!]))
 	]
 )