diff -ru pkg-config-0.25.orig/pkg.m4 pkg-config-0.25/pkg.m4 --- pkg-config-0.25.orig/pkg.m4 2009-12-06 15:39:02.000000000 -0500 +++ pkg-config-0.25/pkg.m4 2010-08-25 11:29:21.000000000 -0400 @@ -72,7 +72,8 @@ pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], + [AS_IF([pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3"`], + [],[pkg_failed=yes])], [pkg_failed=yes]) else pkg_failed=untried