# gstreamer-vaapi package version number
m4_define([gst_vaapi_major_version], [0])
m4_define([gst_vaapi_minor_version], [1])
-m4_define([gst_vaapi_micro_version], [2])
+m4_define([gst_vaapi_micro_version], [3])
m4_define([gst_vaapi_version],
[gst_vaapi_major_version.gst_vaapi_minor_version.gst_vaapi_micro_version])
USE_VAAPISINK_GLX=0
fi
+dnl Check for FFmpeg
+PKG_CHECK_MODULES(LIBAVFORMAT, [libavformat])
+AC_CHECK_HEADERS([libavformat/avformat.h])
+
+PKG_CHECK_MODULES(LIBAVCODEC, [libavcodec])
+AC_CHECK_HEADERS([libavcodec/avcodec.h])
+AC_CHECK_HEADERS([libavcodec/vaapi.h], [],
+ AC_MSG_ERROR([The system FFmpeg headers do not support VA-API]))
+
AC_DEFINE_UNQUOTED(USE_GLX, $USE_GLX,
[Defined to 1 if GLX is enabled])
AM_CONDITIONAL(USE_GLX, test $USE_GLX -eq 1)
debian.upstream/gstreamer-vaapi-doc.install.in
debian.upstream/libgstvaapi$GST_VAAPI_MAJOR_VERSION.install:\
debian.upstream/libgstvaapi.install.in
- debian.upstream/libgstvaapi$GST_VAAPI_MAJOR_VERSION-dev.install:\
-debian.upstream/libgstvaapi-dev.install.in
+ debian.upstream/libgstvaapi-dev.install
debian.upstream/libgstvaapi-x11-$GST_VAAPI_MAJOR_VERSION.install:\
debian.upstream/libgstvaapi-x11.install.in
debian.upstream/libgstvaapi-glx-$GST_VAAPI_MAJOR_VERSION.install:\
pkgconfig/gstreamer-vaapi-x11.pc.in
gst/Makefile
gst/vaapiconvert/Makefile
+ gst/vaapidecode/Makefile
gst/vaapisink/Makefile
tests/Makefile
])
dnl Print summary
-conf_glx=$(test $USE_GLX -eq 1 && echo yes || echo no)
-conf_vaapi_glx=$(test $USE_VAAPI_GLX -eq 1 && echo yes || echo no)
-conf_vaapisink_glx=$(test $USE_VAAPISINK_GLX -eq 1 && echo yes || echo no)
+yesno() {
+ test $1 -eq 1 && echo yes || echo no
+}
+
echo
echo $PACKAGE configuration summary:
echo
echo VA-API version ................... : $VA_VERSION_STR
-echo GLX support ...................... : $conf_glx
-echo VA/GLX support ................... : $conf_vaapi_glx
-echo VaapiSink/GL ..................... : $conf_vaapisink_glx
+echo GLX support ...................... : $(yesno $USE_GLX)
+echo VA/GLX support ................... : $(yesno $USE_VAAPI_GLX)
+echo VaapiSink/GL ..................... : $(yesno $USE_VAAPISINK_GLX)
echo