]> git.sesse.net Git - vlc/blobdiff - configure.ac
Revert "Add HAVE_ANDROID define."
[vlc] / configure.ac
index 5da476e1d05b67912ad9dfdb0e0bfc75de5bc42e..e58790840c4ab54afb2d9b8653c37106eb6cb167 100644 (file)
@@ -2452,8 +2452,8 @@ dnl
 dnl CrystalHD codec plugin
 dnl
 AC_ARG_ENABLE(crystalhd,
-  [  --enable-crystalhd       crystalhd codec plugin (default disabled)])
-if test "${enable_crystalhd}" == "yes"; then
+  [  --enable-crystalhd       crystalhd codec plugin (default auto)])
+if test "${enable_crystalhd}" != "no"; then
     AC_CHECK_HEADER(libcrystalhd/libcrystalhd_if.h, [
       VLC_ADD_PLUGIN([crystalhd])
       VLC_ADD_LIBS([crystalhd], [-lcrystalhd])
@@ -2465,10 +2465,14 @@ if test "${enable_crystalhd}" == "yes"; then
             VLC_ADD_LIBS([crystalhd], [-lbcmDIL])
             ])
         ],[
-          AC_MSG_ERROR("Could not find CrystalHD development headers")
+          AS_IF([test x"${enable_crystalhd}" = "xyes"],
+                [AC_MSG_ERROR("Could not find CrystalHD development headers")],
+                [AC_MSG_WARN("Could not find CrystalHD development headers")])
+        ],[#define __LINUX_USER__
+               #include <libcrystalhd/bc_dts_types.h>
         ])
       fi
-    ],[#define __LINUX_USER__
+    ],[
        #include <libcrystalhd/bc_dts_types.h>
       ])
 fi
@@ -3176,7 +3180,6 @@ AC_ARG_ENABLE(xvideo,
     enable_xvideo="$enable_xcb"
 ])
 
