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
This commit is contained in:
+3
-4
@@ -247,12 +247,11 @@ if test x$enable_vaapi_recorder != xno; then
|
|||||||
[have_libva=yes], [have_libva=no])
|
[have_libva=yes], [have_libva=no])
|
||||||
if test "x$have_libva" = "xno" -a "x$enable_vaapi_recorder" = "xyes"; then
|
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])
|
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
|
fi
|
||||||
|
AS_IF([test "x$have_libva" = "xyes"],
|
||||||
|
[AC_DEFINE([BUILD_VAAPI_RECORDER], [1], [Build the vaapi recorder])])
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(ENABLE_VAAPI_RECORDER,
|
AM_CONDITIONAL(ENABLE_VAAPI_RECORDER, test "x$have_libva" = xyes)
|
||||||
test "x$enable_libva_recorder" != xno -a "x$have_libva" = xyes)
|
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes)
|
AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes)
|
||||||
|
|||||||
Reference in New Issue
Block a user