From 0b56e42c53892af6c4e0b295f572ac9d991b90ce Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 6 Apr 2006 00:43:58 +0200 Subject: configure.in: Check for crypt() in libc first (bug#16478) configure.in: Check for crypt() in libc first (bug#16478) --- configure.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index b230b7f042e..9123f87924d 100644 --- a/configure.in +++ b/configure.in @@ -827,9 +827,8 @@ AC_CHECK_FUNC(yp_get_default_domain, , AC_CHECK_FUNC(p2open, , AC_CHECK_LIB(gen, p2open)) # This may get things to compile even if bind-8 is installed AC_CHECK_FUNC(bind, , AC_CHECK_LIB(bind, bind)) -# For crypt() on Linux -AC_CHECK_LIB(crypt, crypt) -AC_CHECK_FUNC(crypt, AC_DEFINE([HAVE_CRYPT], [1], [crypt])) +# Check if crypt() exists in libc or libcrypt, sets LIBS if needed +AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt])) # For sem_xxx functions on Solaris 2.6 AC_CHECK_FUNC(sem_init, , AC_CHECK_LIB(posix4, sem_init)) -- cgit v1.2.1