summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-08-15 16:44:49 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-08-15 16:44:49 -0700
commit6cef7b9611297cb1d93cefe3890b26b69c87bce2 (patch)
tree306d05ff41d0010abb4e9a7736f790b22af57a75
parent0f9e89b4e309e570d7d366489d250ca2143f0ad7 (diff)
Correct XErrorDB path and make it configurable (used by DTrace support)
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b052c1600..41cc10369 100644
--- a/configure.ac
+++ b/configure.ac
@@ -85,7 +85,13 @@ if test "x$WDTRACE" != "xno" ; then
[Define to 1 if the DTrace Xserver provider probes should be built in.])
fi
AM_CONDITIONAL(XSERVER_DTRACE, [test "x$WDTRACE" != "xno"])
-AC_DEFINE_DIR(XERRORDB_PATH, libdir/XErrorDB, [Path to XErrorDB file])
+
+# DTrace support uses XErrorDB to get request names
+AC_ARG_WITH(xerrordb,
+ AS_HELP_STRING([--with-xerrordb=PATH], [Path to XErrorDB file (default: ${datadir}/X11/XErrorDB)]),
+ [ XERRORDB_PATH="$withval" ],
+ [ XERRORDB_PATH="${datadir}/X11/XErrorDB" ])
+AC_DEFINE_DIR(XERRORDB_PATH, XERRORDB_PATH, [Path to XErrorDB file])
AC_HEADER_DIRENT
AC_HEADER_STDC