From 263ef89954cff2ab1e15e5aac643c0f69c520afd Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Thu, 30 Jan 2014 04:33:27 +0000 Subject: Close #1730: Added srtp_deinit()/shutdown() detection for external SRTP in configure script. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4723 74dad513-b988-da41-8d7b-12977e46ad98 --- aconfigure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'aconfigure.ac') diff --git a/aconfigure.ac b/aconfigure.ac index 1a137b6e..c1a6ff8b 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -548,6 +548,15 @@ AC_ARG_WITH(external-srtp, ] ) +dnl # For external SRTP, check availability of srtp_deinit() or srtp_shutdown() +if test "x$ac_external_srtp" = "x1"; then + AC_SUBST(ac_srtp_deinit_present,0) + AC_SUBST(ac_srtp_shutdown_present,0) + AC_CHECK_LIB(srtp,srtp_deinit,[ac_srtp_deinit_present=1]) + if test "x$ac_srtp_deinit_present" != "x1"; then + AC_CHECK_LIB(srtp,srtp_shutdown,[ac_srtp_shutdown_present=1]) + fi +fi dnl # Resample implementation AC_SUBST(ac_pjmedia_resample,libresample) -- cgit v1.2.3