Commit cf4c4623 authored by Christophe Mutricy's avatar Christophe Mutricy Committed by Derk-Jan Hartman

Default enable telx when zvbi is not present

(cherry picked from commit 628a18b6)
parent 26a073f7
...@@ -3728,12 +3728,9 @@ AC_ARG_ENABLE(zvbi, ...@@ -3728,12 +3728,9 @@ AC_ARG_ENABLE(zvbi,
libzvbi (default enabled)])) libzvbi (default enabled)]))
AC_ARG_ENABLE(telx, AC_ARG_ENABLE(telx,
AS_HELP_STRING([--enable-telx],[Teletext decoding module (conflicting with AS_HELP_STRING([--enable-telx],[Teletext decoding module (conflicting with
zvbi) (default disabled)])) zvbi) (default enabled if zvbi is absent)]))
AS_IF( [test "${enable_zvbi}" != "no"],[ AS_IF( [test "${enable_zvbi}" != "no"],[
AS_IF( [test "${enable_telx}" = "yes"],[
AC_MSG_ERROR([The zvbi and telx modules are uncompatibles. Disable the other if you enable one.])
],[
PKG_CHECK_MODULES(ZVBI, PKG_CHECK_MODULES(ZVBI,
zvbi-0.2 >= 0.2.25, zvbi-0.2 >= 0.2.25,
[ [
...@@ -3741,13 +3738,15 @@ AS_IF( [test "${enable_zvbi}" != "no"],[ ...@@ -3741,13 +3738,15 @@ AS_IF( [test "${enable_zvbi}" != "no"],[
VLC_ADD_CFLAGS([zvbi],[$ZVBI_CFLAGS]) VLC_ADD_CFLAGS([zvbi],[$ZVBI_CFLAGS])
VLC_ADD_PLUGIN([zvbi]) VLC_ADD_PLUGIN([zvbi])
AC_DEFINE(ZVBI_COMPILED, 1, [Define if the zvbi module is built]) AC_DEFINE(ZVBI_COMPILED, 1, [Define if the zvbi module is built])
AS_IF( [test "${enable_telx}" = "yes"],[
AC_MSG_WARN([The zvbi and telx modules are uncompatibles.
Using zvbi.])
])
],[ ],[
AC_MSG_WARN(ZVBI library not found. Enabling the telx module instead) AC_MSG_WARN(ZVBI library not found. Enabling the telx module instead)
enable_telx="yes"
])
]) ])
]) ])
AS_IF( [test "${enable_telx}" = "yes"],[ AS_IF( [test "${enable_telx}" !=no ],[
VLC_ADD_PLUGIN([telx]) VLC_ADD_PLUGIN([telx])
]) ])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment