# Optional functions
AC_CHECK_FUNCS_ONCE([
arc4random arc4random_stir gai_strerror getnameinfo inet_aton \
- sigaction sigprocmask snprintf vsnprintf strdup strndup strlcpy strlcat \
- strtok_r unsetenv waitpid])
+ setgroups sigaction sigprocmask snprintf strdup strlcat strlcpy \
+ strndup strtok_r unsetenv vsnprintf waitpid])
WORKING_GETADDRINFO
LDFLAGS="-L$withval/lib $LDFLAGS"
fi
AC_CHECK_LIB(crypto, BIO_s_mem)
- AC_CHECK_LIB(ssl, SSL_library_init)
- AC_CHECK_FUNCS(SSL_library_init, x_ssl_openssl=yes,
+ AC_CHECK_LIB(ssl, SSL_new)
+ AC_CHECK_FUNCS(SSL_new, x_ssl_openssl=yes,
AC_MSG_ERROR([Can't enable openssl])
)
fi