summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-02-26 09:04:11 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-03-04 12:41:30 -0500
commit9fb59763bce293c2490e0b9f8e97bb1f74ba0910 (patch)
treebebd5ddc3975da122a34a09a5781b26025b96720 /src/conf_macros.m4
parent07a2e0b66a1c4688825e07fa88d37886fec4770c (diff)
downloadsssd_unused-9fb59763bce293c2490e0b9f8e97bb1f74ba0910.tar.gz
sssd_unused-9fb59763bce293c2490e0b9f8e97bb1f74ba0910.tar.xz
sssd_unused-9fb59763bce293c2490e0b9f8e97bb1f74ba0910.zip
Add --with-test-dir option to configure
All 'make check' tests will chdir() into this directory before running the suite. This provides the option of having temporary files generated in a tmpfs or ramdisk
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 86ccf5d9..6323db27 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -205,3 +205,15 @@ AC_DEFUN([WITH_SELINUX],
AM_CONDITIONAL([BUILD_SELINUX], [test x"$with_selinux" = xyes])
])
+AC_DEFUN([WITH_TEST_DIR],
+ [ AC_ARG_WITH([test-dir],
+ [AC_HELP_STRING([--with-test-dir=PATH],
+ [Directory used for make check temporary files [$builddir]]
+ )
+ ]
+ )
+ TEST_DIR=$with_test_dir
+ AC_SUBST(TEST_DIR)
+ AC_DEFINE_UNQUOTED(TEST_DIR, "$with_test_dir", [Directory used for 'make check' temporary files])
+ ])
+