]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
configure: another improvement in the libav detection, fixes #2382
authorJaroslav Kysela <perex@perex.cz>
Thu, 16 Oct 2014 07:12:54 +0000 (09:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 16 Oct 2014 07:13:16 +0000 (09:13 +0200)
configure
support/configure.inc

index e08ce650916115f14cd7ceb3a71d84a381c137dc..16b6c7a296a25c14d550b6c63994b186e82d58b3 100755 (executable)
--- a/configure
+++ b/configure
@@ -372,13 +372,14 @@ else
 
     if $has_libav; then
       enable libav
-    elif enabled_or_auto libav; then
-
-      die "libav development support not found
-(use --disable-libav or --enable-libffmpeg_static)
-((supported ffmpeg libs n1.2+))
-((supported libav  libs v10+))"
-
+    else
+      echo "WARNING: none or old libav or libffmpeg libraries were detected"
+      echo "         * use --disable-libav or --enable-libffmpeg_static"
+      echo "         ** supported ffmpeg libs n1.2+"
+      echo "         ** supported libav  libs v10+"
+      if enabled libav; then
+        die "libav development support not found"
+      fi
     fi
   fi
 
index 2ec83264eec15500a8fc4d710ccc2c3ade1eb6c8..f7cfcd3e4d5b7045d4b7a020b69fe464bde3febd 100755 (executable)
@@ -204,12 +204,15 @@ check_pkg ()
 
   printf "$TAB" "checking for pkg $pkg $ver ..."
 
+  dver=$(pkg-config --modversion $pkg 2> /dev/null)
+  test -z "$dver" && dver="<none>"
+
   # Check for package
   if pkg-config $pkg $cver; then
-    echo "ok"
+    echo "ok (detected ${dver})"
     enable_pkg $pkg
   else
-    echo "fail"
+    echo "fail (detected ${dver})"
     return 1
   fi
 }