summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-07-27 22:37:02 +0000
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-07-27 22:37:02 +0000
commitac5184384d6347ea97da5cc7f85e9687ff060641 (patch)
tree41b2b191557f0bf427631064266ad0cbd05472bc /configure.ac
parentb92f8751058bf2bc94967b84f71c4c88a5f007df (diff)
Add XPROTO_CFLAGS to XDM_CFLAGS and CHOOSER_CFLAGS, also add _BSD_SOURCE to
CHOOSER_FLAGS
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e5c10b3..527c17a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,9 +67,11 @@ AM_CONDITIONAL(HAS_ARC4_RANDOM, false)
XAW_CHECK_XPRINT_SUPPORT(XDM)
PKG_CHECK_MODULES(DMCP, xdmcp)
-XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS"
+PKG_CHECK_MODULES(XPROTO, xproto)
+XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XPROTO_CFLAGS"
XDM_LIBS="$XDM_LIBS $DMCP_LIBS"
+
AC_CHECK_LIB(Xdmcp, XdmcpWrap, [xdmauth="yes"], [xdmauth="no"], [$DMCP_LIBS])
AC_SEARCH_LIBS(crypt, crypt)
@@ -84,6 +86,7 @@ AC_SUBST(XDM_LIBS)
#
XAW_CHECK_XPRINT_SUPPORT(CHOOSER)
+CHOOSER_CFLAGS="-D_BSD_SOURCE $XPROTO_CFLAGS"
CHOOSER_LIBS="$CHOOSER_LIBS $DMCP_LIBS"
AC_SUBST(CHOOSER_CFLAGS)