Unverified Commit 05cb09a5 authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'uli42-pr/libNX_X11_defines' into 3.6.x

parents d121f2a9 1215c36f
...@@ -166,3 +166,14 @@ AC_DEFUN([NX_XTRANS_SECURE_RPC_FLAGS], ...@@ -166,3 +166,14 @@ AC_DEFUN([NX_XTRANS_SECURE_RPC_FLAGS],
fi fi
AC_MSG_RESULT($SECURE_RPC) AC_MSG_RESULT($SECURE_RPC)
]) # NX_XTRANS_SECURE_RPC_FLAGS ]) # NX_XTRANS_SECURE_RPC_FLAGS
# the following originates from libxtrans/configure.ac
# sticky bit
#
# if any system exists without sticky dir bits this
# needs to be redone with a real autoconf test
sticky_bit_define="-DHAS_STICKY_DIR_BIT"
AC_SUBST(sticky_bit_define)
...@@ -42,6 +42,19 @@ PKG_PROG_PKG_CONFIG ...@@ -42,6 +42,19 @@ PKG_PROG_PKG_CONFIG
X11_REQUIRES='nx-xproto nx-xextproto nx-xtrans' X11_REQUIRES='nx-xproto nx-xextproto nx-xtrans'
X11_EXTRA_DEPS="" X11_EXTRA_DEPS=""
X11_REQUIRES="${X11_REQUIRES} xau xcmiscproto bigreqsproto"
X11_EXTRA_DEPS="xau"
PKG_CHECK_MODULES(XDMCP, xdmcp,
AC_CHECK_LIB(Xdmcp, XdmcpWrap,
[
AC_CHECK_LIB(Xdmcp, XdmcpWrap, [xdmauth="yes"], [xdmauth="no"], [$XDMCP_LIBS])
X11_EXTRA_DEPS="$X11_EXTRA_DEPS xdmcp"
],
[
XDMCP_CFLAGS=
XDMCP_LIBS=
], [$XDMCP_LIBS]),
[AC_MSG_RESULT(no)])
AC_SUBST(X11_EXTRA_DEPS) AC_SUBST(X11_EXTRA_DEPS)
# Silence warning: ar: 'u' modifier ignored since 'D' is the default # Silence warning: ar: 'u' modifier ignored since 'D' is the default
...@@ -54,6 +67,25 @@ m4_pattern_forbid([^NX_XTRANS_CONNECTION_FLAGS$]) ...@@ -54,6 +67,25 @@ m4_pattern_forbid([^NX_XTRANS_CONNECTION_FLAGS$])
# Transport selection macro from nx-xtrans.m4 # Transport selection macro from nx-xtrans.m4
NX_XTRANS_CONNECTION_FLAGS NX_XTRANS_CONNECTION_FLAGS
# Secure RPC detection macro from xtrans.m4
NX_XTRANS_SECURE_RPC_FLAGS
# Original comments regarding FAIL_HARD from libxtrans:
# "fail hard if socket directories cannot be chowned to root or
# chmod'ed to the requested mode if 'sticky' bit is requested for this
# directory instead of just print a warning that will remain unnoticed
# most of the times.
# Set the define XtransFailSoft to restore the old
# behavior to fail softly when socket directory cannot chowned/chmod
# to correct user/group."
#
# -> we want to always fail in that scenario.
AC_DEFINE(FAIL_HARD,1,[Fail if the xtrans socket directory cannot be chowned/chmod'ed])
# Actually disable all of the FD passing code, NX does not support it.
AC_DEFINE(XTRANS_SEND_FDS,0,[Disable xtrans FD passing code.])
# Check for dlopen # Check for dlopen
AC_MSG_CHECKING([if run-time linking is supported]) AC_MSG_CHECKING([if run-time linking is supported])
AC_SEARCH_LIBS(dlopen,[dl svld]) AC_SEARCH_LIBS(dlopen,[dl svld])
...@@ -156,6 +188,17 @@ fi ...@@ -156,6 +188,17 @@ fi
AC_SUBST(XTHREADLIB) AC_SUBST(XTHREADLIB)
AC_SUBST(XTHREAD_CFLAGS) AC_SUBST(XTHREAD_CFLAGS)
case x$xdmauth in
xyes)
XDMCP_CFLAGS="$XDMCP_CFLAGS -DHASXDMAUTH"
;;
xno)
XDMCP_LIBS=""
;;
esac
AC_SUBST(XDMCP_CFLAGS)
AC_SUBST(XDMCP_LIBS)
AC_CHECK_FUNC(poll, [has_poll="yes"], [has_poll="no"]) AC_CHECK_FUNC(poll, [has_poll="yes"], [has_poll="no"])
AC_ARG_ENABLE([poll], AC_ARG_ENABLE([poll],
......
...@@ -28,6 +28,7 @@ AM_CPPFLAGS= \ ...@@ -28,6 +28,7 @@ AM_CPPFLAGS= \
AM_CFLAGS= \ AM_CFLAGS= \
$(X11_CFLAGS) \ $(X11_CFLAGS) \
$(BIGFONT_CFLAGS) \ $(BIGFONT_CFLAGS) \
$(XDMCP_CFLAGS) \
$(XMALLOC_ZERO_CFLAGS) \ $(XMALLOC_ZERO_CFLAGS) \
$(CWARNFLAGS) \ $(CWARNFLAGS) \
$(NULL) $(NULL)
...@@ -364,6 +365,7 @@ libNX_X11_la_LIBADD = \ ...@@ -364,6 +365,7 @@ libNX_X11_la_LIBADD = \
$(USE_XCMS_LIBS) \ $(USE_XCMS_LIBS) \
$(USE_XKB_LIBS) \ $(USE_XKB_LIBS) \
$(X11_LIBS) \ $(X11_LIBS) \
$(XDMCP_LIBS) \
-L$(top_srcdir)/../../nxcomp/src/.libs -lXcomp \ -L$(top_srcdir)/../../nxcomp/src/.libs -lXcomp \
$(NULL) $(NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment