pkg-config is not always available (e.g. on win32 hosts), but we don't want to see the 'command not found' error message.
Redirect stdout and stderr to /dev/null. Cc: Gerd Hoffmann <kra...@redhat.com> Signed-off-by: Stefan Weil <w...@mail.berlios.de> --- configure | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/configure b/configure index e67d076..2d06d87 100755 --- a/configure +++ b/configure @@ -21,6 +21,9 @@ trap "rm -f $TMPC $TMPO $TMPE" EXIT INT QUIT TERM rm -f config.log compile_object() { + echo >>config.log + cat $TMPC >>config.log + echo >>config.log echo $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log 2>&1 } @@ -28,6 +31,9 @@ compile_object() { compile_prog() { local_cflags="$1" local_ldflags="$2" + echo >>config.log + cat $TMPC >>config.log + echo >>config.log echo $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags >> config.log $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags >> config.log 2>&1 } @@ -2089,7 +2095,7 @@ int main(void) { spice_server_new(); return 0; } EOF spice_cflags=$($pkgconfig --cflags spice-protocol spice-server 2>/dev/null) spice_libs=$($pkgconfig --libs spice-protocol spice-server 2>/dev/null) - if $pkgconfig --atleast-version=0.5.3 spice-server &&\ + if $pkgconfig --atleast-version=0.5.3 spice-server >/dev/null 2>&1 && \ compile_prog "$spice_cflags" "$spice_libs" ; then spice="yes" libs_softmmu="$libs_softmmu $spice_libs" -- 1.7.1