From 8075d27e32619f46fffe71d253807478ded0abf7 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 30 Aug 2008 18:32:43 +0000 Subject: [PATCH] * configure.in: Remove the USE_NSCD AM_CONDITIONAL (USE_NSCD is not used in any Makefile.am). * configure.in: Make sure posix_spawn is present when configured with nscd support. --- ChangeLog | 11 +++++++++-- configure.in | 5 +++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index eb9c80a3..56e984c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-27 Nicolas François + + * configure.in: Remove the USE_NSCD AM_CONDITIONAL (USE_NSCD is + not used in any Makefile.am). + * configure.in: Make sure posix_spawn is present when configured + with nscd support. + 2008-08-26 Nicolas François * lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Added brackets and @@ -17,8 +24,8 @@ standard. Check if they are implemented before using them. Do not set the time of links if lutimes() does not exist, and use utimes() as a replacement for futimes(). - * configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to - support systems without nscd. + * configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd and + --without-nscd flags to support systems without nscd. * lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c: Include before and . It is necessary for the definition of uid_t and gid_t. diff --git a/configure.in b/configure.in index 8ea215f0..ebe32729 100644 --- a/configure.in +++ b/configure.in @@ -246,9 +246,10 @@ if test "$with_sha_crypt" = "yes"; then AC_DEFINE(USE_SHA_CRYPT, 1, [Define to allow the SHA256 and SHA512 password encryption algorithms]) fi -AM_CONDITIONAL(USE_NSCD, test "x$with_nscd" = "xyes") if test "$with_nscd" = "yes"; then - AC_DEFINE(USE_NSCD, 1, [Define to support flushing of nscd caches]) + AC_CHECK_FUNC(posix_spawn, + [AC_DEFINE(USE_NSCD, 1, [Define to support flushing of nscd caches])], + [AC_MSG_ERROR([posix_spawn is needed for nscd support])]) fi dnl Check for some functions in libc first, only if not found check for