summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2005-09-02 23:00:30 +0000
committerAlan Coopersmith <alan.coopersmith@sun.com>2005-09-02 23:00:30 +0000
commit3e920a65a7c376ad63eae2240fd06904d25d18bf (patch)
treef503b0bcfaf5c30d21030c90e86e3299be65196d
parent3eb9f2d693af89d04e2fd92492c8205dce332c9c (diff)
Issue an error if XTRANS macros were not found when generating configure from configure.ac to flag errors early, instead of when people wonder why libX11 can't talk to an Xserver because it has no transports defined
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1e8ba42..47b7adb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,6 +36,15 @@ AC_SUBST(X11_LIBS)
AC_SUBST(XDMCP_CFLAGS)
AC_SUBST(XDMCP_LIBS)
+dnl Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
+dnl was not expanded, since libX11 with no transport types is rather useless.
+dnl
+dnl If you're seeing an error here, be sure you installed the lib/xtrans module
+dnl first and if it's not in the default location, that you set the ACLOCAL
+dnl environment variable to find it, such as:
+dnl ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
+m4_pattern_forbid(XTRANS_CONNECTION_FLAGS)
+
# Transport selection macro from xtrans.m4
XTRANS_CONNECTION_FLAGS