summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am8
-rw-r--r--configure.ac2
-rw-r--r--contrib/sssd.spec.in1
3 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 9dbde0391..39e6e0745 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,11 @@
+extra_distcheck_flags =
+if HAVE_DEVSHM
+ extra_distcheck_flags += --with-test-dir=/dev/shm
+endif
+
DISTCHECK_CONFIGURE_FLAGS = --with-ldb-lib-dir="$$dc_install_base"/lib/ldb \
- --enable-all-experimental-features
+ --enable-all-experimental-features \
+ $(extra_distcheck_flags)
SUBDIRS = po
diff --git a/configure.ac b/configure.ac
index 4b1cfba26..3533502d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -272,6 +272,8 @@ AM_CONDITIONAL([HAVE_DOXYGEN], [test x$DOXYGEN != xfalse ])
AM_CONDITIONAL([HAVE_CHECK], [test x$have_check != x])
AM_CONDITIONAL([HAVE_CMOCKA], [test x$have_cmocka = xyes])
+AM_CONDITIONAL([HAVE_DEVSHM], [test -d /dev/shm])
+
abs_build_dir=`pwd`
AC_DEFINE_UNQUOTED([ABS_BUILD_DIR], ["$abs_build_dir"], [Absolute path to the build directory])
AC_SUBST([abs_builddir], $abs_build_dir)
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index dd8113c06..de3059bdd 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -257,6 +257,7 @@ done
autoreconf -ivf
%configure \
+ --with-test-dir=/dev/shm \
--with-db-path=%{dbpath} \
--with-mcache-path=%{mcpath} \
--with-pipe-path=%{pipepath} \