shithub: libvpx

Download patch

ref: 2bf62c1dbb191861fe50d3c71e6a51372d46327e
parent: e82d261d10729b08ebe3e75fd6927d9993fc9182
author: John Koleszar <jkoleszar@google.com>
date: Tue May 22 07:51:14 EDT 2012

Enable unit tests by default

Build unit tests by default if there is a working C++ toolchain
available.

Change-Id: I511558339b332fadfde37ef01b2dbf2755f48f89

--- a/configure
+++ b/configure
@@ -586,6 +586,16 @@
     if enabled postproc_visualizer; then
         enabled postproc || die "postproc_visualizer requires postproc to be enabled"
     fi
+
+    # Enable unit tests if we have a working C++ compiler
+    case "$tgt_cc" in
+        vs*)
+            soft_enable unit_tests;;
+        *)
+            check_cxx "$@" <<EOF && soft_enable unit_tests
+int z;
+EOF
+    esac
 }
 
 
--