summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-11-22 20:29:04 -0800
committerJamey Sharp <jamey@minilop.net>2006-11-22 20:29:04 -0800
commite54dfd73a9652bbc103f3f874abc303aed4b5d76 (patch)
tree13b65dcb0933e668c5a3eed319fe01825403f156 /configure.ac
parent3de6ab7b786775d9e7df1523c27cdfe3ffd3a25f (diff)
Use pthread-stubs as needed, and list xdmcp in Requires.private when XCB is built to use it.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a831f34..fa49f9a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,12 +31,14 @@ AC_SUBST(HTML_CHECK_RESULT)
# Checks for pkg-config packages
PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 0.9.93)
-PKG_CHECK_MODULES(XAU, xau)
+NEEDED="xau pthread-stubs"
+PKG_CHECK_MODULES(NEEDED, $NEEDED)
PKG_CHECK_MODULES(XDMCP, xdmcp,
AC_CHECK_LIB(Xdmcp, XdmcpWrap,
[
AC_DEFINE(HASXDMAUTH,1,[Has Wraphelp.c needed for XDM AUTH protocols])
+ NEEDED="$NEEDED xdmcp"
],
[
XDMCP_CFLAGS=
@@ -44,6 +46,8 @@ PKG_CHECK_MODULES(XDMCP, xdmcp,
], [$XDMCP_LIBS]),
[AC_MSG_RESULT(no)])
+AC_SUBST(NEEDED)
+
# Find the xcb-proto protocol descriptions
AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR)
XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`