mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
made openssl support optional
This commit is contained in:
parent
43090bdcb4
commit
5df7b241a3
|
@ -25,6 +25,15 @@ else
|
|||
N2N_LIBS="-lzstd ${N2N_LIBS}"
|
||||
fi
|
||||
|
||||
|
||||
AC_ARG_WITH([openssl],
|
||||
[AS_HELP_STRING([--with-openssl],
|
||||
[enable support for OpenSSL])],
|
||||
[],
|
||||
[with_openssl=no])
|
||||
|
||||
if test "x$with_openssl" != xno; then
|
||||
|
||||
AC_CHECK_LIB([crypto], [AES_cbc_encrypt])
|
||||
|
||||
if test "x$ac_cv_lib_crypto_AES_cbc_encrypt" != xyes; then
|
||||
|
@ -47,6 +56,8 @@ else
|
|||
AC_DEFINE([HAVE_OPENSSL_1_1], [], [OpenSSL 1.1 is present])
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB([pcap], [pcap_open_live], pcap=true)
|
||||
|
||||
if test x$pcap != x; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user