about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2011-12-05 00:19:32 +0100
committerAlexander Barton <alex@barton.de>2011-12-05 00:20:27 +0100
commitee21490887690a4c1dcdd7aafd3ffc745c2ca0ca (patch)
tree2d9e7372698f9a812a90a45106c763f396741ec4 /configure.in
parent8fa92f0a24bb97a972ef82b8fa057d737c9f55b7 (diff)
downloadngircd-ee21490887690a4c1dcdd7aafd3ffc745c2ca0ca.tar.gz
ngircd-ee21490887690a4c1dcdd7aafd3ffc745c2ca0ca.zip
./configure: Fix logic and quoting of poll() detection code
This fixes commit 8e193df ...
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 7 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index f3dbd727..d2241f63 100644
--- a/configure.in
+++ b/configure.in
@@ -252,22 +252,21 @@ AC_ARG_WITH(poll,
 				CPPFLAGS="-I$withval/include $CPPFLAGS"
 				LDFLAGS="-L$withval/lib $LDFLAGS"
 			fi
-			AC_CHECK_FUNCS(poll,
+			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!])
+					     [Can't enable poll IO support!])
 				)
-			)
+			], [
+				AC_MSG_ERROR([Can't enable poll IO support!])
+			])
 		fi
 	],
 	[
-		AC_CHECK_FUNCS(poll,
+		AC_CHECK_FUNCS(poll, [
 			AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\))
-		)
+		])
 	]
 )