FS-7519: [mod_avformat] add libavutil and libavresample to linking deps

This commit is contained in:
Michael Jerris 2015-05-04 12:54:47 -05:00
parent f87f725e43
commit a6c1a40b2a
2 changed files with 11 additions and 2 deletions

View File

@ -1271,6 +1271,15 @@ PKG_CHECK_MODULES([AVFORMAT], [libavformat >= 53.21.1],[
AM_CONDITIONAL([HAVE_AVFORMAT],[true])],[
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AVFORMAT],[false])])
PKG_CHECK_MODULES([AVUTIL], [libavutil >= 54.3.0],[
AM_CONDITIONAL([HAVE_AVUTIL],[true])],[
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AVUTIL],[false])])
PKG_CHECK_MODULES([AVRESAMPLE], [libavresample >= 2.1.0],[
AM_CONDITIONAL([HAVE_AVRESAMPLE],[true])],[
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_AVRESAMPLE],[false])])
PKG_CHECK_MODULES([SWSCALE], [libswscale >= 3.0.0],[
AM_CONDITIONAL([HAVE_SWSCALE],[true])],[
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_SWSCALE],[false])])

View File

@ -5,8 +5,8 @@ if HAVE_AVFORMAT
mod_LTLIBRARIES = mod_avformat.la
mod_avformat_la_SOURCES = mod_avformat.c
mod_avformat_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS) $(AVCODEC_CFLAGS) $(SWSCALE_CFLAGS)
mod_avformat_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(AVFORMAT_LIBS) $(AVCODEC_LIBS) $(SWSCALE_LIBS)
mod_avformat_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS) $(AVCODEC_CFLAGS) $(SWSCALE_CFLAGS) $(AVUTIL_CFLAGS) $(AVRESAMPLE_CFALGS)
mod_avformat_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(AVFORMAT_LIBS) $(AVCODEC_LIBS) $(SWSCALE_LIBS) $(AVUTIL_LIBS) $(AVRESAMPLE_LIBS)
mod_avformat_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz
else