summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2008-09-26 15:26:42 +0200
committerJulien Danjou <julien@danjou.info>2008-10-14 20:38:47 +0200
commitcebd482a20fcc2b2dae0683c38e917a3740638a6 (patch)
treec8f42e44210d175db2948422812df987ace53576 /configure.ac
parent625ed596cae6dd8175aeb6cb6f26784928042f22 (diff)
allow compile-time setting for XCB queue buffer size
Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c3d3595..62c20be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,16 @@ linux*)
;;
esac
+dnl define buffer queue size
+xcb_queue_buffer_size=16384
+AC_DEFINE(XCB_QUEUE_BUFFER_SIZE, $xcb_queue_buffer_size, [XCB buffer queue size])
+AC_ARG_WITH(queue-size,
+ AC_HELP_STRING([--with-queue-size=SIZE],
+ [Set the XCB buffer queue size (default is 16384)]),
+ [AC_DEFINE_UNQUOTED(XCB_QUEUE_BUFFER_SIZE, $withval, [XCB buffer queue size]),
+ xcb_queue_buffer_size=$withval],
+ )
+
dnl check for the sockaddr_un.sun_len member
AC_CHECK_MEMBER([struct sockaddr_un.sun_len],
[AC_DEFINE(HAVE_SOCKADDR_SUN_LEN,1,[Have the sockaddr_un.sun_len member.])],
@@ -181,6 +191,7 @@ echo ""
echo " Configuration"
echo " XDM support.........: ${have_xdmcp}"
echo " Build unit tests....: ${HAVE_CHECK}"
+echo " XCB buffer size.....: ${xcb_queue_buffer_size}"
echo ""
echo " Used CFLAGS:"
echo " CPPFLAGS............: ${CPPFLAGS}"