Blame 0002-configure-add-logging.patch

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