From b6906974929e778400c2a84dba8ebf2a2a3f68f4 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Thu, 1 Sep 2016 12:59:36 -0700 Subject: toolchain: build gtest convenience library Define autoconf/automake rules to build libgtest.la as a convenience library. Add --enable-tests configure option (default:no). Signed-off-by: U. Artie Eoff Reviewed-by: Sean V Kelley --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f12f8a69..7b4fd0a0 100644 --- a/configure.ac +++ b/configure.ac @@ -61,11 +61,16 @@ AC_ARG_ENABLE([hybrid-codec], [build with hybrid codec support @<:@default=no@:>@])], [], [enable_hybrid_codec="no"]) +AC_ARG_ENABLE([tests], + [AC_HELP_STRING([--enable-tests], + [build tests @<:@default=no@:>@])], + [], [enable_tests="no"]) + AC_DISABLE_STATIC AC_PROG_LIBTOOL AC_PROG_CC AM_PROG_CC_C_O - +AC_PROG_CXX AC_C_BIGENDIAN AC_HEADER_STDC AC_SYS_LARGEFILE @@ -116,6 +121,8 @@ if test "$enable_hybrid_codec" = "yes"; then AC_DEFINE([HAVE_HYBRID_CODEC], [1], [Defined to 1 if hybrid codec is needed]) fi +AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "yes") + VA_VERSION=`$PKG_CONFIG --modversion libva` VA_MAJOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f1` VA_MINOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f2` @@ -207,6 +214,7 @@ AC_OUTPUT([ src/shaders/render/Makefile src/shaders/utils/Makefile src/shaders/vme/Makefile + test/Makefile ]) dnl Print summary @@ -221,4 +229,5 @@ echo echo VA-API version ................... : $VA_VERSION_STR echo VA-API drivers path .............. : $LIBVA_DRIVERS_PATH echo Windowing systems ................ : $BACKENDS +echo Build tests ...................... : $enable_tests echo -- cgit v1.2.1