diff --git a/configure.ac b/configure.ac index 9758d9486a..0709635de8 100644 --- a/configure.ac +++ b/configure.ac @@ -1271,6 +1271,10 @@ 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([SWSCALE], [libswscale >= 3.0.0],[ + AM_CONDITIONAL([HAVE_SWSCALE],[true])],[ + AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_SWSCALE],[false])]) + PKG_CHECK_MODULES([VLC], [libvlc >= 2.1.0],[ AM_CONDITIONAL([HAVE_VLC],[true])],[ AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_VLC],[false])]) diff --git a/src/mod/formats/mod_avformat/Makefile.am b/src/mod/formats/mod_avformat/Makefile.am index c8fd5bd4a1..33459ee59a 100644 --- a/src/mod/formats/mod_avformat/Makefile.am +++ b/src/mod/formats/mod_avformat/Makefile.am @@ -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) -mod_avformat_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(AVFORMAT_LIBS) +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_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz else