mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
If OpenSSL provides crypt(3), no need to check -lcrypt
This commit is contained in:
parent
06aa7d8d43
commit
9f4d662f87
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user