about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 12 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 92434ec7..f3dbd727 100644
--- a/configure.in
+++ b/configure.in
@@ -252,13 +252,22 @@ AC_ARG_WITH(poll,
 				CPPFLAGS="-I$withval/include $CPPFLAGS"
 				LDFLAGS="-L$withval/lib $LDFLAGS"
 			fi
-			AC_CHECK_FUNCS(poll, x_io_backend=poll\(\),
-				AC_MSG_ERROR([Can't enable poll IO support!])
+			AC_CHECK_FUNCS(poll,
+				AC_CHECK_HEADERS(poll.h,
+					x_io_backend=poll\(\),
+						AC_MSG_ERROR(
+						[Can't enable poll IO support!])
+					,
+					AC_MSG_ERROR(
+						[Can't enable poll IO support!])
+				)
 			)
 		fi
 	],
 	[
-		AC_CHECK_FUNCS(poll, x_io_backend=poll\(\))
+		AC_CHECK_FUNCS(poll,
+			AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\))
+		)
 	]
 )