Fixed issue with OpenSSL 1.1+ (#4)

Process monitoring changes for Open/Net/Dragonfly BSD
Version bump to 3.02 (104)
This commit is contained in:
Bjango
2017-08-04 20:41:20 +10:00
parent 148a1163f9
commit 31c77a960c
10 changed files with 109 additions and 38 deletions

View File

@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([istatserver], [3.01], [http://github.com/bjango/istatserverlinux/issues])
AC_INIT([istatserver], [3.02], [http://github.com/bjango/istatserverlinux/issues])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
@@ -122,6 +122,14 @@ AC_CHECK_LIB([ssl],[SSL_library_init], [
], [])
], [])
AC_CHECK_LIB([ssl],[OPENSSL_init_ssl], [
AC_CHECK_LIB([crypto],[X509_new], [
AC_DEFINE_UNQUOTED([HAVE_OPENSSL],1,[Define is openssl is available])
LIBS="$LIBS -lssl -lcrypto"
use_tls=yes
], [])
], [])
if test x"$use_tls" = x"none" ; then
AC_MSG_ERROR([openssl/crypto not found or does not support tlsv1. you may need to update openssl or install openssl-dev/libssl-dev or a similar package])
fi