From eb01f377675c8237a676824e0b072675f5c68c30 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 24 Oct 2014 15:53:59 +0200 Subject: [PATCH] configure.ac: Use libsrtp.pc if present --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index f78971f38f..e17e794857 100644 --- a/configure.ac +++ b/configure.ac @@ -2232,10 +2232,11 @@ AC_SUBST(LIBMMS_LIBS) dnl *** libsrtp *** translit(dnm, m, l) AM_CONDITIONAL(USE_SRTP, true) AG_GST_CHECK_FEATURE(SRTP, [srtp library], srtp, [ - HAVE_SRTP="yes" - AG_GST_CHECK_LIBHEADER(SRTP, srtp, srtp_init, , srtp/srtp.h, - SRTP_LIBS="-lsrtp", HAVE_SRTP="no") + PKG_CHECK_MODULES(SRTP, libsrtp, HAVE_SRTP="yes", + AG_GST_CHECK_LIBHEADER(SRTP, srtp, srtp_init, , srtp/srtp.h, SRTP_LIBS="-lsrtp") + ) AC_SUBST(SRTP_LIBS) + AC_SUBST(SRTP_CFLAGS) ]) dnl *** linsys ***