configure: minor improvements to config.log
cover configure: minor improvements to config.log
Two trivial patches which make it a little easier to look at config.log and figure out what's going on.
The next step down this road would probably be something like
test_start() {
echo "# Checking for $1..." >> config.log}
and then lots of:
test_start "zlib"
in the relevant places.
Peter Maydell (2):
configure: Include #define name in check_define compiler error
configure: Print a banner comment at the top of config.log
configure | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
PATCH 1/2 configure: Include #define name in check_define compiler error
Include the name of the #define being tested for in the compiler error produced when a check_define test is run and fails. This appears only in the config.log, but it does make it a little easier to debug problems by inspecting config.log.
--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
@@ -249,7 +249,7 @@ source_path=`cd "$source_path"; pwd` check_define() { cat > $TMPC <<EOF #if !defined($1) -#error Not defined +#error $1 not defined #endif int main(void) { return 0; } EOF
Signature · 1 line
1.7.1
PATCH 2/2 configure: Print a banner comment at the top of config.log
In reply to Peter MaydellPrint a banner comment at the top of config.log identifying when configure was run and the arguments used. This is occasionally useful for debugging purposes.
--- configure | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
configure +5 -0
@@ -20,6 +20,11 @@ TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.exe" trap "rm -f $TMPC $TMPO $TMPE" EXIT INT QUIT TERM rm -f config.log +# Print a helpful header at the top of config.log +echo "# QEMU configure log $(date)" >> config.log +echo "# produced by $0 $*" >> config.log +echo "#" >> config.log + compile_object() { echo $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log $cc $QEMU_CFLAGS -c -o $TMPO $TMPC >> config.log 2>&1
Signature · 1 line
1.7.1
Stefan Hajnoczi
AppliedQuoted 14 lines · Peter Maydell
Two trivial patches which make it a little easier to look at config.log and figure out what's going on.
The next step down this road would probably be something like
test_start() { echo "# Checking for $1..." >> config.log}
and then lots of:
test_start"zlib"
in the relevant places.
Quoted 6 lines
Peter Maydell (2):
configure: Include #define name incheck_definecompiler error
configure: Print a banner comment at the top of config.logconfigure | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches -next tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches-next
Stefan