diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | src/Makefile.am | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d15b326..c59cc26 100644 --- a/configure.ac +++ b/configure.ac @@ -162,6 +162,9 @@ case $host_os in esac AC_SUBST(STRINGSABIOPTIONS) +ERRORDBDIR=${datadir}/X11 +AC_SUBST(ERRORDBDIR) + case $host_os in darwin*) OS_CFLAGS="-Wl,-flat_namespace" diff --git a/src/Makefile.am b/src/Makefile.am index cf54a5c..de60cfc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -4,7 +4,7 @@ BUILT_SOURCES = $(BUILT_FILES) CLEANFILES = $(BUILT_SOURCES) SRCH_DEFINES = -DXFILESEARCHPATHDEFAULT=\"$(XFILESEARCHPATHDEFAULT)\" -ERRORDB_DEFINES = -DERRORDB=\"$(libdir)/X11/XtErrorDB\" +ERRORDB_DEFINES = -DERRORDB=\"$(ERRORDBDIR)/XtErrorDB\" AM_CFLAGS = $(CWARNFLAGS) $(XT_CFLAGS) $(SRCH_DEFINES) $(ERRORDB_DEFINES) \ $(XTMALLOC_ZERO_CFLAGS) |