]> git.sesse.net Git - vlc/commitdiff
Default enable telx when zvbi is not present
authorChristophe Mutricy <xtophe@videolan.org>
Tue, 9 Sep 2008 19:13:14 +0000 (20:13 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Wed, 10 Sep 2008 22:07:13 +0000 (23:07 +0100)
configure.ac

index eb7a6274764a5a6291c0d159c5925292ff185b57..052c232ec8f301cd05e70a29fe1113246d2319a4 100644 (file)
@@ -3670,12 +3670,9 @@ AC_ARG_ENABLE(zvbi,
                  libzvbi (default enabled)]))
 AC_ARG_ENABLE(telx,
   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_telx}" = "yes"],[
-    AC_MSG_ERROR([The zvbi and telx modules are uncompatibles. Disable the other if you enable one.])
-  ],[
     PKG_CHECK_MODULES(ZVBI,
        zvbi-0.2 >= 0.2.25,
        [
@@ -3683,13 +3680,15 @@ AS_IF( [test "${enable_zvbi}" != "no"],[
          VLC_ADD_CFLAGS([zvbi],[$ZVBI_CFLAGS])
           VLC_ADD_PLUGIN([zvbi])
          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)
-         enable_telx="yes"
        ])
     ])  
-  ])
-AS_IF( [test "${enable_telx}" = "yes"],[
+AS_IF( [test "${enable_telx}" !=no ],[
   VLC_ADD_PLUGIN([telx])
   ])