carlwgeorge / rpms / qemu

Forked from rpms/qemu a year ago
Clone
a81953e
From 89df4f8cf7ecde07e3dc5e2ea3c19cbcd02165d0 Mon Sep 17 00:00:00 2001
a81953e
From: Gerd Hoffmann <kraxel@redhat.com>
a81953e
Date: Fri, 23 Apr 2010 13:44:10 +0200
a81953e
Subject: [PATCH 02/39] configure: add logging
a81953e
a81953e
Write compile commands and messages to config.log.
a81953e
Useful for debugging configure.
a81953e
---
a81953e
 configure |    7 +++++--
a81953e
 1 files changed, 5 insertions(+), 2 deletions(-)
a81953e
a81953e
diff --git a/configure b/configure
a81953e
index b85590f..e09c442 100755
a81953e
--- a/configure
a81953e
+++ b/configure
a81953e
@@ -16,15 +16,18 @@ TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o"
a81953e
 TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.exe"
a81953e
a81953e
 trap "rm -f $TMPC $TMPO $TMPE ; exit" EXIT INT QUIT TERM
a81953e
+rm -f config.log
a81953e
a81953e
 compile_object() {
a81953e
-  $cc $QEMU_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
a81953e
+  echo $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log
a81953e
+  $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log 2>&1
a81953e
 }
a81953e
a81953e
 compile_prog() {
a81953e
   local_cflags="$1"
a81953e
   local_ldflags="$2"
a81953e
-  $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags > /dev/null 2> /dev/null
a81953e
+  echo $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags >> config.log
a81953e
+  $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags >> config.log 2>&1
a81953e
 }
a81953e
a81953e
 # check whether a command is available to this shell (may be either an
a81953e
-- 
a81953e
1.7.2.3
a81953e