From 606c325bcde66d0a159c2b1195264db2cc0f8f13 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Tue, 23 Apr 2013 19:53:16 +0900 Subject: [PATCH] efl: add m4 macro to handle a way to enable/disable Eo API and EFL legacy API. --- configure.ac | 1 + m4/efl_eo.m4 | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 m4/efl_eo.m4 diff --git a/configure.ac b/configure.ac index 23ec83af05..82f14de512 100644 --- a/configure.ac +++ b/configure.ac @@ -379,6 +379,7 @@ esac EFL_ATTRIBUTE_VECTOR EFL_ATTRIBUTE_ALWAYS_INLINE +EFL_ENABLE_EO_API_SUPPORT EFL_LIBS="${EFL_LIBS}" EFL_CFLAGS="${EFL_CFLAGS}" diff --git a/m4/efl_eo.m4 b/m4/efl_eo.m4 new file mode 100644 index 0000000000..08065ea2d6 --- /dev/null +++ b/m4/efl_eo.m4 @@ -0,0 +1,12 @@ +dnl use: EFL_ENABLE_EO_API_SUPPORT +AC_DEFUN([EFL_ENABLE_EO_API_SUPPORT], +[ + AC_DEFINE([EFL_EO_API_SUPPORT], [1], [Enable access to unstable EFL Eo API]) +]) + +dnl use: EFL_DISABLE_LEGACY_API_SUPPORT +AC_DEFUN([EFL_DISABLE_LEGACY_API_SUPPORT], +[ + AC_DEFINE([EFL_NOLEGACY_API_SUPPORT], [1], [Disable legacy EFL API]) +]) +