On Fri, Feb 24, 2012 at 12:16 PM, Enlightenment SVN
<no-re...@enlightenment.org> wrote:
> Log:
> embryo: add Exotic support.
>
>
> Author:       cedric
> Date:         2012-02-24 03:16:23 -0800 (Fri, 24 Feb 2012)
> New Revision: 68399
> Trac:         http://trac.enlightenment.org/e/changeset/68399
>
> Added:
>  trunk/embryo/m4/efl_gettimeofday.m4

i'm not fond of that one : gettimeofday must be implemented in your
lib. Hence no m4 macro

Vincent

> Modified:
>  trunk/embryo/configure.ac trunk/embryo/m4/efl_fnmatch.m4 
> trunk/embryo/src/lib/embryo_amx.c trunk/embryo/src/lib/embryo_str.c 
> trunk/embryo/src/lib/embryo_time.c
>
> Modified: trunk/embryo/configure.ac
> ===================================================================
> --- trunk/embryo/configure.ac   2012-02-24 11:15:14 UTC (rev 68398)
> +++ trunk/embryo/configure.ac   2012-02-24 11:16:23 UTC (rev 68399)
> @@ -109,6 +109,21 @@
>  # For embryo_cc_prefix.c
>  PKG_CHECK_MODULES([EINA], [eina >= 1.1.0])
>
> +### Checks for portability layer
> +
> +PKG_CHECK_MODULES([EXOTIC],
> +   [exotic],
> +   [enable_exotic="yes"],
> +   [enable_exotic="no"])
> +
> +if test "x${enable_exotic}" = "xyes"; then
> +    requirement_eina="exotic ${requirement_eina}"
> +    EINA_CFLAGS="${EINA_CFLAGS} ${EXOTIC_CFLAGS}"
> +    EINA_LIBS="${EXOTIC_LIBS}"
> +
> +    AC_DEFINE([HAVE_EXOTIC], [1], [Define to 1 if you have Exotic.])
> +fi
> +
>  ### Checks for header files
>
>  AC_CHECK_HEADERS([unistd.h])
> @@ -167,7 +182,7 @@
>       AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defined to 1 (MinGW platform)])
>       ;;
>    *)
> -      AC_CHECK_FUNCS(gettimeofday)
> +      EFL_CHECK_GETTIMEOFDAY([], [AC_MSG_ERROR([Cannot find 
> gettimeofday()])])
>       ;;
>  esac
>
>
> Modified: trunk/embryo/m4/efl_fnmatch.m4
> ===================================================================
> --- trunk/embryo/m4/efl_fnmatch.m4      2012-02-24 11:15:14 UTC (rev 68398)
> +++ trunk/embryo/m4/efl_fnmatch.m4      2012-02-24 11:16:23 UTC (rev 68399)
> @@ -13,7 +13,7 @@
>
>  if test "x${_efl_have_fnmatch}" = "xyes" ; then
>    AC_SEARCH_LIBS([fnmatch],
> -      [fnmatch evil iberty],
> +      [fnmatch evil exotic iberty],
>       [_efl_have_fnmatch="yes"],
>       [_efl_have_fnmatch="no"])
>  fi
>
> Modified: trunk/embryo/src/lib/embryo_amx.c
> ===================================================================
> --- trunk/embryo/src/lib/embryo_amx.c   2012-02-24 11:15:14 UTC (rev 68398)
> +++ trunk/embryo/src/lib/embryo_amx.c   2012-02-24 11:16:23 UTC (rev 68399)
> @@ -29,6 +29,10 @@
>  #include <stdio.h>
>  #include <string.h>
>
> +#ifdef HAVE_EXOTIC
> +# include <Exotic.h>
> +#endif
> +
>  #include "Embryo.h"
>  #include "embryo_private.h"
>
>
> Modified: trunk/embryo/src/lib/embryo_str.c
> ===================================================================
> --- trunk/embryo/src/lib/embryo_str.c   2012-02-24 11:15:14 UTC (rev 68398)
> +++ trunk/embryo/src/lib/embryo_str.c   2012-02-24 11:16:23 UTC (rev 68399)
> @@ -28,6 +28,10 @@
>  # endif
>  #endif
>
> +#ifdef HAVE_EXOTIC
> +# include <Exotic.h>
> +#endif
> +
>  #include <stdlib.h>
>  #include <stdio.h>
>  #include <string.h>
>
> Modified: trunk/embryo/src/lib/embryo_time.c
> ===================================================================
> --- trunk/embryo/src/lib/embryo_time.c  2012-02-24 11:15:14 UTC (rev 68398)
> +++ trunk/embryo/src/lib/embryo_time.c  2012-02-24 11:16:23 UTC (rev 68399)
> @@ -2,7 +2,7 @@
>  # include "config.h"
>  #endif
>
> -#ifndef HAVE_GETTIMEOFDAY
> +#ifndef EFL_HAVE_GETTIMEOFDAY
>  # error "Your platform isn't supported yet"
>  #endif
>
> @@ -17,6 +17,10 @@
>  # include <Evil.h>
>  #endif
>
> +#ifdef HAVE_EXOTIC
> +# include <Exotic.h>
> +#endif
> +
>  #include "Embryo.h"
>  #include "embryo_private.h"
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to