]> granicus.if.org Git - shadow/commitdiff
* configure.in: Remove the USE_NSCD AM_CONDITIONAL (USE_NSCD is
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 30 Aug 2008 18:32:43 +0000 (18:32 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 30 Aug 2008 18:32:43 +0000 (18:32 +0000)
not used in any Makefile.am).
* configure.in: Make sure posix_spawn is present when configured
with nscd support.

ChangeLog
configure.in

index eb9c80a34df48dcc846bf61b165d78f2e7d1a9f8..56e984c4cb7039b0894139ce320c603973cbb8e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-27  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * 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  <nicolas.francois@centraliens.net>
 
        * 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 <sys/types.h> before <pwd.h> and <grp.h>. It is necessary
        for the definition of uid_t and gid_t.
index 8ea215f07efa5d32d1ae1553106397a86f8fa7c5..ebe32729091e657369c29c8209d25335dd70be2b 100644 (file)
@@ -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