summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2005-09-24 00:16:32 +0000
committerAlan Coopersmith <alan.coopersmith@sun.com>2005-09-24 00:16:32 +0000
commita057a66e2041d45198a13a4ece7c07068f76f21b (patch)
tree14dc030007fb50f19088944f98480be16bfe4c81
parent3e920a65a7c376ad63eae2240fd06904d25d18bf (diff)
Add XTHREAD_CFLAGS for platforms that need special defines like
-D_REENTRANT or -D_POSIX_whatever to get re-entrant function definitions. Set XDMCP_LIBS correctly for later libXdmcp tests.
-rw-r--r--ChangeLog9
-rw-r--r--configure.ac8
-rw-r--r--x11.pc.in2
3 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b03078..05e12ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-09-21 Alan Coopersmith <alan.coopersmith@sun.com>
+
+ * x11.pc.in:
+ * configure.ac:
+ Add XTHREAD_CFLAGS for platforms that need special defines like
+ -D_REENTRANT or -D_POSIX_whatever to get re-entrant function
+ definitions.
+ Set XDMCP_LIBS correctly for later libXdmcp tests.
+
2005-09-01 Kristian Høgsberg <krh@redhat.com>
* nls/C/Makefile.am:
diff --git a/configure.ac b/configure.ac
index 47b7adb..5e3061d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,10 +29,12 @@ PKG_CHECK_MODULES(XPROTO, xproto)
AC_SUBST(XPROTO_LIBS)
AC_SUBST(XPROTO_CFLAGS)
-PKG_CHECK_MODULES(X11, xextproto xtrans xau xcmiscproto xdmcp)
+PKG_CHECK_MODULES(X11, xextproto xtrans xau xcmiscproto)
AC_SUBST(X11_CFLAGS)
AC_SUBST(X11_LIBS)
+
+PKG_CHECK_MODULES(XDMCP, xdmcp)
AC_SUBST(XDMCP_CFLAGS)
AC_SUBST(XDMCP_LIBS)
@@ -161,9 +163,13 @@ if test x$xthreads == xyes ; then
case $host_os in
linux*|openbsd*)
XTHREADLIB=-lpthread ;;
+ solaris*)
+ XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
esac
fi
AC_SUBST(XTHREADLIB)
+AC_SUBST(XTHREAD_CFLAGS)
+X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
AC_CHECK_LIB(Xdmcp, XdmcpWrap, [xdmauth="yes"], [xdmauth="no"], [$XDMCP_LIBS])
diff --git a/x11.pc.in b/x11.pc.in
index 2358eb4..c9ff11d 100644
--- a/x11.pc.in
+++ b/x11.pc.in
@@ -9,4 +9,4 @@ Name: X11
Description: X Library
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lX11 @XPROTO_LIBS@ @LIBS@
-Cflags: -I${includedir} @XPROTO_CFLAGS@
+Cflags: -I${includedir} @XPROTO_CFLAGS@ @XTHREAD_CFLAGS@