summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-03-12 16:52:26 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-15 07:40:52 -0400
commite45fcd9e478300e6be8a49402fcea81fce623804 (patch)
treef13ce827e549ebd3985bc51f3dc9848fb98e4f64 /src/conf_macros.m4
parent5096bb4c2242b426aa6f5ea2cb82223e0b81a345 (diff)
downloadsssd-e45fcd9e478300e6be8a49402fcea81fce623804.tar.gz
sssd-e45fcd9e478300e6be8a49402fcea81fce623804.tar.xz
sssd-e45fcd9e478300e6be8a49402fcea81fce623804.zip
Flush NSCD cache after modifying local database
Fixes: #221
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 6323db27d..315a06433 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -217,3 +217,17 @@ AC_DEFUN([WITH_TEST_DIR],
AC_DEFINE_UNQUOTED(TEST_DIR, "$with_test_dir", [Directory used for 'make check' temporary files])
])
+AC_DEFUN([WITH_NSCD],
+ [ AC_ARG_WITH([nscd],
+ [AC_HELP_STRING([--with-nscd],
+ [Whether to attempt to flush nscd cache after local domain operations [yes]]
+ )
+ ],
+ [],
+ with_nscd=yes
+ )
+ if test x"$with_nscd" == xyes; then
+ AC_DEFINE_UNQUOTED(HAVE_NSCD, 1, [flush nscd cache after local domain operations])
+ fi
+ ])
+