diff options
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 6 |
3 files changed, 12 insertions, 1 deletions
@@ -21,3 +21,8 @@ stamp-h1 xedit xedit.1 *~ +*.a +*.o +xedit-*.tar.* +ChangeLog +tags diff --git a/Makefile.am b/Makefile.am index 24aabef..ee22432 100644 --- a/Makefile.am +++ b/Makefile.am @@ -163,6 +163,8 @@ lisp_re_tests_SOURCES = lisp/re/tests.c # App default files +DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults + appdefaultdir = @appdefaultdir@ appdefault_DATA = \ app-defaults/Xedit-color \ diff --git a/configure.ac b/configure.ac index cd74d5e..b756fde 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,11 @@ AC_SUBST(PKGDEPS_CFLAGS) AC_SUBST(PKGDEPS_LIBS) PKG_CHECK_MODULES(APPDEFS, xt) -appdefaultdir=$(pkg-config --variable=appdefaultdir xt) +xt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt) +AC_ARG_WITH(appdefaultdir, + AC_HELP_STRING([--with-appdefaultdir=<pathname>], + [specify directory for app-defaults files (default is autodetected)]), + [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) AC_SUBST(appdefaultdir) XORG_MANPAGE_SECTIONS |