* 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.
This commit is contained in:
nekral-guest 2008-08-30 18:32:43 +00:00
parent 7109072b8f
commit 8075d27e32
2 changed files with 12 additions and 4 deletions

View File

@ -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> 2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Added brackets and * 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 standard. Check if they are implemented before using them. Do not
set the time of links if lutimes() does not exist, and use set the time of links if lutimes() does not exist, and use
utimes() as a replacement for futimes(). utimes() as a replacement for futimes().
* configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to * configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd and
support systems without nscd. --without-nscd flags to support systems without nscd.
* lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c: * 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 Include <sys/types.h> before <pwd.h> and <grp.h>. It is necessary
for the definition of uid_t and gid_t. for the definition of uid_t and gid_t.

View 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]) AC_DEFINE(USE_SHA_CRYPT, 1, [Define to allow the SHA256 and SHA512 password encryption algorithms])
fi fi
AM_CONDITIONAL(USE_NSCD, test "x$with_nscd" = "xyes")
if test "$with_nscd" = "yes"; then 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 fi
dnl Check for some functions in libc first, only if not found check for dnl Check for some functions in libc first, only if not found check for