fix ecore_evas_extn checks.. (shm_open checks too) to work.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Feb 2012 05:56:36 +0000 (05:56 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Feb 2012 05:56:36 +0000 (05:56 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@68302 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/ecore_evas/Makefile.am

index 0c39401..2fcf89e 100644 (file)
@@ -1392,16 +1392,26 @@ if ! test "x${have_atfile_source}" = "xno" ; then
       ])
 fi
 
+SHM_OPEN_LIBS=""
 AC_COMPILE_IFELSE(
    [AC_LANG_PROGRAM(
        [[
-#include <mman.h>
+#include <sys/mman.h>
+#include <sys/stat.h>
+#include <fcntl.h>
        ]],
        [[
-int i = shm_open(NULL, 0, 0);
+int fd;
+fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
+shm_unlink("/");
        ]])],
-   [have_shm_open="yes"],
+   [
+    have_shm_open="yes"
+    AC_DEFINE(HAVE_SHM_OPEN, 1, [Have shm_open() call])
+    SHM_OPEN_LIBS="-lrt"
+   ],
    [have_shm_open="no"])
+AC_SUBST(SHM_OPEN_LIBS)
 
 AC_MSG_CHECKING([shm_open])
 AC_MSG_RESULT([${have_shm_open}])
@@ -1862,11 +1872,13 @@ if test "x${have_ecore_ipc}" = "xno" || \
    have_extn="no"
 fi
 
-ECORE_EVAS_CHECK_MODULE([extn],
-   [${want_ecore_evas_extn}],
-   [Extension],
-   [${have_extn}],
-   [requirements_ecore_evas="ecore-evas-software-buffer >= 1.1.99 ecore-ipc >= 1.1.99 ${requirements_ecore_evas}"])
+dnl THIS IS SPECIAL - dont use normal ECORE_EVAS_CHECK_MODULE
+have_ecore_evas_extn="no"
+if test "x${want_ecore_evas_extn}" = "xyes" && \
+   test "x${have_ecore_evas}" = "xyes"; then
+   AC_DEFINE([BUILD_ECORE_EVAS_EXTN], [1], [Support for Extn Engine in Ecore_Evas])
+   have_ecore_evas_extn="yes"
+fi
 
 # ecore_evas_psl1ght
 
@@ -2143,6 +2155,7 @@ if test "x${have_ecore_evas}" = "xyes" ; then
   echo "    Sing.Proc. Windowing System: $have_ecore_evas_ews"
   echo "    Wayland Shm................: $have_ecore_evas_wayland_shm"
   echo "    Wayland Egl................: $have_ecore_evas_wayland_egl"
+  echo "    Extn (Plug/socket Extn)....: $have_ecore_evas_extn"
 fi
 echo
 echo "  Tests................: ${enable_tests}"
index a1d9215..c85af09 100644 (file)
@@ -151,6 +151,7 @@ $(top_builddir)/src/lib/ecore/libecore.la \
 @EVAS_LIBS@ \
 @EINA_LIBS@ \
 @EVIL_LIBS@ \
+@SHM_OPEN_LIBS@ \
 @WAYLAND_EGL_LIBS@
 
 libecore_evas_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@