Emotion: Really disable vlc
[profile/ivi/emotion.git] / configure.ac
index 5c10c7d..8cdf17b 100644 (file)
@@ -54,6 +54,7 @@ VMAJ=v_maj
 AC_SUBST(VMAJ)
 
 want_vlc="no"
+want_generic="yes"
 case "$host_os" in
    mingw* | cegcc*)
       want_xine="no"
@@ -109,7 +110,7 @@ PKG_CHECK_MODULES(EMOTION, [eina >= 1.0.0 evas >= 1.0.0 ecore >= 1.0.0])
 requirement_emotion="ecore >= 1.0.0 evas >= 1.0.0 eina >= 1.0.0"
 
 if test "x${have_emotion_test}" = "xyes" ; then
-   PKG_CHECK_MODULES(EMOTION_BIN, [evas >= 1.0.0 ecore >= 1.0.0 ecore-evas >= 1.0.0 edje >= 1.0.0])
+   PKG_CHECK_MODULES(EMOTION_BIN, [eina >= 1.0.0 evas >= 1.0.0 ecore >= 1.0.0 ecore-evas >= 1.0.0 edje >= 1.0.0])
 fi
 
 PKG_CHECK_MODULES(ECORE_X, [ecore-x >= 1.0.0], [have_ecore_x="yes"], [have_ecore_x="no"])
@@ -134,6 +135,12 @@ PKG_CHECK_EXISTS([evas-fb >= 1.0.0], [AC_DEFINE(HAVE_EVAS_FB, 1, [Evas Framebuff
 
 EFL_EDJE_EXTERNAL([have_edje_external="yes"], [have_edje_external="no"])
 
+PKG_CHECK_MODULES(EEZE, [eeze >= 1.0.99], [have_eeze="yes"], [have_eeze="no"])
+
+if test "x${have_eeze}" = "xyes"; then
+   AC_DEFINE(EMOTION_HAVE_EEZE, 1, [Define to 1 if Eeze is available])
+   requirement_emotion="${requirement_emotion} eeze >= 1.0.99"
+fi
 
 ### Checks for header files
 AC_HEADER_STDC
@@ -177,12 +184,54 @@ case "$host_os" in
 esac
 AC_SUBST(lt_enable_auto_import)
 
+### Check for extended attribute
+
+AC_COMPILE_IFELSE(
+   [AC_LANG_PROGRAM(
+       [[
+#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/xattr.h>
+       ]],
+       [[
+size_t tmp = listxattr("/", NULL, 0);
+tmp = getxattr("/", "user.ethumb.md5", NULL, 0);
+setxattr("/", "user.ethumb.md5", NULL, 0, 0);
+       ]])],
+    [
+      AC_DEFINE(HAVE_XATTR, 1, [Define to 1 if you have 'listxattr', 'setxattr' and 'getxattr'])
+      have_xattr="yes"
+    ],
+    [have_xattr="no"])
+
+AC_MSG_CHECKING([for Xattr])
+AC_MSG_RESULT([${have_xattr}])
+
+### Check for video4linux
+
+AC_COMPILE_IFELSE(
+   [AC_LANG_PROGRAM(
+       [[
+#include <stdio.h>
+#include <linux/videodev2.h>
+       ]],
+       [[
+fprintf(stdout, "%i\n", V4L2_CAP_VIDEO_CAPTURE);
+       ]])],
+   [
+     AC_DEFINE(HAVE_V4L2, 1, [Define to 1 if you have Video4Linux 2 available])
+     have_v4l2="yes"
+   ],
+   [have_v4l2="no"])
+AC_MSG_CHECKING([for V4L2])
+AC_MSG_RESULT([${have_v4l2}])
 
 ### Modules
 
 EMOTION_CHECK_MODULE([Xine], [${want_xine}])
 EMOTION_CHECK_MODULE([Gstreamer], [${want_gstreamer}])
-EMOTION_CHECK_MODULE([VLC], [${want_vlc}])
+#disabled vlc EMOTION_CHECK_MODULE([VLC], [${want_vlc}])
+EMOTION_CHECK_MODULE([generic], [${want_generic}])
 
 #disabled vlc
 #if test "x${enable_xine}" = "xno" && test "x${enable_gstreamer}" = "xno" && test "x${enable_vlc}" = "xno" ; then
@@ -192,6 +241,22 @@ if test "x${enable_xine}" = "xno" && test "x${enable_gstreamer}" = "xno"; then
    AC_MSG_ERROR([Xine or Gstreamer backends must be selected to build Emotion])
 fi
 
+PKG_CHECK_MODULES([EIO],
+       [eio],
+       [
+        have_eio="yes"
+        AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
+        requirement_emotion="eio ${requirement_emotion}"
+       ],
+       [have_eio="no"])
+
+AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
+
+### install and build examples
+
+EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
+EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
+
 AC_SUBST(requirement_emotion)
 
 #disabled vlc
@@ -206,8 +271,14 @@ src/lib/Makefile
 src/modules/Makefile
 src/modules/xine/Makefile
 src/modules/gstreamer/Makefile
+src/modules/generic/Makefile
 src/edje_external/Makefile
+src/generic_players/Makefile
+src/generic_players/vlc/Makefile
 src/bin/Makefile
+src/examples/Makefile
+doc/Makefile
+doc/Doxyfile
 data/Makefile
 ])
 
@@ -234,6 +305,14 @@ echo "  edje_cc..............: ${edje_cc}"
 echo
 echo "  Edje EXTERNAL support: ${have_edje_external}"
 echo
+echo "  Xattr................: ${have_xattr}"
+echo "  Eio..................: ${have_eio}"
+echo "  V4L2.................: ${have_v4l2}"
+echo
+echo "Documentation..........: ${build_doc}"
+echo "Examples.............: ${enable_build_examples}"
+echo "Examples installed...: ${enable_install_examples}"
+echo
 echo "Compilation............: make (or gmake)"
 echo "  CPPFLAGS.............: $CPPFLAGS"
 echo "  CFLAGS...............: $CFLAGS"