From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35456 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOWkn-0000da-9R for qemu-devel@nongnu.org; Tue, 15 Jun 2010 10:04:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOWMd-0008NB-6W for qemu-devel@nongnu.org; Tue, 15 Jun 2010 09:39:40 -0400 Received: from mail-bw0-f45.google.com ([209.85.214.45]:49007) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOWMd-0008N0-0l for qemu-devel@nongnu.org; Tue, 15 Jun 2010 09:39:39 -0400 Received: by bwz9 with SMTP id 9so1871162bwz.4 for ; Tue, 15 Jun 2010 06:39:38 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4C178295.2010402@redhat.com> Date: Tue, 15 Jun 2010 15:39:33 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1276604590-18919-1-git-send-email-kraxel@redhat.com> <1276604590-18919-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1276604590-18919-2-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 1/7] configure: add logging List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org On 06/15/2010 02:23 PM, Gerd Hoffmann wrote: > Write compile commands and messages to config.log. > Useful for debugging configure. > > Signed-off-by: Gerd Hoffmann > --- > 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 Acked-by: Paolo Bonzini Paolo