Commit 866ac45c authored by Karl Blomster's avatar Karl Blomster Committed by Fiona Glaser

Improve configure script logging

Now prints the test program that failed in addition to error messages.
parent 845e2287
......@@ -75,6 +75,10 @@ cc_check() {
log_msg "$CC conftest.c $CFLAGS $2 $LDFLAGSCLI $LDFLAGS"
cat conftest.log >> config.log
log_msg "--------------------------------------------------"
log_msg "Failed program was:"
log_msg "--------------------------------------------------"
cat conftest.c >> config.log
log_msg "--------------------------------------------------"
fi
return $res
}
......@@ -94,6 +98,10 @@ cpp_check() {
log_msg "--------------------------------------------------"
cat conftest.log >> config.log
log_msg "--------------------------------------------------"
log_msg "Failed program was:"
log_msg "--------------------------------------------------"
cat conftest.c >> config.log
log_msg "--------------------------------------------------"
fi
return $res
}
......@@ -112,6 +120,10 @@ as_check() {
log_msg "$AS conftest.asm $ASFLAGS $2 -o conftest.o"
cat conftest.log >> config.log
log_msg "--------------------------------------------------"
log_msg "Failed program was:"
log_msg "--------------------------------------------------"
cat conftest.asm >> config.log
log_msg "--------------------------------------------------"
fi
return $res
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment