]> git.proxmox.com Git - qemu.git/commitdiff
configure: add logging
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 23 Apr 2010 11:44:10 +0000 (13:44 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Sep 2010 16:35:30 +0000 (18:35 +0200)
Write compile commands and messages to config.log.
Useful for debugging configure.

configure

index 3bfc5e929bc28c567aed789659fbbebbbb0dd647..66b1d0b296854923904db45b1c48b790518c1cf6 100755 (executable)
--- 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