summaryrefslogtreecommitdiff
path: root/legacy/emotion
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/emotion/m4/emotion_check.m428
-rw-r--r--legacy/emotion/src/edje_external/Makefile.am2
-rw-r--r--legacy/emotion/src/modules/generic/Makefile.am2
-rw-r--r--legacy/emotion/src/modules/gstreamer/Makefile.am2
-rw-r--r--legacy/emotion/src/modules/xine/Makefile.am2
5 files changed, 32 insertions, 4 deletions
diff --git a/legacy/emotion/m4/emotion_check.m4 b/legacy/emotion/m4/emotion_check.m4
index ebd7e7e320..f70a2c3bcf 100644
--- a/legacy/emotion/m4/emotion_check.m4
+++ b/legacy/emotion/m4/emotion_check.m4
@@ -172,6 +172,34 @@ AC_ARG_ENABLE(generic-[]DOWN,
172 ], 172 ],
173 [enable_module="auto"]) 173 [enable_module="auto"])
174 174
175SHM_OPEN_LIBS=""
176AC_COMPILE_IFELSE(
177 [AC_LANG_PROGRAM(
178 [[
179#include <sys/mman.h>
180#include <sys/stat.h>
181#include <fcntl.h>
182 ]],
183 [[
184int fd;
185fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
186shm_unlink("/");
187 ]])],
188 [
189 have_shm_open="yes"
190 AC_DEFINE(HAVE_SHM_OPEN, 1, [Have shm_open() call])
191 SHM_OPEN_LIBS="-lrt"
192 ],
193 [have_shm_open="no"])
194AC_SUBST(SHM_OPEN_LIBS)
195
196AC_MSG_CHECKING([shm_open])
197AC_MSG_RESULT([${have_shm_open}])
198
199if test "x{have_shm_open)" != "xyes"; then
200 enable_generic="no"
201fi
202
175if test "x${enable_generic}" != "xyes" && test "x${enable_generic}" != "xstatic"; then 203if test "x${enable_generic}" != "xyes" && test "x${enable_generic}" != "xstatic"; then
176 if test "x${enable_module}" = "xyes"; then 204 if test "x${enable_module}" = "xyes"; then
177 AC_MSG_WARN([Generic module is disabled, force disable of Generic Player $1]) 205 AC_MSG_WARN([Generic module is disabled, force disable of Generic Player $1])
diff --git a/legacy/emotion/src/edje_external/Makefile.am b/legacy/emotion/src/edje_external/Makefile.am
index bd92c54234..9b36fafd4f 100644
--- a/legacy/emotion/src/edje_external/Makefile.am
+++ b/legacy/emotion/src/edje_external/Makefile.am
@@ -13,6 +13,6 @@ pkgdir = $(libdir)/edje/modules/emotion/$(MODULE_EDJE)
13pkg_LTLIBRARIES = module.la 13pkg_LTLIBRARIES = module.la
14 14
15module_la_SOURCES = emotion.c 15module_la_SOURCES = emotion.c
16module_la_LIBADD = $(top_builddir)/src/lib/libemotion.la @EDJE_EXTERNAL_LIBS@ 16module_la_LIBADD = @EMOTION_LIBS@ $(top_builddir)/src/lib/libemotion.la @EDJE_EXTERNAL_LIBS@
17module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version 17module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
18module_la_LIBTOOLFLAGS = --tag=disable-static 18module_la_LIBTOOLFLAGS = --tag=disable-static
diff --git a/legacy/emotion/src/modules/generic/Makefile.am b/legacy/emotion/src/modules/generic/Makefile.am
index 0e6455972f..04fbab540c 100644
--- a/legacy/emotion/src/modules/generic/Makefile.am
+++ b/legacy/emotion/src/modules/generic/Makefile.am
@@ -22,7 +22,7 @@ includesdir = $(includedir)/emotion-@VMAJ@
22noinst_HEADERS = emotion_generic.h 22noinst_HEADERS = emotion_generic.h
23 23
24em_generic_la_SOURCES = emotion_generic.c 24em_generic_la_SOURCES = emotion_generic.c
25em_generic_la_LIBADD = $(top_builddir)/src/lib/libemotion.la 25em_generic_la_LIBADD = @EMOTION_LIBS@ @SHM_OPEN_LIBS@ $(top_builddir)/src/lib/libemotion.la
26em_generic_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version 26em_generic_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
27em_generic_la_LIBTOOLFLAGS = --tag=disable-static 27em_generic_la_LIBTOOLFLAGS = --tag=disable-static
28em_generic_la_DEPENDENCIES = emotion_generic.h Emotion_Generic_Plugin.h 28em_generic_la_DEPENDENCIES = emotion_generic.h Emotion_Generic_Plugin.h
diff --git a/legacy/emotion/src/modules/gstreamer/Makefile.am b/legacy/emotion/src/modules/gstreamer/Makefile.am
index fef825e756..367251096f 100644
--- a/legacy/emotion/src/modules/gstreamer/Makefile.am
+++ b/legacy/emotion/src/modules/gstreamer/Makefile.am
@@ -26,7 +26,7 @@ emotion_alloc.c \
26emotion_fakeeos.c \ 26emotion_fakeeos.c \
27emotion_convert.c 27emotion_convert.c
28 28
29gstreamer_la_LIBADD = @ECORE_X_LIBS@ @GSTREAMER_LIBS@ @GSTREAMER_INTERFACE_LIBS@ $(top_builddir)/src/lib/libemotion.la 29gstreamer_la_LIBADD = @EMOTION_LIBS@ @ECORE_X_LIBS@ @GSTREAMER_LIBS@ @GSTREAMER_INTERFACE_LIBS@ $(top_builddir)/src/lib/libemotion.la
30gstreamer_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version 30gstreamer_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
31gstreamer_la_LIBTOOLFLAGS = --tag=disable-static 31gstreamer_la_LIBTOOLFLAGS = --tag=disable-static
32gstreamer_la_DEPENDENCIES = $(top_builddir)/config.h 32gstreamer_la_DEPENDENCIES = $(top_builddir)/config.h
diff --git a/legacy/emotion/src/modules/xine/Makefile.am b/legacy/emotion/src/modules/xine/Makefile.am
index 455e3932bf..baf8fecab5 100644
--- a/legacy/emotion/src/modules/xine/Makefile.am
+++ b/legacy/emotion/src/modules/xine/Makefile.am
@@ -23,7 +23,7 @@ xine_la_SOURCES = \
23emotion_xine.c \ 23emotion_xine.c \
24emotion_xine.h \ 24emotion_xine.h \
25emotion_xine_vo_out.c 25emotion_xine_vo_out.c
26xine_la_LIBADD = @XINE_LIBS@ $(top_builddir)/src/lib/libemotion.la -lpthread 26xine_la_LIBADD = @EMOTION_LIBS@ @XINE_LIBS@ $(top_builddir)/src/lib/libemotion.la -lpthread
27xine_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version 27xine_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
28xine_la_LIBTOOLFLAGS = --tag=disable-static 28xine_la_LIBTOOLFLAGS = --tag=disable-static
29 29