]> granicus.if.org Git - libx264/commitdiff
Improve configure script logging
authorKarl Blomster <kalle@agigen.se>
Sun, 14 Nov 2010 11:41:03 +0000 (03:41 -0800)
committerFiona Glaser <fiona@x264.com>
Thu, 18 Nov 2010 17:58:10 +0000 (09:58 -0800)
Now prints the test program that failed in addition to error messages.

configure

index e1196958c89176178ac5559eaf781663b7390aff..13593e3bd5e90c0d7478f25a12797b642747942a 100755 (executable)
--- 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
 }