If OpenSSL provides crypt(3), no need to check -lcrypt

This commit is contained in:
Kurt Zeilenga 2002-10-04 02:44:47 +00:00
parent 06aa7d8d43
commit 9f4d662f87
2 changed files with 145 additions and 133 deletions

272
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -2297,10 +2297,16 @@ fi
dnl ----------------------------------------------------------------
dnl FreeBSD (and others) have crypt(3) in -lcrypt
if test $ol_enable_crypt != no ; then
save_LIBS="$LIBS"
LIBS="$TLS_LIBS $LIBS"
AC_CHECK_FUNC(crypt, [have_crypt=yes], [
LIBS="$save_LIBS"
AC_CHECK_LIB(crypt, crypt, [LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
have_crypt=yes], [have_crypt=no])])
LIBS="$save_LIBS"
if test $have_crypt = yes ; then
AC_DEFINE(HAVE_CRYPT,1, [define if crypt(3) is available])
else