From patchwork Tue Jun 15 12:23:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 55649 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 47055B7D1F for ; Tue, 15 Jun 2010 22:31:46 +1000 (EST) Received: from localhost ([127.0.0.1]:42842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOVIt-00036g-CD for incoming@patchwork.ozlabs.org; Tue, 15 Jun 2010 08:31:43 -0400 Received: from [140.186.70.92] (port=44625 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOVAj-0003Ih-2m for qemu-devel@nongnu.org; Tue, 15 Jun 2010 08:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOVAi-0002wo-0f for qemu-devel@nongnu.org; Tue, 15 Jun 2010 08:23:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24532) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOVAh-0002wg-Oc for qemu-devel@nongnu.org; Tue, 15 Jun 2010 08:23:15 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5FCNFei024134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Jun 2010 08:23:15 -0400 Received: from rincewind.home.kraxel.org (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5FCNCds016039; Tue, 15 Jun 2010 08:23:14 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 6A5B4415DB; Tue, 15 Jun 2010 14:23:10 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 15 Jun 2010 14:23:04 +0200 Message-Id: <1276604590-18919-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1276604590-18919-1-git-send-email-kraxel@redhat.com> References: <1276604590-18919-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 1/7] configure: add logging X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Write compile commands and messages to config.log. Useful for debugging configure. Signed-off-by: Gerd Hoffmann Acked-by: Paolo Bonzini --- configure | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c0d8aa5..8220226 100755 --- a/configure +++ b/configure @@ -16,15 +16,18 @@ TMPO="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.o" TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.exe" trap "rm -f $TMPC $TMPO $TMPE ; exit" EXIT INT QUIT TERM +rm -f config.log compile_object() { - $cc $QEMU_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null + echo $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log + $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log 2>&1 } compile_prog() { local_cflags="$1" local_ldflags="$2" - $cc $QEMU_CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags > /dev/null 2> /dev/null + 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 } # check whether a command is available to this shell (may be either an