@@ -656,6 +656,9 @@ enable_option_checking=no
656656ac_subst_vars='am__EXEEXT_FALSE
657657am__EXEEXT_TRUE
658658LTLIBOBJS
659+ LIB_SRTP2
660+ LIB_SSL
661+ LIB_CRYPTO
659662OPT_CFLAGS
660663SIZEOF_TIME_T
661664LIBS_UNWIND
@@ -855,6 +858,7 @@ enable_lto
855858enable_librtpproxy
856859enable_noinst
857860enable_silent
861+ enable_static_crypto
858862enable_docs
859863with_xsltproc
860864with_xsltproc_flags
@@ -1518,6 +1522,7 @@ Optional Features:
15181522 --enable-librtpproxy Build librtpproxy for instrumentation
15191523 --enable-noinst Enable building noinst binaries (default is yes)
15201524 --enable-silent Less verbose build
1525+ --enable-static-crypto Link statically against libssl, libcrypto, libsrtp2
15211526 --enable-docs enable generation of documentation
15221527
15231528Optional Packages:
@@ -13648,6 +13653,16 @@ esac
1364813653fi
1364913654
1365013655
13656+ # Check whether --enable-static-crypto was given.
13657+ if test ${enable_static_crypto+y}
13658+ then :
13659+ enableval=$enable_static_crypto; ENABLE_STATIC_CRYPTO=$enableval
13660+ else case e in #(
13661+ e) ENABLE_STATIC_CRYPTO=no ;;
13662+ esac
13663+ fi
13664+
13665+
1365113666# Checks for libraries.
1365213667
1365313668if test "$enable_systemd" = 'yes'
@@ -15854,6 +15869,17 @@ then
1585415869AM_DEFAULT_VERBOSITY=0
1585515870fi
1585615871
15872+ if test "$ENABLE_STATIC_CRYPTO" = yes; then
15873+ LIB_CRYPTO='-l:libcrypto.a'
15874+ LIB_SSL='-l:libssl.a'
15875+ LIB_SRTP2='-l:libsrtp2.a'
15876+ else
15877+ LIB_CRYPTO='-lcrypto'
15878+ LIB_SSL='-lssl'
15879+ LIB_SRTP2='-lsrtp2'
15880+ fi
15881+
15882+
1585715883ac_config_files="$ac_config_files Makefile src/Makefile makeann/Makefile extractaudio/Makefile libexecinfo/Makefile modules/Makefile modules/acct_csv/Makefile modules/acct_rtcp_hep/Makefile modules/catch_dtmf/Makefile modules/badmod/Makefile libxxHash/Makefile libre/Makefile modules/dtls_gw/Makefile modules/ice_lite/Makefile pertools/Makefile pertools/udp_contention/Makefile libucl/Makefile python/sippy_lite/sippy/Time/clock_dtime.py doc/Makefile"
1585815884
1585915885
@@ -15887,6 +15913,9 @@ fi
1588715913
1588815914
1588915915
15916+
15917+
15918+
1589015919cat >confcache <<\_ACEOF
1589115920# This file is a shell script that caches the results of configure
1589215921# tests run on this system so they can be shared between configure
0 commit comments