summaryrefslogtreecommitdiff
path: root/m4/emotion_module.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/emotion_module.m4')
-rw-r--r--m4/emotion_module.m4133
1 files changed, 0 insertions, 133 deletions
diff --git a/m4/emotion_module.m4 b/m4/emotion_module.m4
deleted file mode 100644
index 184533f..0000000
--- a/m4/emotion_module.m4
+++ /dev/null
@@ -1,133 +0,0 @@
1dnl use: EMOTION_MODULE_DEP_CHECK_XINE(want_engine)
2dnl where want_engine = yes or static
3AC_DEFUN([EMOTION_MODULE_DEP_CHECK_XINE],
4[dnl
5 requirements="libxine >= 1.1.1"
6 if test "$1" = "static"; then
7 EFL_DEPEND_PKG([EMOTION], [EMOTION_MODULE_XINE], [${requirements}])
8 else
9 PKG_CHECK_MODULES([EMOTION_MODULE_XINE], [${requirements}])
10 fi
11])
12
13dnl use: EMOTION_MODULE_DEP_CHECK_GSTREAMER(want_static)
14dnl where want_engine = yes or static
15AC_DEFUN([EMOTION_MODULE_DEP_CHECK_GSTREAMER],
16[dnl
17 GST_VER=0.10.2
18 requirements="gstreamer-0.10 >= ${GST_VER} gstreamer-plugins-base-0.10 >= ${GST_VER} gstreamer-video-0.10 >= ${GST_VER} gstreamer-interfaces-0.10 >= ${GST_VER}"
19 have_gst_xoverlay="no"
20 if test "$1" = "static"; then
21 EFL_DEPEND_PKG([EMOTION], [EMOTION_MODULE_GSTREAMER], [${requirements}])
22 else
23 PKG_CHECK_MODULES([EMOTION_MODULE_GSTREAMER], [${requirements}])
24 fi
25
26 if test "${want_x11_any}" = "yes"; then
27 if test "$1" = "static"; then # we need gstreamer cflags and libs to test xoverlay support
28 PKG_CHECK_MODULES([EMOTION_MODULE_GSTREAMER], [${requirements}])
29 fi
30 CFLAGS_save="${CFLAGS}"
31 CFLAGS="${CFLAGS} ${EMOTION_MODULE_GSTREAMER_CFLAGS}"
32 AC_CHECK_HEADER([gst/interfaces/xoverlay.h],
33 [have_gst_xoverlay="old" # will check for "new" later with AC_CHECK_LIB()
34 AC_DEFINE(HAVE_XOVERLAY_H, 1, [Build with Gstreamer Xoverlay support])],
35 [AC_MSG_WARN([Building Gstreamer with X11 but no gst/interfaces/xoverlay.h found])],
36 [#include <gst/gst.h>])
37 CFLAGS="${CFLAGS_save}"
38
39 LDFLAGS_save=${LDFLAGS}
40 LDFLAGS="${LDFLAGS} ${EMOTION_MODULE_GSTREAMER_LIBS}"
41 AC_CHECK_LIB([gstinterfaces-0.10], [gst_x_overlay_set_window_handle],
42 [have_gst_xoverlay="new"
43 AC_DEFINE([HAVE_X_OVERLAY_SET], [1], [Use gst_x_overlay_set_window_handle instead of old deprecated gst_x_overlay_set_xwindow_id])])
44 LDFLAGS="${LDFLAGS_save}"
45 fi
46])
47
48dnl use: EMOTION_MODULE_DEP_CHECK_GSTREAMER_1(want_static)
49dnl where want_engine = yes or static
50AC_DEFUN([EMOTION_MODULE_DEP_CHECK_GSTREAMER1],
51[dnl
52 GST_VER=1.0
53 requirements="gstreamer-1.0 >= ${GST_VER} gstreamer-plugins-base-1.0 >= ${GST_VER} gstreamer-video-1.0 >= ${GST_VER} gstreamer-audio-1.0 >= ${GST_VER} gstreamer-tag-1.0 >= ${GST_VER} gstreamer-pbutils-1.0 >= ${GST_VER}"
54 if test "$1" = "static"; then
55 EFL_DEPEND_PKG([EMOTION], [EMOTION_MODULE_GSTREAMER1], [${requirements}])
56 else
57 PKG_CHECK_MODULES([EMOTION_MODULE_GSTREAMER1], [${requirements}])
58 fi
59])
60
61
62dnl use: EMOTION_MODULE_DEP_CHECK_LIBVLC(want_static)
63dnl where want_engine = yes or static
64AC_DEFUN([EMOTION_MODULE_DEP_CHECK_LIBVLC],
65[dnl
66 LIBVLC_VER=3.0
67 requirements="libvlc >= ${LIBVLC_VER}"
68 if test "$1" = "static"; then
69 EFL_DEPEND_PKG([EMOTION], [EMOTION_MODULE_LIBVLC], [${requirements}])
70 else
71 PKG_CHECK_MODULES([EMOTION_MODULE_LIBVLC], [${requirements}])
72 fi
73])
74
75dnl use: EMOTION_MODULE_DEP_CHECK_GENERIC(want_static)
76dnl where want_engine = yes or static
77AC_DEFUN([EMOTION_MODULE_DEP_CHECK_GENERIC],
78[dnl
79 if test "$1" = "static"; then
80 EFL_ADD_LIBS([EMOTION], [${requirements_libs_shm}])
81 else
82 EMOTION_MODULE_GENERIC_CFLAGS=""
83 EMOTION_MODULE_GENERIC_LIBS="${requirements_libs_shm}"
84 AC_SUBST([EMOTION_MODULE_GENERIC_CFLAGS])
85 AC_SUBST([EMOTION_MODULE_GENERIC_LIBS])
86 fi
87])
88
89dnl use: EMOTION_MODULE(name, want_engine)
90dnl
91dnl defines EMOTION_BUILD_NAME if it should be built
92dnl defines EMOTION_STATIC_BUILD_NAME if should be built statically
93dnl
94AC_DEFUN([EMOTION_MODULE],
95[
96m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
97m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
98
99want_engine="$2"
100want_static_engine="no"
101have_engine="no"
102have_emotion_module_[]DOWN="no"
103
104EMOTION_MODULE_[]m4_defn([UP])[]_CFLAGS=""
105EMOTION_MODULE_[]m4_defn([UP])[]_LIBS=""
106
107if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic"; then
108
109 m4_default([EMOTION_MODULE_DEP_CHECK_]m4_defn([UP]))([${want_engine}])
110
111 have_engine="yes"
112 if test "x${want_engine}" = "xstatic" ; then
113 have_emotion_module_[]DOWN="static"
114 want_static_engine="yes"
115 else
116 have_emotion_module_[]DOWN="yes"
117 fi
118fi
119
120AC_DEFINE_IF(EMOTION_BUILD_[]UP, [test "${have_engine}" = "yes"],
121 [1], [Build $1 Evas engine])
122AM_CONDITIONAL(EMOTION_BUILD_[]UP, [test "${have_engine}" = "yes"])
123
124AC_DEFINE_IF(EMOTION_STATIC_BUILD_[]UP, [test "${want_static_engine}" = "yes"],
125 [1], [Build $1 Evas engine inside libevas])
126AM_CONDITIONAL(EMOTION_STATIC_BUILD_[]UP, [test "${want_static_engine}" = "yes"])
127
128AC_SUBST([EMOTION_MODULE_]m4_defn([UP])[_CFLAGS])
129AC_SUBST([EMOTION_MODULE_]m4_defn([UP])[_LIBS])
130
131m4_popdef([UP])
132m4_popdef([DOWN])
133])