Skip to contentSkip to conversation

configure: Suppress messages from pkg_config probe for check

PATCH Applied Peter Maydell 2 participants 2 messages Nov 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Suppress messages from pkg_config probe for check

Suppress confusing messages from pkg_config when probing for 'check' by sending them to /dev/null as we do with other similar probes.

---
We didn't notice this before because we only recently changed the default for whether configure probed for this. I think that makes this a regression we should fix for 1.0.

 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index 28667fe..9661b0e 100755
@@ -1828,7 +1828,7 @@ if test "$check_utests" != "no" ; then
 #include <check.h>
 int main(void) { suite_create("qemu test"); return 0; }
 EOF
-  check_libs=`$pkg_config --libs check`
+  check_libs=`$pkg_config --libs check 2>/dev/null`
   if compile_prog "" $check_libs ; then
     check_utests=yes
     libs_tools="$check_libs $libs_tools"
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 5 lines · Peter Maydell

Suppress confusing messages from pkg_config when probing for 'check' by sending them to /dev/null as we do with other similar probes.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 21 lines

---
We didn't notice this before because we only recently changed the default for whether configure probed for this. I think that makes this a regression we should fix for 1.0.

  configure |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index 28667fe..9661b0e 100755
@@ -1828,7 +1828,7 @@ if test "$check_utests" != "no" ; then
  #include<check.h>
  int main(void) { suite_create("qemu test"); return 0; }
  EOF
-  check_libs=`$pkg_config --libs check`
+  check_libs=`$pkg_config --libs check 2>/dev/null`
    if compile_prog "" $check_libs ; then
      check_utests=yes
      libs_tools="$check_libs $libs_tools"