From 2e130b0de9be80a67bf387bf91c1cf3e0aff8c1a Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 10 Jul 2011 09:00:57 +0000 Subject: [PATCH] add first part of the ecore_con support. elm_map.c must be fixed. SVN revision: 61193 --- legacy/elementary/configure.ac | 11 +++++++++++ legacy/elementary/src/lib/elm_map.c | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/configure.ac b/legacy/elementary/configure.ac index 8355255591..3d4f5c223c 100644 --- a/legacy/elementary/configure.ac +++ b/legacy/elementary/configure.ac @@ -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], [ diff --git a/legacy/elementary/src/lib/elm_map.c b/legacy/elementary/src/lib/elm_map.c index 658f656ef0..399af5d189 100644 --- a/legacy/elementary/src/lib/elm_map.c +++ b/legacy/elementary/src/lib/elm_map.c @@ -1,4 +1,11 @@ -#include +#ifdef HAVE_CONFIG +# include +#endif + +#ifdef HAVE_ECORE_CON +# include +#endif + #include "Elementary.h" #include "elm_priv.h"