add first part of the ecore_con support. elm_map.c must be fixed.
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 10 Jul 2011 09:00:57 +0000 (09:00 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 10 Jul 2011 09:00:57 +0000 (09:00 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61193 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/elm_map.c

index 8355255..3d4f5c2 100644 (file)
@@ -218,6 +218,17 @@ PKG_CHECK_MODULES([ELEMENTARY],
    ]
 )
 
+PKG_CHECK_MODULES([ECORE_CON],
+       [ecore-con],
+       [
+        have_ecore_con="yes"
+        AC_DEFINE(HAVE_ECORE_CON, 1, [Use Ecore_Con for connections])
+        requirement_elm="ecore-con ${requirement_elm}"
+       ],
+       [have_ecore_con="no"])
+
+AM_CONDITIONAL([HAVE_ECORE_CON], [test "x${have_ecore_con}" = "xyes"])
+
 PKG_CHECK_MODULES([EIO],
        [eio],
        [
index 658f656..399af5d 100644 (file)
@@ -1,4 +1,11 @@
-#include <Ecore_Con.h>
+#ifdef HAVE_CONFIG
+# include <elementary_config.h>
+#endif
+
+#ifdef HAVE_ECORE_CON
+# include <Ecore_Con.h>
+#endif
+
 #include "Elementary.h"
 #include "elm_priv.h"