configure: detect which avutil fork is present if any
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 5 Mar 2014 17:43:59 +0000 (19:43 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 5 Mar 2014 17:55:41 +0000 (19:55 +0200)
configure.ac

index 01ae9a4..194f9f7 100644 (file)
@@ -2212,6 +2212,20 @@ AC_ARG_ENABLE(merge-ffmpeg,
 ])
 AM_CONDITIONAL([MERGE_FFMPEG], [test "$enable_merge_ffmpeg" != "no"])
 
+AC_MSG_CHECKING([for libavutil variant])
+PKG_CHECK_EXISTS([libavutil], [
+  libavutil_version="$(${PKG_CONFIG} --modversion libavutil)"
+  libavutil_micro="${libavutil_version##*.}"
+  AS_IF([test ${libavutil_micro} -le 99], [
+    avfork="libav"
+  ], [
+    avfork="ffmpeg"
+  ])
+], [
+  avfork="none"
+])
+AC_MSG_RESULT([${avfork}])
+
 dnl
 dnl  avcodec decoder/encoder plugin
 dnl