parent
8e4d7c3642
commit
4c0fa970bc
@ -1550,7 +1550,7 @@ AG_GST_CHECK_FEATURE(SRTP, [srtp library], srtp, [
|
|||||||
AC_DEFINE([HAVE_SRTP2], 1, [Define if libsrtp2 is used])
|
AC_DEFINE([HAVE_SRTP2], 1, [Define if libsrtp2 is used])
|
||||||
else
|
else
|
||||||
PKG_CHECK_MODULES(SRTP, libsrtp, HAVE_SRTP="yes",
|
PKG_CHECK_MODULES(SRTP, libsrtp, HAVE_SRTP="yes",
|
||||||
AG_GST_CHECK_LIBHEADER(SRTP, srtp, srtp_init, , srtp/srtp.h, SRTP_LIBS="-lsrtp")
|
AG_GST_CHECK_LIBHEADER(SRTP, srtp, crypto_policy_set_aes_gcm_128_16_auth, , srtp/srtp.h, SRTP_LIBS="-lsrtp")
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
AC_SUBST(SRTP_LIBS)
|
AC_SUBST(SRTP_LIBS)
|
||||||
|
@ -13,8 +13,8 @@ srtp_dep = dependency('libsrtp2', version : '>= 2.1.0', required : false)
|
|||||||
if srtp_dep.found()
|
if srtp_dep.found()
|
||||||
srtp_cargs += ['-DHAVE_SRTP2']
|
srtp_cargs += ['-DHAVE_SRTP2']
|
||||||
else
|
else
|
||||||
srtp_dep = dependency('libsrtp', required : false)
|
srtp_dep = dependency('libsrtp', version: '>= 1.6.0', required : false)
|
||||||
if not srtp_dep.found() and cc.has_header_symbol('srtp/srtp.h', 'srtp_init')
|
if not srtp_dep.found() and cc.has_header_symbol('srtp/srtp.h', 'crypto_policy_set_aes_gcm_128_16_auth')
|
||||||
srtp_dep = cc.find_library('srtp', required : false)
|
srtp_dep = cc.find_library('srtp', required : false)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user