[x264-devel] commit: Improve configure script logging (Karl Blomster )
git at videolan.org
git at videolan.org
Fri Nov 19 23:50:09 CET 2010
x264 | branch: master | Karl Blomster <kalle at agigen.se> | Sun Nov 14 03:41:03 2010 -0800| [e19e5f05c314e243c4f2c7f60ab6bfc86a78bba1] | committer: Jason Garrett-Glaser
Improve configure script logging
Now prints the test program that failed in addition to error messages.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=e19e5f05c314e243c4f2c7f60ab6bfc86a78bba1
---
configure | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index e119695..13593e3 100755
--- a/configure
+++ b/configure
@@ -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
}
More information about the x264-devel
mailing list