diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-09-03 22:46:02 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-09-03 22:46:02 -0700 |
commit | 1f7ce6e3d55ce255187a2a1f07adc778a9108a5f (patch) | |
tree | 8fa3c44bd8fc85ca36f3c7b45fc9804f34eb0606 | |
parent | 6399646a6b10aebd2aaa722d444de72e0639a667 (diff) | |
download | weston-1f7ce6e3d55ce255187a2a1f07adc778a9108a5f.tar.gz |
configure.ac: Only build libva recorder if we found libva
The automatic detection failed to disable the build if it didn't
find libva.
https://bugs.freedesktop.org/show_bug.cgi?id=68908
-rw-r--r-- | configure.ac | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 3767d69d..cd09b56f 100644 --- a/configure.ac +++ b/configure.ac @@ -247,12 +247,11 @@ if test x$enable_vaapi_recorder != xno; then [have_libva=yes], [have_libva=no]) if test "x$have_libva" = "xno" -a "x$enable_vaapi_recorder" = "xyes"; then AC_MSG_ERROR([vaapi-recorder explicitly enabled, but libva couldn't be found]) - else - AC_DEFINE([BUILD_VAAPI_RECORDER], [1], [Build the vaapi recorder]) fi + AS_IF([test "x$have_libva" = "xyes"], + [AC_DEFINE([BUILD_VAAPI_RECORDER], [1], [Build the vaapi recorder])]) fi -AM_CONDITIONAL(ENABLE_VAAPI_RECORDER, - test "x$enable_libva_recorder" != xno -a "x$have_libva" = xyes) +AM_CONDITIONAL(ENABLE_VAAPI_RECORDER, test "x$have_libva" = xyes) AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes) |