OSDN Git Service

build: Report an error message when a pc file is not found
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 3 Sep 2013 20:15:23 +0000 (22:15 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 4 Sep 2013 07:47:06 +0000 (09:47 +0200)
Ease tracking path problems.

configure

index 11005ab..a0d2d54 100755 (executable)
--- a/configure
+++ b/configure
@@ -885,7 +885,7 @@ check_pkg_config(){
     headers="$2"
     funcs="$3"
     shift 3
-    $pkg_config --exists $pkg || return
+    check_cmd $pkg_config --exists --print-errors $pkg || return
     pkg_cflags=$($pkg_config --cflags $pkg)
     pkg_libs=$($pkg_config --libs $pkg)
     check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" &&