summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-02-22 15:48:37 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-02-27 09:32:00 -0500
commit3b917f1d971d034cc758ceb5e215edb59afd9105 (patch)
tree542acd1141ab40ed64d022e830df23d30a5d4830 /src/conf_macros.m4
parentf3dc9ac52a808fcbedc7fb1ae83964b523c72df2 (diff)
downloadsssd-3b917f1d971d034cc758ceb5e215edb59afd9105.tar.gz
sssd-3b917f1d971d034cc758ceb5e215edb59afd9105.tar.xz
sssd-3b917f1d971d034cc758ceb5e215edb59afd9105.zip
Eliminate build-time requirement for nscd
We will now use the autodetected location if available, or else fall back to a value provided by --with-nscd in configure and finally resort to a hard-coded default of /usr/sbin/nscd.
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m415
1 files changed, 8 insertions, 7 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index a54dd7f04..145cdd795 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -277,16 +277,17 @@ AC_DEFUN([WITH_TEST_DIR],
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]]
+ [AC_HELP_STRING([--with-nscd=PATH],
+ [Path to nscd binary to attempt to flush nscd cache after local domain operations [/usr/sbin/nscd]]
)
- ],
- [],
- with_nscd=yes
+ ]
)
- if test x"$with_nscd" = xyes; then
- AC_DEFINE_UNQUOTED(HAVE_NSCD, 1, [flush nscd cache after local domain operations])
+ NSCD_PATH="/usr/sbin/nscd"
+ if test x"$with_nscd" != x; then
+ NSCD_PATH=$with_nscd
+ AC_SUBST(NSCD_PATH)
fi
+ AC_DEFINE_UNQUOTED(HAVE_NSCD, $NSCD_PATH, [flush nscd cache after local domain operations])
])
AC_DEFUN([WITH_SEMANAGE],