[FFmpeg-devel] [PATCH]Silence a warning if pkg_config is not available

Carl Eugen Hoyos cehoyos at ag.or.at
Tue May 3 00:57:16 CEST 2011


Hi!

Attached patch silences a warning if configure is run on a system where 
pkg_config is not installed.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/configure b/configure
index 0bb9701..f4825c8 100755
--- a/configure
+++ b/configure
@@ -761,7 +761,7 @@ check_pkg_config(){
     headers="$2"
     funcs="$3"
     shift 3
-    $pkg_config --exists $pkg || return
+    $pkg_config --exists $pkg 2>/dev/null || return
     pkg_cflags=$($pkg_config --cflags $pkg)
     pkg_libs=$($pkg_config --libs $pkg)
     check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" &&


More information about the ffmpeg-devel mailing list