-need_xid_provider="no"
 have_xcb="no"
 AS_IF([test "${enable_xcb}" != "no"], [
   dnl libxcb
@@ -3187,11 +3190,6 @@ AS_IF([test "${enable_xcb}" != "no"], [
   AS_IF([test "${enable_xvideo}" != "no"], [
     PKG_CHECK_MODULES(XCB_XV, [xcb-xv >= 1.1.90.1], [
       VLC_ADD_PLUGIN([xcb_xv])
-    ], [
-      PKG_CHECK_MODULES(XCB_XV, [xcb-xv], [
-        VLC_ADD_PLUGIN([xcb_xv])
-        VLC_ADD_CFLAGS([xcb_xv], [-DXCB_XV_OLD])
-      ])
     ])
   ])
 
@@ -3205,24 +3203,13 @@ AS_IF([test "${enable_xcb}" != "no"], [
 
   dnl xcb-utils
   PKG_CHECK_MODULES(XCB_KEYSYMS, [xcb-keysyms >= 0.3.4], [
-    have_xcb_keysyms="yes"
-  ], [
-    PKG_CHECK_MODULES(XCB_KEYSYMS, [xcb-keysyms], [
-      have_xcb_keysyms="yes"
-      VLC_ADD_CFLAGS([globalhotkeys], [-DXCB_KEYSYM_OLD_API])
-    ], [
-      have_xcb_keysyms="no"
-      need_xid_provider="yes"
-      AC_MSG_WARN([libxcb-keysyms not found. Hotkeys will not be supported.])
-    ])
-  ])
-
-  AS_IF([test "${have_xcb_keysyms}" = "yes"], [
     PKG_CHECK_MODULES(XPROTO, [xproto])
     VLC_ADD_PLUGIN([globalhotkeys])
     VLC_ADD_CFLAGS([globalhotkeys], [${XCB_KEYSYMS_CFLAGS} ${XCB_CFLAGS}])
     VLC_ADD_LIBS([globalhotkeys], [${XCB_KEYSYMS_LIBS} ${XCB_LIBS}])
     VLC_ADD_CFLAGS([xcb_window], [-DHAVE_XCB_KEYSYMS])
+  ], [
+    AC_MSG_WARN([libxcb-keysyms (0.3.4 or later) not found. Hotkeys will not work.])
   ])
 ])
 AM_CONDITIONAL([HAVE_XCB], [test "${have_xcb}" = "yes"])
@@ -3243,20 +3230,14 @@ AS_IF([test "${enable_glx}" != "no"], [
   ])
   VLC_ADD_PLUGIN([xcb_glx])
 ])
-AC_SUBST([GL_CFLAGS])
-AC_SUBST([GL_LIBS])
 
 dnl
-dnl  EGL
+dnl  OpenGL
 dnl
-AC_ARG_ENABLE(egl,
-  [  --enable-egl            EGL support (default disabled)],, [
-  enable_egl="no"
-])
-AS_IF([test "${enable_egl}" != "no"], [
-  PKG_CHECK_MODULES(EGL, [egl])
-  VLC_ADD_PLUGIN([egl])
-])
+PKG_ENABLE_MODULES_VLC([GL], [], [gl], [OpenGL support], [auto])
+PKG_ENABLE_MODULES_VLC([GLES1], [], [glesv1_cm], [OpenGL ES v1 support], [auto])
+PKG_ENABLE_MODULES_VLC([GLES2], [], [glesv2], [OpenGL ES v2 support], [auto])
+PKG_ENABLE_MODULES_VLC([EGL], [], [egl], [EGL support], [auto])
 
 dnl
 dnl  SDL module
@@ -3703,10 +3684,9 @@ AS_IF([test "${enable_skins2}" = "yes"], [
   ], [
     PKG_CHECK_MODULES([XPM], [xpm])
     PKG_CHECK_MODULES([XEXT], [xext])
-    VLC_ADD_CPPFLAGS([skins2],[-Imodules/gui/skins2 ${X_CFLAGS} ${XEXT_CFLAGS} {XPM_CFLAGS} -DX11_SKINS])
+    VLC_ADD_CPPFLAGS([skins2],[-Imodules/gui/skins2 ${X_CFLAGS} ${XEXT_CFLAGS} ${XPM_CFLAGS} -DX11_SKINS])
     VLC_ADD_CXXFLAGS([skins2],[-O2 -fno-rtti])
     VLC_ADD_LIBS([skins2],[${X_LIBS} ${X_PRE_LIBS} ${XEXT_LIBS} ${XPM_LIBS} -lX11])
-    need_xid_provider="no"
 
   ])
   VLC_ADD_PLUGIN([skins2])
@@ -3731,7 +3711,6 @@ AS_IF([test "${enable_hildon}" = "yes"], [
     VLC_ADD_LIBS([hildon],[${HILDON_LIBS} ${X_LIBS} ${X_PRE_LIBS} -lX11])
     VLC_ADD_PLUGIN([hildon])
     ALIASES="${ALIASES} mvlc"
-    need_xid_provider="no"
   ], [
     AS_IF([test "${enable_hildon}" = "yes"],[
       AC_MSG_ERROR([Hildon libraries not found])
@@ -3768,7 +3747,6 @@ AS_IF([test "${enable_qt4}" != "no"], [
     ], [
       AC_MSG_RESULT([yes])
       VLC_ADD_LIBS([qt4],[${X_LIBS} ${X_PRE_LIBS} -lX11])
-      need_xid_provider="no"
       VLC_ADD_CXXFLAGS([qt4],[${X_CFLAGS}])
     ], [
       AC_MSG_RESULT([no])
@@ -3937,13 +3915,6 @@ then
  ])
 fi
 
-dnl
-dnl Post-interface configuration checks
-dnl
-AS_IF([test "$need_xid_provider" = "yes"], [
-  AC_MSG_ERROR([X11 video outputs need a window provider (Qt4, Skins2, Hildon or xcb-utils), but none were found. Please install xcb-keysyms.])
-])
-
 dnl
 dnl Visualisation plugin
 dnl
@@ -4074,11 +4045,8 @@ AS_IF([test "${enable_gnutls}" != "no"], [
       dnl pkg-config --libs gnutls omits these
       VLC_ADD_LIBS([gnutls], [-lz ${LTLIBINTL}])
     ])
-    dnl The GnuTLS plugin invokes gcry_control directly.
-    AS_IF([test "${have_libgcrypt}" = "yes"],[
-      VLC_ADD_LIBS([gnutls], [${GCRYPT_LIBS}])
-      VLC_ADD_CFLAGS([gnutls], [${GCRYPT_CFLAGS}])
-    ])
+    VLC_ADD_LIBS([gnutls], [${GCRYPT_LIBS}])
+    VLC_ADD_CFLAGS([gnutls], [${GCRYPT_CFLAGS}])
     VLC_ADD_LIBS([gnutls], [$GNUTLS_LIBS])
   ], [
     AS_IF([test "${enable_gnutls}" = "yes"], [
@@ -4183,11 +4151,7 @@ dnl
 AC_ARG_ENABLE(media-library, [--enable-media-library media library (default disabled)])
 if test "${enable_media_library}" == "yes"; then
     if test "${enable_sqlite}" != "yes"; then
-        if test "${enable_media_library}" == "yes"; then
-            AC_MSG_ERROR([SQLite module is required for the media library])
-        else
-            AC_MSG_WARN([SQLite module is required for the media library])
-        fi
+       AC_MSG_ERROR([SQLite module is required for the media library])
     else
        AC_DEFINE([MEDIA_LIBRARY], 1, [Define if you want to use the VLC media library])
        VLC_ADD_CPPFLAGS([qt4],"-DMEDIA_LIBRARY")
@@ -4421,10 +4385,10 @@ AC_CONFIG_FILES([
   modules/gui/macosx_dialog_provider/Makefile
   modules/gui/qt4/Makefile
   modules/gui/skins2/Makefile
+  modules/lua/Makefile
   modules/meta_engine/Makefile
   modules/misc/Makefile
   modules/misc/dummy/Makefile
-  modules/misc/lua/Makefile
   modules/misc/notify/Makefile
   modules/misc/playlist/Makefile
   modules/misc/osd/Makefile