Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
b1acdb3a
Commit
b1acdb3a
authored
Feb 17, 2015
by
François Grisez
Browse files
Checks whether libsrtp.a exists when libsrtp need to be statically linked
parent
8d120b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
9 deletions
+23
-9
configure.ac
configure.ac
+23
-9
No files found.
configure.ac
View file @
b1acdb3a
...
...
@@ -1040,23 +1040,37 @@ if test "${srtp_prefix}" != "none" ; then
LIBS=$LIBS_save
if test "$have_srtp_headers$have_srtp_lib" = "yesyes" ; then
srtp_polarssl_conflict=yes
LDFLAGS_save=$LDFLAGS
LDFLAGS="$LDFLAGS $SRTP_LIBS"
LIBS_save=$LIBS
AC_CHECK_LIB(srtp,sha1_update,[
AC_MSG_WARN([This libsrtp version exports symbols conflicting with polarssl, resulting in a bad execution path.
libsrtp will be statically linked
])], srtp_polarssl_conflict=no)
LDFLAGS="$LDFLAGS $SRTP_LIBS"
AC_CHECK_LIB(
srtp,
sha1_update,[
AC_MSG_WARN([This libsrtp version exports symbols conflicting with polarssl, resulting in a bad execution path. libsrtp will be statically linked])
srtp_polarssl_conflict=yes
],
srtp_polarssl_conflict=no
)
LDFLAGS=$LDFLAGS_save
LIBS=$LIBS_save
if test "$srtp_polarssl_conflict" = "yes"; then
SRTP_LIBS="${srtp_prefix}/lib/libsrtp.a -Bsymbolic -Wl,--version-script=\$(top_srcdir)/src/libsrtp.map"
srtp_static_lib="${srtp_prefix}/lib/libsrtp.a"
if test -f $srtp_static_lib -a -r $srtp_static_lib; then
SRTP_LIBS="${srtp_prefix}/lib/libsrtp.a -Bsymbolic -Wl,--version-script=\$(top_srcdir)/src/libsrtp.map"
AC_DEFINE(HAVE_SRTP, 1, [Defined when srtp support is compiled])
have_srtp=yes
else
AC_MSG_WARN([Could not access to $srtp_static_lib. Please use --with-srtp=PREFIX to specify the prefix where libsrtp.a has been installed])
SRTP_CFLAGS=
SRTP_LIBS=
have_srtp=no
fi
else
AC_DEFINE(HAVE_SRTP, 1, [Defined when srtp support is compiled])
have_srtp=yes
fi
AC_DEFINE(HAVE_SRTP, 1, [Defined when srtp support is compiled])
have_srtp=yes
else
AC_MSG_NOTICE([Could not find libsrtp headers or lib, cryto transport disabled.])
have_srtp=no
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment