[vlc-devel] commit: stream_out siwtcher needs avcodec (fix missing symbols). ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 9 11:15:36 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul  9 10:39:17 2009 +0200| [6ceccc7d90fb2499e6ce043a7c179c8273beff77] | committer: Rémi Duraffort 

stream_out siwtcher needs avcodec (fix missing symbols).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ceccc7d90fb2499e6ce043a7c179c8273beff77
---

 configure.ac |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 503872e..ed41280 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1707,12 +1707,6 @@ AS_IF([test "${enable_sout}" != "no"], [
 ])
 AM_CONDITIONAL(ENABLE_SOUT, [test "${enable_sout}" != "no"])
 
-AC_ARG_ENABLE(switcher,
-  [  --enable-switcher       Stream-out switcher plugin (default disabled)])
-AS_IF([test "${enable_switcher}" = "yes"], [
-  VLC_ADD_PLUGIN([stream_out_switcher])
-])
-
 dnl Check for libshout
 AC_ARG_ENABLE(shout,
   [  --enable-shout          libshout output plugin (default disabled)])
@@ -3008,12 +3002,28 @@ then
       VLC_ADD_LIBS([avcodec],[$AVCODEC_LIBS])
       VLC_ADD_CFLAGS([avcodec],[$AVCODEC_CFLAGS])
       VLC_RESTORE_FLAGS
+      have_avcodec="yes"
     ],[
       AC_MSG_ERROR([Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.])
   ])
 fi
 
 dnl
+dnl stream_out switcher needs libavcodec
+dnl
+AC_ARG_ENABLE(switcher,
+  [  --enable-switcher       Stream-out switcher plugin (default disabled)])
+AS_IF([test "${enable_switcher}" = "yes"], [
+  AS_IF([test "x${have_avcodec}" = "xyes"], [
+    VLC_ADD_PLUGIN([stream_out_switcher])
+    VLC_ADD_LIBS([stream_out_switcher],[$AVCODEC_LIBS])
+    VLC_ADD_CFLAGS([stream_out_switcher],[$AVCODEC_CFLAGS])
+  ],[AC_MSG_ERROR([Stream_out switcher depends on avcodec])
+  ])
+])
+
+
+dnl
 dnl  avformat demuxer/muxer plugin
 dnl
 




More information about the vlc-devel mailing list