mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
dvb: Use DVB_API_VERSION to know if we have recent enough version
We end up with the same end-result but it's more comprehensible
This commit is contained in:
parent
8b1bd86000
commit
2e9e8b5c62
1 changed files with 3 additions and 3 deletions
|
@ -2064,10 +2064,10 @@ dnl *** dvb ***
|
|||
translit(dnm, m, l) AM_CONDITIONAL(USE_DVB, true)
|
||||
AG_GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [
|
||||
AC_MSG_CHECKING([Checking for up to date dvb installation])
|
||||
AC_CHECK_HEADER(linux/dvb/frontend.h, [
|
||||
AC_CHECK_HEADER(linux/dvb/version.h, [
|
||||
AC_MSG_CHECKING([for up-to-date dvb API])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <linux/dvb/frontend.h>]], [[
|
||||
#ifndef SYS_DVBC_ANNEX_AC
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <linux/dvb/version.h>]], [[
|
||||
#if DVB_API_VERSION < 5
|
||||
#error "Incompatible dvb API"
|
||||
#endif
|
||||
]])], [ AC_MSG_RESULT(yes)
|
||||
|
|
Loading…
Reference in a new issue