2010-05-28 23:28:25 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2010-08-16 01:17:24 -07:00
m4_define([v_maj], [1])
2012-03-16 21:17:29 -07:00
m4_define([v_min], [2])
m4_define([v_mic], [0])
2012-01-07 23:21:24 -08:00
m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n' | sed 's/Unversioneddirectory/0/' | tr -d '\n']))
2010-06-03 18:04:24 -07:00
m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
2010-05-28 23:28:25 -07:00
##-- When released, remove the dnl on the below line
2012-03-16 21:17:29 -07:00
m4_undefine([v_rev])
2010-05-28 23:28:25 -07:00
##-- When doing snapshots - change soname. remove dnl on below line
2010-08-16 01:17:24 -07:00
dnl m4_define([relname], [ver-pre-svn-07])
dnl m4_define([v_rel], [-release relname])
2010-05-28 23:28:25 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2010-08-16 01:17:24 -07:00
m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
2011-03-27 11:10:20 -07:00
m4_define([lt_cur], m4_eval(v_maj + v_min))
m4_define([lt_rev], v_mic)
2010-05-28 23:28:25 -07:00
m4_define([lt_age], v_min)
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2012-03-16 21:17:29 -07:00
AC_INIT([ecore], [v_ver]-alpha, [enlightenment-devel@lists.sourceforge.net])
2009-03-13 09:35:16 -07:00
AC_PREREQ([2.52])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
2011-01-06 10:36:31 -08:00
AC_CONFIG_HEADERS([config.h])
AH_TOP([
#ifndef EFL_CONFIG_H__
#define EFL_CONFIG_H__
])
AH_BOTTOM([
#endif /* EFL_CONFIG_H__ */
])
2007-11-04 01:29:20 -08:00
2009-10-06 09:55:02 -07:00
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2009-04-11 00:10:12 -07:00
AC_GNU_SOURCE
2003-09-23 01:09:32 -07:00
2007-11-04 01:29:20 -08:00
AC_LIBTOOL_WIN32_DLL
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
2007-08-26 04:17:21 -07:00
2010-05-28 23:28:25 -07:00
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
m4_ifdef([v_rel], , [m4_define([v_rel], [])])
2010-05-29 06:59:42 -07:00
AC_DEFINE_UNQUOTED(VERS_MAJ, [v_maj], [Major version])
2010-05-29 06:56:21 -07:00
AC_DEFINE_UNQUOTED(VERS_MIN, [v_min], [Minor version])
2010-05-29 06:59:42 -07:00
AC_DEFINE_UNQUOTED(VERS_MIC, [v_mic], [Micro version])
AC_DEFINE_UNQUOTED(VERS_REV, [v_rev], [Revison])
2011-03-27 11:10:20 -07:00
version_info="lt_cur:lt_rev:lt_age"
2010-05-28 23:28:25 -07:00
release_info="v_rel"
2007-11-04 01:29:20 -08:00
AC_SUBST(version_info)
2010-05-28 23:28:25 -07:00
AC_SUBST(release_info)
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2010-07-08 23:23:19 -07:00
VMAJ=v_maj
AC_SUBST(VMAJ)
2009-05-13 14:54:36 -07:00
2010-06-17 23:36:21 -07:00
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
2011-09-26 14:50:50 -07:00
AM_GNU_GETTEXT_VERSION([0.17])
2010-06-17 23:36:21 -07:00
])
m4_ifdef([AM_GNU_GETTEXT], [
2010-06-08 16:28:36 -07:00
AM_GNU_GETTEXT([external])
2011-06-06 00:00:24 -07:00
po_makefile_in=po/Makefile.in
2011-10-19 10:21:33 -07:00
have_po="yes"
2010-06-17 23:36:21 -07:00
],[
2011-10-19 10:21:33 -07:00
have_po="no"
2010-06-17 23:36:21 -07:00
])
AC_SUBST(LTLIBINTL)
2009-09-01 10:27:23 -07:00
2011-10-19 10:21:33 -07:00
if test "x${POSUB}" = "x" ; then
have_po="no"
fi
AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
2010-02-25 12:28:15 -08:00
with_max_log_level="<unset>"
AC_ARG_WITH(internal-maximum-log-level,
[AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER],
[limit ecore internal log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
[
if test "x${withval}" != "xno"; then
2011-11-10 11:27:12 -08:00
if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then
2010-02-25 12:28:15 -08:00
AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.])
with_max_log_level="${withval}"
else
AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.])
fi
fi
], [:])
2009-03-13 09:35:16 -07:00
### Default options with respect to host
2011-01-06 10:36:31 -08:00
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
2009-03-13 09:35:16 -07:00
# dependencies and options
want_curl="no"
2011-09-29 14:05:32 -07:00
want_local_sockets="yes"
2009-03-13 09:35:16 -07:00
want_abstract_sockets="no"
want_gnutls="no"
want_openssl="no"
2009-12-03 02:26:40 -08:00
want_cares="no"
2009-03-13 09:35:16 -07:00
want_cipher="no"
want_signature="no"
want_poll="yes"
want_inotify="no"
2009-11-11 09:45:55 -08:00
want_notify_win32="no"
2009-03-13 09:35:16 -07:00
want_tslib="no"
welcome glib main loop integration support.
that's it, it's here... tested and works fine, please try with your
favorite gmainloop dependent library and report problems. Suggestions:
* GConf to access Gnome and its applications settings.
* GtkSettings to access other properties of Gnome and its applications.
* GUPnP (okay, we have EUPnP, but they have more features so far)
* Rygel, based on GUPnP.
* Libsoup, SOAP and HTTP access, useful for web access and required
by other libraries.
* Mojito, by Moblin, access to various web2.0 services like flickr,
picasa, twitter...
And last but not least, this enables Flash plugin on WebKit-EFL and
may enable us to get Google Gadgets sooner (before someone writes a
proper EFL backend).
Support is auto-detected at compile time but can be disabled with
--disable-glib. Runtime support is not enabled by default (so
compiling with it will just link yet another library), one needs to
call ecore_main_loop_glib_integrate() to do so.
Thanks to INdT folks that provided the initial implementation. I
rewrote it to make it correct, but the idea was good.
SVN revision: 42825
2009-09-30 20:56:38 -07:00
want_glib="no"
2009-03-13 09:35:16 -07:00
# core modules
2010-02-25 16:20:34 -08:00
want_ecore_con="yes"
2011-05-14 11:30:43 -07:00
want_ecore_ipc="yes"
2009-03-13 09:35:16 -07:00
want_ecore_file="yes"
2010-08-23 23:37:37 -07:00
#want_ecore_config="no"
2009-03-13 09:35:16 -07:00
want_ecore_imf="no"
2009-03-19 10:40:51 -07:00
want_ecore_input="yes"
2009-03-13 09:35:16 -07:00
# graphic system modules
want_evas_simple_x11="no"
want_ecore_x_xcb="no"
want_ecore_x="no"
want_ecore_win32="no"
2010-03-27 11:28:50 -07:00
want_ecore_cocoa="no"
2009-03-13 09:35:16 -07:00
want_ecore_sdl="no"
2011-11-05 10:49:55 -07:00
want_ecore_psl1ght="no"
2009-03-13 09:35:16 -07:00
want_ecore_fb="no"
want_ecore_directfb="no"
want_ecore_wince="no"
2011-12-26 15:27:20 -08:00
want_ecore_wayland="no"
2009-03-13 09:35:16 -07:00
2010-02-05 16:19:46 -08:00
# ecore_x options (both xlib and xcb)
want_ecore_x_composite="yes"
want_ecore_x_damage="yes"
want_ecore_x_dpms="yes"
want_ecore_x_randr="yes"
want_ecore_x_render="yes"
want_ecore_x_screensaver="yes"
want_ecore_x_shape="yes"
2011-11-04 05:44:28 -07:00
want_ecore_x_gesture="no"
2010-02-05 16:19:46 -08:00
want_ecore_x_sync="yes"
want_ecore_x_xfixes="yes"
want_ecore_x_xinerama="yes"
want_ecore_x_xprint="yes"
want_ecore_x_xtest="yes"
want_ecore_x_cursor="yes"
want_ecore_x_input="yes"
2011-07-14 08:46:30 -07:00
want_ecore_x_dri="yes"
2010-02-05 16:19:46 -08:00
2009-03-13 09:35:16 -07:00
# ecore_evas modules
want_ecore_evas="yes"
want_ecore_evas_software_buffer="yes"
want_ecore_evas_software_x11="no"
want_ecore_evas_opengl_x11="no"
want_ecore_evas_software_16_x11="no"
2010-07-27 17:17:40 -07:00
want_ecore_evas_software_8_x11="no"
2009-03-13 09:35:16 -07:00
want_ecore_evas_software_xcb="no"
2009-04-22 20:24:16 -07:00
want_ecore_evas_software_gdi="no"
2009-03-13 09:35:16 -07:00
want_ecore_evas_software_ddraw="no"
want_ecore_evas_direct3d="no"
want_ecore_evas_opengl_glew="no"
want_ecore_evas_software_16_ddraw="no"
want_ecore_evas_software_sdl="no"
2010-01-30 02:23:54 -08:00
want_ecore_evas_gl_sdl="no"
2011-11-02 12:20:09 -07:00
want_ecore_evas_gl_cocoa="no"
2011-11-05 10:50:02 -07:00
want_ecore_evas_psl1ght="no"
2009-03-13 09:35:16 -07:00
want_ecore_evas_directfb="no"
want_ecore_evas_fb="no"
want_ecore_evas_software_16_wince="no"
2011-10-05 15:11:00 -07:00
want_ecore_evas_ews="yes"
2012-02-18 04:56:53 -08:00
want_ecore_evas_extn="yes"
2011-12-26 15:27:20 -08:00
want_ecore_evas_wayland_shm="no"
want_ecore_evas_wayland_egl="no"
2009-03-13 09:35:16 -07:00
2011-07-11 19:26:29 -07:00
# ecore_imf modules
want_ecore_imf_xim="no"
2011-12-25 20:25:55 -08:00
want_ecore_imf_scim="no"
2011-07-11 19:26:29 -07:00
2009-03-13 09:35:16 -07:00
case "$host_os" in
2012-02-18 04:56:53 -08:00
mingw32ce*)
2010-03-04 00:19:26 -08:00
want_ecore_con="no"
2011-05-14 11:30:43 -07:00
want_ecore_ipc="no"
2009-03-13 09:35:16 -07:00
want_ecore_wince="yes"
want_ecore_evas_software_16_wince="yes"
2012-02-18 04:56:53 -08:00
want_ecore_evas_extn="no"
2009-03-13 09:35:16 -07:00
;;
mingw*)
2009-11-11 09:45:55 -08:00
want_notify_win32="yes"
2009-03-13 09:35:16 -07:00
want_curl="yes"
welcome glib main loop integration support.
that's it, it's here... tested and works fine, please try with your
favorite gmainloop dependent library and report problems. Suggestions:
* GConf to access Gnome and its applications settings.
* GtkSettings to access other properties of Gnome and its applications.
* GUPnP (okay, we have EUPnP, but they have more features so far)
* Rygel, based on GUPnP.
* Libsoup, SOAP and HTTP access, useful for web access and required
by other libraries.
* Mojito, by Moblin, access to various web2.0 services like flickr,
picasa, twitter...
And last but not least, this enables Flash plugin on WebKit-EFL and
may enable us to get Google Gadgets sooner (before someone writes a
proper EFL backend).
Support is auto-detected at compile time but can be disabled with
--disable-glib. Runtime support is not enabled by default (so
compiling with it will just link yet another library), one needs to
call ecore_main_loop_glib_integrate() to do so.
Thanks to INdT folks that provided the initial implementation. I
rewrote it to make it correct, but the idea was good.
SVN revision: 42825
2009-09-30 20:56:38 -07:00
want_glib="auto"
2011-09-08 12:18:16 -07:00
want_gnutls="auto"
want_openssl="auto"
2009-03-13 09:35:16 -07:00
want_ecore_imf="yes"
want_ecore_win32="yes"
2009-04-22 20:24:16 -07:00
want_ecore_evas_software_gdi="yes"
2009-03-13 09:35:16 -07:00
want_ecore_evas_software_ddraw="yes"
want_ecore_evas_direct3d="yes"
want_ecore_evas_opengl_glew="yes"
want_ecore_evas_software_16_ddraw="auto"
want_ecore_evas_software_sdl="yes"
2010-01-30 02:23:54 -08:00
want_ecore_evas_gl_sdl="yes"
2009-03-13 09:35:16 -07:00
;;
darwin*)
want_curl="yes"
welcome glib main loop integration support.
that's it, it's here... tested and works fine, please try with your
favorite gmainloop dependent library and report problems. Suggestions:
* GConf to access Gnome and its applications settings.
* GtkSettings to access other properties of Gnome and its applications.
* GUPnP (okay, we have EUPnP, but they have more features so far)
* Rygel, based on GUPnP.
* Libsoup, SOAP and HTTP access, useful for web access and required
by other libraries.
* Mojito, by Moblin, access to various web2.0 services like flickr,
picasa, twitter...
And last but not least, this enables Flash plugin on WebKit-EFL and
may enable us to get Google Gadgets sooner (before someone writes a
proper EFL backend).
Support is auto-detected at compile time but can be disabled with
--disable-glib. Runtime support is not enabled by default (so
compiling with it will just link yet another library), one needs to
call ecore_main_loop_glib_integrate() to do so.
Thanks to INdT folks that provided the initial implementation. I
rewrote it to make it correct, but the idea was good.
SVN revision: 42825
2009-09-30 20:56:38 -07:00
want_glib="auto"
2009-03-13 09:35:16 -07:00
want_gnutls="auto"
want_openssl="auto"
want_ecore_imf="yes"
2010-03-27 11:28:50 -07:00
want_ecore_cocoa="yes"
2009-03-13 09:35:16 -07:00
want_ecore_evas_software_sdl="yes"
2010-01-30 02:23:54 -08:00
want_ecore_evas_gl_sdl="yes"
2011-11-02 12:20:09 -07:00
want_ecore_evas_gl_cocoa="yes"
2009-03-13 09:35:16 -07:00
;;
*)
want_curl="yes"
welcome glib main loop integration support.
that's it, it's here... tested and works fine, please try with your
favorite gmainloop dependent library and report problems. Suggestions:
* GConf to access Gnome and its applications settings.
* GtkSettings to access other properties of Gnome and its applications.
* GUPnP (okay, we have EUPnP, but they have more features so far)
* Rygel, based on GUPnP.
* Libsoup, SOAP and HTTP access, useful for web access and required
by other libraries.
* Mojito, by Moblin, access to various web2.0 services like flickr,
picasa, twitter...
And last but not least, this enables Flash plugin on WebKit-EFL and
may enable us to get Google Gadgets sooner (before someone writes a
proper EFL backend).
Support is auto-detected at compile time but can be disabled with
--disable-glib. Runtime support is not enabled by default (so
compiling with it will just link yet another library), one needs to
call ecore_main_loop_glib_integrate() to do so.
Thanks to INdT folks that provided the initial implementation. I
rewrote it to make it correct, but the idea was good.
SVN revision: 42825
2009-09-30 20:56:38 -07:00
want_glib="auto"
2009-03-13 09:35:16 -07:00
want_abstract_sockets="yes"
want_gnutls="auto"
want_openssl="auto"
want_cipher="yes"
want_signature="yes"
want_inotify="yes"
want_tslib="yes"
2010-09-25 20:42:30 -07:00
want_ecore_fb="yes"
2009-03-13 09:35:16 -07:00
want_ecore_imf="yes"
want_ecore_x="yes"
2011-12-26 15:27:20 -08:00
want_ecore_wayland="yes"
2009-03-13 09:35:16 -07:00
want_ecore_evas_software_x11="yes"
want_ecore_evas_opengl_x11="yes"
want_ecore_evas_software_16_x11="yes"
2010-07-27 17:17:40 -07:00
want_ecore_evas_software_8_x11="yes"
2011-07-14 08:46:30 -07:00
want_ecore_evas_software_xcb="no"
2009-03-13 09:35:16 -07:00
want_ecore_evas_software_sdl="yes"
2010-01-30 02:23:54 -08:00
want_ecore_evas_gl_sdl="yes"
2011-11-02 12:20:09 -07:00
want_ecore_evas_gl_cocoa="no"
2009-03-13 09:35:16 -07:00
want_ecore_evas_directfb="yes"
want_ecore_evas_fb="yes"
2011-12-26 15:27:20 -08:00
want_ecore_evas_wayland_shm="yes"
want_ecore_evas_wayland_egl="yes"
2011-07-11 19:26:29 -07:00
want_ecore_imf_xim="yes"
2011-12-25 20:25:55 -08:00
want_ecore_imf_scim="yes"
2009-03-13 09:35:16 -07:00
;;
esac
2011-09-29 14:05:32 -07:00
case "$host_vendor" in
ps3*)
want_local_sockets="no"
;;
esac
2009-03-13 09:35:16 -07:00
requirements_ecore=""
2007-03-21 08:30:23 -07:00
requirements_ecore_con=""
2010-08-23 23:37:37 -07:00
#requirements_ecore_config=""
2007-03-31 04:11:02 -07:00
requirements_ecore_directfb=""
2009-03-13 09:35:16 -07:00
requirements_ecore_evas=""
2007-03-21 08:30:23 -07:00
requirements_ecore_fb=""
requirements_ecore_file=""
2009-03-13 09:35:16 -07:00
requirements_ecore_imf=""
requirements_ecore_imf_evas=""
2009-03-19 10:40:51 -07:00
requirements_ecore_input=""
2010-01-07 11:26:52 -08:00
requirements_ecore_input_evas=""
2007-03-21 08:30:23 -07:00
requirements_ecore_ipc=""
2010-03-27 11:28:50 -07:00
requirements_ecore_cocoa=""
2009-03-13 09:35:16 -07:00
requirements_ecore_sdl=""
2011-11-05 10:49:55 -07:00
requirements_ecore_psl1ght=""
2007-03-21 08:30:23 -07:00
requirements_ecore_x=""
2007-08-26 04:17:21 -07:00
requirements_ecore_win32=""
2008-05-30 22:05:01 -07:00
requirements_ecore_wince=""
2011-07-11 19:26:29 -07:00
requirements_ecore_imf_xim=""
2011-12-25 20:25:55 -08:00
requirements_ecore_imf_scim=""
2011-12-26 15:27:20 -08:00
requirements_ecore_wayland=""
2007-03-21 08:30:23 -07:00
2009-03-13 09:35:16 -07:00
### Additional options to configure
2008-10-13 08:59:19 -07:00
2010-03-21 20:30:40 -07:00
want_glib_integration_always=no
AC_ARG_ENABLE(glib-integration-always,
AC_HELP_STRING([--enable-glib-integration-always], [enable glib integration when ecore_init() is called always]),
[want_glib_integration_always=$enableval])
if test "x${want_glib_integration_always}" = "xyes" ; then
AC_DEFINE([GLIB_INTEGRATION_ALWAYS], [1], [Always integrate glib if support compiled])
2010-08-14 04:19:03 -07:00
want_glib=yes
fi
want_g_main_loop=no
AC_ARG_ENABLE(g-main-loop,
AC_HELP_STRING([--enable-g-main-loop], [ecore_main_loop based on g_main_loop]),
[want_g_main_loop=$enableval])
if test "x${want_g_main_loop}" = "xyes" ; then
AC_DEFINE([USE_G_MAIN_LOOP], [1], [Use g_main_loop in ecore])
want_glib=yes
fi
if test "x${want_glib_integration_always}" = "xyes" -a "x${want_g_main_loop}" = "xyes"; then
AC_MSG_ERROR([--enable-glib-integration-always and --enable-glib-main-loop are mutually exclusive])
2010-03-21 20:30:40 -07:00
fi
2011-09-29 14:05:32 -07:00
# local sockets (ecore_con.c)
AC_ARG_ENABLE([local-sockets],
[AC_HELP_STRING([--disable-local-sockets], [disable local sockets.])],
[
if test "x${enableval}" = "xyes" ; then
want_ecore_con_local_sockets="yes"
else
want_ecore_con_local_sockets="no"
fi
],
[want_ecore_con_local_sockets=${want_local_sockets}])
if test "x${want_ecore_con_local_sockets}" = "xyes" ; then
AC_DEFINE([HAVE_LOCAL_SOCKETS], [1], [Have local sockets support])
fi
2009-03-13 09:35:16 -07:00
# abstract sockets (ecore_con.c)
AC_ARG_ENABLE([abstract-sockets],
[AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])],
[
if test "x${enableval}" = "xyes" ; then
2011-05-14 10:52:30 -07:00
want_ecore_con_abstract_sockets="yes"
2009-03-13 09:35:16 -07:00
else
2011-05-14 10:52:30 -07:00
want_ecore_con_abstract_sockets="no"
2009-03-13 09:35:16 -07:00
fi
],
2011-05-14 10:52:30 -07:00
[want_ecore_con_abstract_sockets=${want_abstract_sockets}])
2008-05-25 22:16:34 -07:00
2011-05-14 10:52:30 -07:00
if test "x${want_ecore_con_abstract_sockets}" = "xyes" ; then
2009-03-13 09:35:16 -07:00
AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace])
fi
2007-11-05 11:12:59 -08:00
2009-03-13 09:35:16 -07:00
# Simple X11 build/link
2008-10-30 08:26:11 -07:00
2009-03-13 09:35:16 -07:00
AC_ARG_ENABLE(simple-x11,
AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
[want_evas_simple_x11=$enableval])
2008-10-30 08:26:11 -07:00
2010-01-02 14:46:01 -08:00
# XIM
AC_ARG_ENABLE([xim],
2010-04-14 14:02:37 -07:00
[AC_HELP_STRING([--disable-xim], [disable X Input Method.])],
2010-01-02 14:46:01 -08:00
[
if test "x${enableval}" = "xyes" ; then
want_xim="yes"
else
want_xim="no"
fi
],
2010-04-14 14:02:37 -07:00
[want_xim="yes"])
2010-01-02 14:46:01 -08:00
if test "x${want_xim}" = "xyes" ; then
AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
fi
2009-03-13 09:35:16 -07:00
### Checks for programs
2007-11-05 11:12:59 -08:00
2009-03-13 09:35:16 -07:00
m4_ifdef([AC_PROG_OBJC],
[
AC_PROG_OBJC
_AM_DEPENDENCIES(OBJC)
],
[
AC_CHECK_TOOL([OBJC], [gcc])
AC_SUBST([OBJC])
AC_SUBST([OBJCFLAGS])
])
2010-05-12 11:19:11 -07:00
m4_ifndef([am__fastdepOBJC], [
AM_CONDITIONAL([am__fastdepOBJC], [false])
])
2009-03-13 09:35:16 -07:00
AC_PROG_CXX
AC_PROG_CC
2007-11-05 11:12:59 -08:00
2009-04-10 03:32:50 -07:00
have_gnu_objc=${ac_cv_objc_compiler_gnu}
2009-03-13 09:35:16 -07:00
# doxygen program for documentation building
2007-11-05 11:12:59 -08:00
2009-03-13 09:35:16 -07:00
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
2004-10-20 10:51:29 -07:00
2011-07-07 23:38:47 -07:00
m4_ifdef([v_mic],
[
EFL_COMPILER_FLAG([-Wall])
EFL_COMPILER_FLAG([-W])
])
2009-03-13 09:35:16 -07:00
# The first call to PKG_CHECK_MODULES is done conditionally,
# so we should include this here:
PKG_PROG_PKG_CONFIG
2007-11-05 11:21:16 -08:00
2009-10-03 11:08:43 -07:00
# Check whether pkg-config supports Requires.private
if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
pkgconfig_requires_private="Requires.private"
else
pkgconfig_requires_private="Requires"
fi
AC_SUBST(pkgconfig_requires_private)
2011-05-17 10:32:32 -07:00
### Checks for some build time option
2011-05-18 02:12:07 -07:00
have_backtrace="no"
AC_CHECK_FUNCS([backtrace], [have_backtrace="yes"], [])
2011-12-14 00:51:45 -08:00
want_ecore_timer_dump="no"
2011-05-17 10:32:32 -07:00
AC_ARG_ENABLE([ecore-timer-dump],
[AC_HELP_STRING([--disable-ecore-timer-dump], [disable tracking of timer allocation. @<:@default=enable@:>@])],
[want_ecore_timer_dump=$enableval], [])
2011-05-18 02:12:07 -07:00
if test "x$want_ecore_timer_dump" = "xyes" -a "x$have_backtrace" = "xyes"; then
2011-05-17 10:32:32 -07:00
AC_DEFINE(WANT_ECORE_TIMER_DUMP, [1], [Want Ecore_Timer dump infrastructure])
fi
2007-11-05 11:21:16 -08:00
2009-03-13 09:35:16 -07:00
### Checks for libraries
2007-11-05 11:21:16 -08:00
2009-03-13 09:35:16 -07:00
# Evil library for compilation on Windows
case "$host_os" in
2011-11-16 09:50:39 -08:00
mingw*)
PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0])
2009-03-13 09:35:16 -07:00
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
requirements_ecore="evil ${requirements_ecore}"
requirements_ecore_evas="evil ${requirements_ecore_evas}"
requirements_ecore_file="evil ${requirements_ecore_file}"
requirements_ecore_imf="evil ${requirements_ecore_imf}"
requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}"
EFL_ECORE_BUILD="-DEFL_ECORE_BUILD"
2011-05-14 10:52:30 -07:00
EFL_ECORE_CON_BUILD="-DEFL_ECORE_CON_BUILD"
2009-03-13 09:35:16 -07:00
EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD"
2011-05-14 10:52:30 -07:00
EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD"
2009-03-13 09:35:16 -07:00
EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD"
2010-09-25 23:00:14 -07:00
EFL_ECORE_IMF_EVAS_BUILD="-DEFL_ECORE_IMF_EVAS_BUILD"
2009-03-19 10:40:51 -07:00
EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD"
2010-04-05 01:26:48 -07:00
EFL_ECORE_INPUT_EVAS_BUILD="-DEFL_ECORE_INPUT_EVAS_BUILD"
2011-05-14 11:30:43 -07:00
EFL_ECORE_IPC_BUILD="-DEFL_ECORE_IPC_BUILD"
2009-03-13 09:35:16 -07:00
;;
esac
have_win32=""
have_wince=""
case "$host_os" in
mingw32ce* | cegcc*)
EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD"
requirements_ecore_wince="evil ${requirements_ecore_wince}"
have_wince="yes"
;;
mingw*)
EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD"
EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD"
requirements_ecore_win32="evil ${requirements_ecore_win32}"
requirements_ecore_sdl="evil ${requirements_ecore_sdl}"
have_win32="yes"
;;
esac
2011-11-05 10:49:49 -07:00
have_ps3=""
case "$host_vendor" in
ps3*)
have_ps3="yes"
PKG_CHECK_MODULES([ESCAPE], [escape])
CFLAGS="$CFLAGS $ESCAPE_CFLAGS"
AC_DEFINE(HAVE_ESCAPE, 1, [Set to 1 if Escape library is installed])
2011-11-05 10:49:55 -07:00
EFL_ECORE_PSL1GHT_BUILD="-DEFL_ECORE_PSL1GHT_BUILD"
2011-11-05 10:49:49 -07:00
requirements_ecore="escape ${requirements_ecore}"
requirements_ecore_evas="escape ${requirements_ecore_evas}"
requirements_ecore_file="escape ${requirements_ecore_file}"
requirements_ecore_imf="escape ${requirements_ecore_imf}"
requirements_ecore_imf_evas="escape ${requirements_ecore_imf_evas}"
requirements_ecore_sdl="escape ${requirements_ecore_sdl}"
2011-11-05 10:49:55 -07:00
want_ecore_psl1ght="yes"
2011-11-05 10:50:02 -07:00
want_ecore_evas_psl1ght="yes"
2011-11-05 10:49:49 -07:00
;;
esac
2012-02-24 03:20:25 -08:00
### Checks for portability layer
PKG_CHECK_MODULES([EXOTIC],
[exotic],
[enable_exotic="yes"],
[enable_exotic="no"])
if test "x${enable_exotic}" = "xyes"; then
2012-02-24 06:07:57 -08:00
requirements_ecore="exotic ${requirements_ecore}"
2012-02-24 03:20:25 -08:00
AC_DEFINE([HAVE_EXOTIC], [1], [Define to 1 if you have Exotic.])
fi
AM_CONDITIONAL([ECORE_HAVE_EXOTIC], [test "x${enable_exotic}" = "xyes"])
2009-03-13 09:35:16 -07:00
AC_SUBST(EFL_ECORE_BUILD)
2011-05-14 10:52:30 -07:00
AC_SUBST(EFL_ECORE_CON_BUILD)
2009-03-13 09:35:16 -07:00
AC_SUBST(EFL_ECORE_EVAS_BUILD)
2011-05-14 10:52:30 -07:00
AC_SUBST(EFL_ECORE_FILE_BUILD)
2009-03-13 09:35:16 -07:00
AC_SUBST(EFL_ECORE_IMF_BUILD)
2010-09-25 23:00:14 -07:00
AC_SUBST(EFL_ECORE_IMF_EVAS_BUILD)
2009-03-19 10:40:51 -07:00
AC_SUBST(EFL_ECORE_INPUT_BUILD)
2010-04-05 06:22:40 -07:00
AC_SUBST(EFL_ECORE_INPUT_EVAS_BUILD)
2011-05-14 11:30:43 -07:00
AC_SUBST(EFL_ECORE_IPC_BUILD)
2009-03-13 09:35:16 -07:00
AC_SUBST(EFL_ECORE_WINCE_BUILD)
AC_SUBST(EFL_ECORE_WIN32_BUILD)
AC_SUBST(EFL_ECORE_SDL_BUILD)
2011-11-05 10:49:55 -07:00
AC_SUBST(EFL_ECORE_PSL1GHT_BUILD)
2009-03-13 09:35:16 -07:00
AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes")
AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes")
2011-11-05 10:49:49 -07:00
AM_CONDITIONAL(ECORE_HAVE_PS3, test "x${have_ps3}" = "xyes")
2009-03-13 09:35:16 -07:00
WIN32_LIBS=""
case "$host_os" in
mingw32ce* | cegcc*)
WIN32_LIBS="-lws2"
dlopen_libs="-ldl"
;;
mingw*)
WIN32_LIBS="-lws2_32"
dlopen_libs="-ldl"
;;
*)
2011-01-03 00:16:55 -08:00
AC_CHECK_LIB([c], [dlopen],
[],
[AC_CHECK_LIB([dl], [dlopen],
[dlopen_libs=-ldl])
])
AC_CHECK_LIB([c], [clock_gettime],
[AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])],
[AC_CHECK_LIB([rt], [clock_gettime],
[
rt_libs=-lrt
AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])
])
2010-09-28 14:24:16 -07:00
])
2009-03-13 09:35:16 -07:00
;;
esac
AC_SUBST(WIN32_LIBS)
AC_SUBST(dlopen_libs)
2010-09-27 15:35:35 -07:00
AC_SUBST(rt_libs)
2009-03-13 09:35:16 -07:00
# Eina library
2011-11-15 21:34:37 -08:00
PKG_CHECK_MODULES(EINA, [eina >= 1.1.0])
2009-03-13 09:35:16 -07:00
#FIXME check all the requirements when the eina move will be finished
2011-11-15 21:34:37 -08:00
requirements_ecore="eina >= 1.1.0 ${requirements_ecore}"
requirements_ecore_con="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_con}"
2011-12-18 21:57:31 -08:00
#requirements_ecore_config="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_config}"
requirements_ecore_directfb="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_directfb}"
requirements_ecore_evas="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_evas}"
requirements_ecore_fb="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_fb}"
requirements_ecore_file="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_file}"
requirements_ecore_imf="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_imf}"
requirements_ecore_imf_evas="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_imf_evas}"
requirements_ecore_input="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_input}"
requirements_ecore_input_evas="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_input_evas}"
requirements_ecore_ipc="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_ipc}"
requirements_ecore_cocoa="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_cocoa}"
requirements_ecore_sdl="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_sdl}"
requirements_ecore_psl1ght="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_sdl}"
requirements_ecore_win32="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_win32}"
requirements_ecore_wince="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_wince}"
requirements_ecore_x="ecore >= 1.1.99 eina >= 1.1.0 ${requirements_ecore_x}"
2009-03-13 09:35:16 -07:00
welcome glib main loop integration support.
that's it, it's here... tested and works fine, please try with your
favorite gmainloop dependent library and report problems. Suggestions:
* GConf to access Gnome and its applications settings.
* GtkSettings to access other properties of Gnome and its applications.
* GUPnP (okay, we have EUPnP, but they have more features so far)
* Rygel, based on GUPnP.
* Libsoup, SOAP and HTTP access, useful for web access and required
by other libraries.
* Mojito, by Moblin, access to various web2.0 services like flickr,
picasa, twitter...
And last but not least, this enables Flash plugin on WebKit-EFL and
may enable us to get Google Gadgets sooner (before someone writes a
proper EFL backend).
Support is auto-detected at compile time but can be disabled with
--disable-glib. Runtime support is not enabled by default (so
compiling with it will just link yet another library), one needs to
call ecore_main_loop_glib_integrate() to do so.
Thanks to INdT folks that provided the initial implementation. I
rewrote it to make it correct, but the idea was good.
SVN revision: 42825
2009-09-30 20:56:38 -07:00
# glib support (main loop integration)
AC_ARG_ENABLE([glib],
2010-02-25 13:26:32 -08:00
[AC_HELP_STRING([--disable-glib], [disable glib support. @<:@default=detect@:>@])],
welcome glib main loop integration support.
that's it, it's here... tested and works fine, please try with your
favorite gmainloop dependent library and report problems. Suggestions:
* GConf to access Gnome and its applications settings.
* GtkSettings to access other properties of Gnome and its applications.
* GUPnP (okay, we have EUPnP, but they have more features so far)
* Rygel, based on GUPnP.
* Libsoup, SOAP and HTTP access, useful for web access and required
by other libraries.
* Mojito, by Moblin, access to various web2.0 services like flickr,
picasa, twitter...
And last but not least, this enables Flash plugin on WebKit-EFL and
may enable us to get Google Gadgets sooner (before someone writes a
proper EFL backend).
Support is auto-detected at compile time but can be disabled with
--disable-glib. Runtime support is not enabled by default (so
compiling with it will just link yet another library), one needs to
call ecore_main_loop_glib_integrate() to do so.
Thanks to INdT folks that provided the initial implementation. I
rewrote it to make it correct, but the idea was good.
SVN revision: 42825
2009-09-30 20:56:38 -07:00
[want_glib=$enableval], [])
if test "x$want_glib" != "xno"; then
PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"])
else
have_glib="no"
fi
if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then
AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.])
elif test "x$have_glib" = "xyes"; then
AC_DEFINE(HAVE_GLIB, [1], [Have GLib])
2009-10-03 11:08:43 -07:00
requirements_ecore="glib-2.0 ${requirements_ecore}"
welcome glib main loop integration support.
that's it, it's here... tested and works fine, please try with your
favorite gmainloop dependent library and report problems. Suggestions:
* GConf to access Gnome and its applications settings.
* GtkSettings to access other properties of Gnome and its applications.
* GUPnP (okay, we have EUPnP, but they have more features so far)
* Rygel, based on GUPnP.
* Libsoup, SOAP and HTTP access, useful for web access and required
by other libraries.
* Mojito, by Moblin, access to various web2.0 services like flickr,
picasa, twitter...
And last but not least, this enables Flash plugin on WebKit-EFL and
may enable us to get Google Gadgets sooner (before someone writes a
proper EFL backend).
Support is auto-detected at compile time but can be disabled with
--disable-glib. Runtime support is not enabled by default (so
compiling with it will just link yet another library), one needs to
call ecore_main_loop_glib_integrate() to do so.
Thanks to INdT folks that provided the initial implementation. I
rewrote it to make it correct, but the idea was good.
SVN revision: 42825
2009-09-30 20:56:38 -07:00
fi
2009-03-13 09:35:16 -07:00
# SDL library (ecore_sdl)
2007-11-05 11:54:24 -08:00
2009-03-13 09:35:16 -07:00
have_sdl="no"
2011-09-06 23:53:42 -07:00
PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
2011-09-08 19:56:03 -07:00
if test "x${have_sdl}" != "xyes" ; then
SDL_CONFIG="sdl-config"
AC_ARG_WITH([sdl-config],
[AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
[
SDL_CONFIG=$withval
AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
])
AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
if test -n "$SDL_CONFIG" ; then
SDL_CFLAGS=`$SDL_CONFIG --cflags`
SDL_LIBS=`$SDL_CONFIG --libs`
AC_SUBST(SDL_CFLAGS)
AC_SUBST(SDL_LIBS)
have_sdl="yes"
fi
fi
2007-11-05 11:54:24 -08:00
2009-03-13 09:35:16 -07:00
if test "x${have_sdl}" = "xyes" ; then
PKG_CHECK_EXISTS([sdl >= 1.3.0],
[AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
fi
# DirectFB library (ecore_directfb)
2009-10-03 11:08:43 -07:00
PKG_CHECK_MODULES([DIRECTFB],
[directfb >= 0.9.16],
[have_directfb="yes"],
2009-03-13 09:35:16 -07:00
[have_directfb="no"])
# Eet library (ecore_config)
2010-08-23 23:37:37 -07:00
#PKG_CHECK_MODULES([EET],
# [eet >= 1.4.0],
# [have_eet="yes"],
# [have_eet="no"])
2007-12-18 21:54:29 -08:00
2009-03-13 09:35:16 -07:00
# Xlib and XCB (ecore_x)
2008-05-30 12:35:14 -07:00
2012-02-23 00:04:35 -08:00
AC_CHECK_DECL([MAXHOSTNAMELEN], [FOUND_MAXHOSTNAMELEN=yes])
if test "x${FOUND_MAXHOSTNAMELEN}" != "xyes" ; then
AC_MSG_CHECKING([for header that defines MAXHOSTNAMELEN])
FOUND_MAXHOSTNAMELEN="not found"
AC_COMPILE_IFELSE(
[
AC_LANG_PROGRAM(
[[
#include <sys/param.h>
]],
[[
int h = MAXHOSTNAMELEN;
]])
],
[
FOUND_MAXHOSTNAMELEN="sys/param.h"
AC_DEFINE([NEED_SYS_PARAM_H], [1], [Define to 1 if you need <sys/param.h> to define MAXHOSTNAMELEN])
])
AC_COMPILE_IFELSE(
[
AC_LANG_PROGRAM(
[[
#include <netdb.h>
]],
[[
int h = MAXHOSTNAMELEN;
]])
],
[
FOUND_MAXHOSTNAMELEN="netdb.h"
AC_DEFINE([NEED_NETDB_H], [1], [Define to 1 if you need <netdb.h> to define MAXHOSTNAMELEN])
])
AC_MSG_RESULT([$FOUND_MAXHOSTNAMELEN])
fi
2008-07-23 03:00:01 -07:00
have_x="no"
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
have_ecore_x="no"
2008-07-23 03:00:01 -07:00
have_ecore_x_xlib="no"
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
have_ecore_x_xcb="no"
2008-07-23 03:00:01 -07:00
x_dir="";
x_includes="";
x_cflags="";
x_libs="";
2009-10-03 11:08:43 -07:00
ecore_x_libs_private=""
2010-02-05 16:19:46 -08:00
AC_ARG_ENABLE(ecore-x-composite,
[AC_HELP_STRING([--disable-ecore-x-composite],
[disable the ecore_x support for Xcomposite extension.
@<:@default=detect@:>@])],
[want_ecore_x_composite=$enableval])
AC_ARG_ENABLE(ecore-x-damage,
[AC_HELP_STRING([--disable-ecore-x-damage],
[disable the ecore_x support for Xdamage extension.
@<:@default=detect@:>@])],
[want_ecore_x_damage=$enableval])
AC_ARG_ENABLE(ecore-x-dpms,
[AC_HELP_STRING([--disable-ecore-x-dpms],
[disable the ecore_x support for Xdpms extension.
@<:@default=detect@:>@])],
[want_ecore_x_dpms=$enableval])
AC_ARG_ENABLE(ecore-x-randr,
[AC_HELP_STRING([--disable-ecore-x-randr],
[disable the ecore_x support for Xrandr extension.
@<:@default=detect@:>@])],
[want_ecore_x_randr=$enableval])
AC_ARG_ENABLE(ecore-x-render,
[AC_HELP_STRING([--disable-ecore-x-render],
[disable the ecore_x support for Xrender extension.
@<:@default=detect@:>@])],
[want_ecore_x_render=$enableval])
AC_ARG_ENABLE(ecore-x-screensaver,
[AC_HELP_STRING([--disable-ecore-x-screensaver],
[disable the ecore_x support for Xscreensaver extension.
@<:@default=detect@:>@])],
[want_ecore_x_screensaver=$enableval])
AC_ARG_ENABLE(ecore-x-shape,
[AC_HELP_STRING([--disable-ecore-x-shape],
[disable the ecore_x support for Xshape extension.
@<:@default=detect@:>@])],
[want_ecore_x_shape=$enableval])
2011-11-04 05:44:28 -07:00
AC_ARG_ENABLE(ecore-x-gesture,
[AC_HELP_STRING([--enable-ecore-x-gesture],
[enable the ecore_x support for Xgesture extension.
@<:@default=detect@:>@])],
[want_ecore_x_gesture=$enableval])
2010-02-05 16:19:46 -08:00
AC_ARG_ENABLE(ecore-x-sync,
[AC_HELP_STRING([--disable-ecore-x-sync],
[disable the ecore_x support for Xsync extension.
@<:@default=detect@:>@])],
[want_ecore_x_sync=$enableval])
AC_ARG_ENABLE(ecore-x-xfixes,
[AC_HELP_STRING([--disable-ecore-x-xfixes],
[disable the ecore_x support for Xfixes extension.
@<:@default=detect@:>@])],
[want_ecore_x_xfixes=$enableval])
AC_ARG_ENABLE(ecore-x-xinerama,
[AC_HELP_STRING([--disable-ecore-x-xinerama],
[disable the ecore_x support for Xinerama extension.
@<:@default=detect@:>@])],
[want_ecore_x_xinerama=$enableval])
AC_ARG_ENABLE(ecore-x-xprint,
[AC_HELP_STRING([--disable-ecore-x-xprint],
[disable the ecore_x support for Xprint extension.
@<:@default=detect@:>@])],
[want_ecore_x_xprint=$enableval])
AC_ARG_ENABLE(ecore-x-xtest,
[AC_HELP_STRING([--disable-ecore-x-xtest],
[disable the ecore_x support for Xtest extension.
@<:@default=detect@:>@])],
[want_ecore_x_xtest=$enableval])
AC_ARG_ENABLE(ecore-x-cursor,
[AC_HELP_STRING([--disable-ecore-x-cursor],
[disable the ecore_x support for Xcursor extension.
@<:@default=detect@:>@])],
[want_ecore_x_cursor=$enableval])
AC_ARG_ENABLE(ecore-x-input,
[AC_HELP_STRING([--disable-ecore-x-input],
[disable the ecore_x support for Xinput/Xinput2 extension.
@<:@default=detect@:>@])],
[want_ecore_x_input=$enableval])
2011-07-14 08:46:30 -07:00
AC_ARG_ENABLE(ecore-x-dri,
[AC_HELP_STRING([--disable-ecore-x-dri],
[disable the ecore_x support for DRI extension.
@<:@default=detect@:>@])],
[want_ecore_x_dri=$enableval])
2010-02-05 16:19:46 -08:00
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
AC_ARG_ENABLE(ecore-x-xcb,
2009-03-13 09:35:16 -07:00
[AC_HELP_STRING([--enable-ecore-x-xcb],
2010-02-05 16:19:46 -08:00
[enable the ecore_x module with XCB backend. @<:@default=disabled@:>@])],
2011-07-14 08:46:30 -07:00
[want_ecore_x_xcb=$enableval])
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
AC_MSG_RESULT($want_ecore_x_xcb)
if test "x$want_ecore_x_xcb" = "xyes" ; then
2011-07-14 08:46:30 -07:00
AC_MSG_CHECKING([keysym definitions])
KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
for i in $FILES; do
if test -f "$KEYSYMDEFDIR/$i"; then
KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
elif test "x$i" = "xkeysymdef.h"; then
AC_MSG_ERROR([Cannot find keysymdef.h])
fi
done
AC_MSG_RESULT([$KEYSYMDEFS])
AC_SUBST(KEYSYMDEFS)
have_iconv="no"
AC_ARG_WITH([iconv-link],
AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
[
LIBS="$withval $LIBS"
have_iconv="yes"
])
AC_MSG_CHECKING(for explicit iconv link options)
if test "x${iconv_libs}" = "x" ; then
AC_MSG_RESULT([no explicit iconv link option])
else
AC_MSG_RESULT([$iconv_libs])
fi
if test "x${have_iconv}" = "xno" ; then
AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"])
if test "x${have_iconv}" = "xyes" ; then
AC_MSG_CHECKING([whether iconv() is in libc])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <stdlib.h>
#include <iconv.h>
]],
[[
iconv_t ic;
size_t count = iconv(ic, NULL, NULL, NULL, NULL);
]])],
[have_iconv="yes"],
[have_iconv="no"])
AC_MSG_RESULT([${have_iconv}])
fi
if test "x${have_iconv}" = "xno" ; then
AC_MSG_CHECKING([whether iconv() is in libiconv.a])
LIBS_save="${LIBS}"
LIBS="-liconv $LIBS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <stdlib.h>
#include <iconv.h>
]],
[[
iconv_t ic;
size_t count;
count = iconv(ic, NULL, NULL, NULL, NULL);
]])],
[have_iconv="yes"],
[
have_iconv="no"
LIBS=${LIBS_save}
])
AC_MSG_RESULT([${have_iconv}])
fi
if test "x${have_iconv}" = "xno" ; then
AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a])
LIBS_save="${LIBS}"
LIBS="-liconv_plug $LIBS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <stdlib.h>
#include <iconv.h>
]],
[[
iconv_t ic;
size_t count = iconv(ic, NULL, NULL, NULL, NULL);
]])],
[have_iconv="yes"],
[
have_iconv="no"
LIBS=${LIBS_save}
])
AC_MSG_RESULT([${have_iconv}])
fi
if test "x${have_iconv}" = "xyes" ; then
AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed])
fi
fi
2011-09-23 23:21:15 -07:00
PKG_CHECK_MODULES(ECORE_XCB, x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8,
2009-10-03 11:08:43 -07:00
[ have_ecore_x_xcb="yes"
2011-08-01 18:32:10 -07:00
requirements_ecore_x="x11-xcb xcb xcb-shm xcb-event xcb-icccm xcb-util xcb-image xcb-keysyms ${requirements_ecore_x}"
],
[
2011-09-23 23:21:15 -07:00
PKG_CHECK_MODULES(ECORE_XCB, x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms,
2011-08-01 18:32:10 -07:00
[ have_ecore_x_xcb="yes"
AC_DEFINE(OLD_XCB_VERSION, 1, [xcb version])
requirements_ecore_x="x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" ],
[ have_ecore_x_xcb="no" ])
],
[have_ecore_x_xcb="no" ])
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
if test "x$have_ecore_x_xcb" = "xyes" ; then
2011-07-27 00:40:55 -07:00
PKG_CHECK_MODULES([PIXMAN],
[pixman-1],
[
have_pixman="yes"
AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering])
requirements_ecore_x="pixman-1 ${requirements_ecore_x}"
],
[
if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then
AC_MSG_ERROR([Pixman not found (strict dependencies checking)])
fi
])
2010-02-05 16:19:46 -08:00
if test "x$want_ecore_x_composite" != "xno"; then
PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite,
[ have_ecore_x_xcb_composite="yes"
requirements_ecore_x="xcb-composite ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ],
[ have_ecore_x_xcb_composite="no" ])
else
have_ecore_x_xcb_composite="no"
AC_MSG_NOTICE("composite extension explicitly disabled")
fi
if test "x$want_ecore_x_damage" != "xno"; then
PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage,
[ have_ecore_x_xcb_damage="yes"
requirements_ecore_x="xcb-damage ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ],
[ have_ecore_x_xcb_damage="no" ])
else
have_ecore_x_xcb_damage="no"
AC_MSG_NOTICE("damage extension explicitly disabled")
fi
if test "x$want_ecore_x_dpms" != "xno"; then
PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms,
[ have_ecore_x_xcb_dpms="yes"
requirements_ecore_x="xcb-dpms ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ],
[ have_ecore_x_xcb_dpms="no" ])
else
have_ecore_x_xcb_dpms="no"
AC_MSG_NOTICE("dpms extension explicitly disabled")
fi
if test "x$want_ecore_x_randr" != "xno"; then
PKG_CHECK_MODULES(XCB_RANDR, xcb-randr,
[ have_ecore_x_xcb_randr="yes"
requirements_ecore_x="xcb-randr ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ],
[ have_ecore_x_xcb_randr="no" ])
else
have_ecore_x_xcb_randr="no"
AC_MSG_NOTICE("randr extension explicitly disabled")
fi
if test "x$want_ecore_x_render" != "xno"; then
2011-07-14 08:46:30 -07:00
PKG_CHECK_MODULES(XCB_RENDER, xcb-render xcb-renderutil,
2010-02-05 16:19:46 -08:00
[ have_ecore_x_xcb_render="yes"
2011-07-14 08:46:30 -07:00
requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}"
2010-02-05 16:19:46 -08:00
AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ],
[ have_ecore_x_xcb_render="no" ])
else
have_ecore_x_xcb_render="no"
AC_MSG_NOTICE("render extension explicitly disabled")
fi
if test "x$want_ecore_x_screensaver" != "xno"; then
PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver,
[ have_ecore_x_xcb_screensaver="yes"
requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ],
[ have_ecore_x_xcb_screensaver="no" ])
else
have_ecore_x_xcb_screensaver="no"
AC_MSG_NOTICE("screensaver extension explicitly disabled")
fi
if test "x$want_ecore_x_shape" != "xno"; then
PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape,
[ have_ecore_x_xcb_shape="yes"
requirements_ecore_x="xcb-shape ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ],
[ have_ecore_x_xcb_shape="no" ])
else
have_ecore_x_xcb_shape="no"
AC_MSG_NOTICE("shape extension explicitly disabled")
fi
2011-11-04 05:44:28 -07:00
if test "x$want_ecore_x_gesture" != "xno"; then
PKG_CHECK_MODULES(XCB_XGESTURE, xcb-gesture,
[ have_ecore_x_xcb_gesture="yes"
requirements_ecore_x="xcb-gesture ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_XGESTURE, 1, [Build support for XCB gesture]) ],
[ have_ecore_x_xcb_gesture="no" ])
else
have_ecore_x_xcb_gesture="no"
AC_MSG_NOTICE("gesture extension explicitly disabled")
fi
2010-02-05 16:19:46 -08:00
if test "x$want_ecore_x_sync" != "xno"; then
PKG_CHECK_MODULES(XCB_SYNC, xcb-sync,
[ have_ecore_x_xcb_sync="yes"
requirements_ecore_x="xcb-sync ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ],
[ have_ecore_x_xcb_sync="no" ])
else
have_ecore_x_xcb_sync="no"
AC_MSG_NOTICE("sync extension explicitly disabled")
fi
if test "x$want_ecore_x_xfixes" != "xno"; then
PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes,
[ have_ecore_x_xcb_xfixes="yes"
requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}"
2011-07-14 08:46:30 -07:00
AC_DEFINE(ECORE_XCB_XFIXES, 1, [Build support for XCB xfixes]) ],
2010-02-05 16:19:46 -08:00
[ have_ecore_x_xcb_xfixes="no" ])
else
have_ecore_x_xcb_xfixes="no"
AC_MSG_NOTICE("xfixes extension explicitly disabled")
fi
if test "x$want_ecore_x_xinerama" != "xno"; then
PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama,
[ have_ecore_x_xcb_xinerama="yes"
requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ],
[ have_ecore_x_xcb_xinerama="no" ])
else
have_ecore_x_xcb_xinerama="no"
AC_MSG_NOTICE("xinerama extension explicitly disabled")
fi
if test "x$want_ecore_x_xprint" != "xno"; then
PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint,
[ have_ecore_x_xcb_xprint="yes"
requirements_ecore_x="xcb-xprint ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ],
[ have_ecore_x_xcb_xprint="no" ])
else
have_ecore_x_xcb_xprint="no"
AC_MSG_NOTICE("xprint extension explicitly disabled")
fi
if test "x$want_ecore_x_xtest" != "xno"; then
PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest,
[ have_ecore_x_xcb_xtest="yes"
requirements_ecore_x="xcb-xtest ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ],
[ have_ecore_x_xcb_xtest="no" ])
else
have_ecore_x_xcb_xtest="no"
AC_MSG_NOTICE("xtest extension explicitly disabled")
fi
2008-03-28 07:38:35 -07:00
2011-07-14 08:46:30 -07:00
# input extension disabled currently in xcb as xcb-input has some issues
want_ecore_x_input="no"
if test "x$want_ecore_x_input" != "xno"; then
PKG_CHECK_MODULES(XCB_XINPUT, xcb-xinput,
[ have_ecore_x_xcb_xinput="yes"
requirements_ecore_x="xcb-xinput ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_XINPUT, 1, [Build support for XCB xinput]) ],
[ have_ecore_x_xcb_xinput="no" ])
else
have_ecore_x_xcb_xinput="no"
AC_MSG_NOTICE("xinput extension explicitly disabled")
fi
if test "x$want_ecore_x_cursor" != "xno"; then
PKG_CHECK_MODULES(XCB_CURSOR, xcb-render xcb-renderutil,
[ have_ecore_x_xcb_cursor="yes"
requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}"
AC_DEFINE(ECORE_XCB_CURSOR, 1, [Build support for XCB cursor]) ],
[ have_ecore_x_xcb_cursor="no" ])
else
have_ecore_x_xcb_cursor="no"
AC_MSG_NOTICE("cursor extension explicitly disabled")
fi
2011-09-21 04:42:24 -07:00
# if test "x$want_ecore_x_dri" != "xno"; then
# PKG_CHECK_MODULES(XCB_DRI, xcb-dri2,
# [ have_ecore_x_xcb_dri="yes"
# requirements_ecore_x="xcb-dri2 ${requirements_ecore_x}"
# AC_DEFINE(ECORE_XCB_DRI, 1, [Build support for XCB dri/dri2]) ],
# [ have_ecore_x_xcb_dri="no" ])
# else
# have_ecore_x_xcb_dri="no"
# AC_MSG_NOTICE("dri extension explicitly disabled")
# fi
2011-07-14 08:46:30 -07:00
2008-07-23 03:00:01 -07:00
AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.])
2011-09-24 00:23:41 -07:00
x_cflags=$ECORE_XCB_CFLAGS
x_libs=$ECORE_XCB_LIBS
2008-07-23 03:00:01 -07:00
have_x="yes"
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
AC_SUBST(have_ecore_x_xcb_define)
fi
fi
2008-07-23 03:00:01 -07:00
if ! test "x$have_ecore_x_xcb" = "xyes" ; then
2007-11-05 08:51:04 -08:00
AC_PATH_XTRA
AC_CHECK_HEADER(X11/X.h,
2005-09-05 01:40:50 -07:00
[
2007-12-18 21:54:29 -08:00
if test "x$want_evas_simple_x11" = "xyes"; then
x_libs="${x_libs} -lX11 -lXext"
else
x_dir=${x_dir:-/usr/X11R6}
x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
fi
2008-07-23 03:00:01 -07:00
have_ecore_x_xlib="yes"
2005-09-05 01:40:50 -07:00
]
)
2008-05-30 12:35:14 -07:00
2008-07-23 03:00:01 -07:00
if test "x$have_ecore_x_xlib" = "xyes"; then
2007-11-05 08:51:04 -08:00
Xcursor_libs=""
Xcursor_cflags=""
use_Xcursor="no"
PCFLAGS=$CFLAGS
2008-03-10 22:12:47 -07:00
CFLAGS="$x_cflags $x_includes"
2010-02-05 16:19:46 -08:00
if test "x$want_ecore_x_cursor" = "xyes"; then
AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
[
AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
[
AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
Xcursor_cflags=""
Xcursor_libs="-lXcursor"
use_Xcursor="yes"
], [
Xcursor_cflags=""
Xcursor_libs=""
use_Xcursor="no"
], [
$x_libs -lXrender
]
)
], [
Xcursor_cflags=""
Xcursor_libs=""
use_Xcursor="no"
], [
#include <X11/Xlib.h>
]
)
CFLAGS=$PCFLAGS
else
Xcursor_cflags=""
Xcursor_libs=""
use_Xcursor="no"
AC_MSG_NOTICE("Xcursor explicitly disabled")
fi
2008-05-30 12:35:14 -07:00
2007-11-05 08:51:04 -08:00
AC_SUBST(Xcursor_cflags)
AC_SUBST(Xcursor_libs)
2008-05-30 12:35:14 -07:00
2010-02-05 16:19:46 -08:00
ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat], [$want_ecore_x_xkb])
ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension], [$want_ecore_x_composite])
ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract], [$want_ecore_x_damage])
ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension], [$want_ecore_x_dpms])
2007-11-05 08:51:04 -08:00
if test "x$use_xdpms" = "xno" ; then
2010-02-05 16:19:46 -08:00
ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension], [$want_ecore_x_dpms])
2007-11-05 08:51:04 -08:00
fi
2010-02-05 16:19:46 -08:00
ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion], [$want_ecore_x_xfixes])
ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens], [$want_ecore_x_xinerama])
ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens], [$want_ecore_x_xprint])
ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent], [$want_ecore_x_randr])
2011-11-04 05:44:28 -07:00
ECORE_CHECK_X_EXTENSION([Xgesture], [gesture.h], [Xgesture], [XGestureQueryExtension], [$want_ecore_x_gesture])
2010-02-05 16:19:46 -08:00
ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat], [$want_ecore_x_render])
ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent], [$want_ecore_x_xtest])
ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput], [$want_ecore_x_screensaver])
ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice], [$want_ecore_x_input])
2008-07-23 03:00:01 -07:00
2011-11-04 05:44:28 -07:00
ecore_x_libs_private="${Xcursor_libs} ${XKB_LIBS} ${XCOMPOSITE_LIBS} ${XGESTURE_LIBS} ${XDAMAGE_LIBS} ${XDPMS_LIBS} ${XFIXES_LIBS} ${XINERAMA_LIBS} ${XPRINT_LIBS} ${XRANDR_LIBS} ${XRENDER_LIBS} ${XTEST_LIBS} ${XSS_LIBS} ${XI2_LIBS}"
2009-10-03 11:08:43 -07:00
2008-07-23 03:00:01 -07:00
AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.])
have_x="yes"
have_ecore_x_xlib="yes"
2007-03-15 15:21:28 -07:00
fi
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
fi
2008-07-23 03:00:01 -07:00
AC_SUBST(x_cflags)
AC_SUBST(x_includes)
AC_SUBST(x_libs)
2009-10-03 11:08:43 -07:00
AC_SUBST(ecore_x_libs_private)
2008-07-23 03:00:01 -07:00
2009-03-13 09:35:16 -07:00
AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes)
AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes)
2008-07-23 03:00:01 -07:00
2008-05-30 12:35:14 -07:00
2010-01-07 11:26:52 -08:00
# Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas)
2007-03-23 16:04:32 -07:00
2011-12-18 21:57:31 -08:00
PKG_CHECK_MODULES([EVAS], [evas >= 1.1.99],
2009-10-03 11:08:43 -07:00
[have_evas="yes"],
2009-03-13 09:35:16 -07:00
[have_evas="no"])
2008-05-30 12:35:14 -07:00
2009-03-13 09:35:16 -07:00
### Checks for header files
2007-06-21 15:49:36 -07:00
2011-10-11 11:19:37 -07:00
AC_CHECK_HEADERS([sys/select.h sys/prctl.h])
2011-09-16 00:08:45 -07:00
2011-01-06 10:36:31 -08:00
EFL_CHECK_PATH_MAX
2009-03-13 09:35:16 -07:00
AC_HEADER_SYS_WAIT
2011-01-06 10:36:31 -08:00
AC_SYS_LARGEFILE
2007-11-05 12:23:39 -08:00
2010-02-24 09:52:54 -08:00
have_addrinfo="no"
2009-03-13 09:35:16 -07:00
case "$host_os" in
mingw* | cegcc*)
AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.])
AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.])
AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.])
2010-02-24 09:52:54 -08:00
have_addrinfo="yes"
2009-03-13 09:35:16 -07:00
;;
*)
2011-01-07 07:56:54 -08:00
AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h])
2009-03-13 09:35:16 -07:00
;;
esac
2008-05-30 12:35:14 -07:00
2010-02-20 11:12:52 -08:00
# ecore_con
2012-03-07 09:17:06 -08:00
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([net/if.h], [], [],
[
#include <stdio.h>
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
])
AC_CHECK_HEADERS([sys/un.h arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h ws2tcpip.h netdb.h])
2010-02-24 09:52:54 -08:00
if test "x${ac_cv_header_netdb_h}" = "xyes" ; then
have_addrinfo="yes"
fi
2010-02-20 11:12:52 -08:00
2009-03-13 09:35:16 -07:00
# Framebuffer (ecore_fb)
have_fb="no"
AC_CHECK_HEADER([linux/fb.h],
[AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])])
2008-07-23 03:00:01 -07:00
2010-03-27 11:28:50 -07:00
# Cocoa header files (ecore_cocoa)
2008-07-23 03:00:01 -07:00
2011-11-10 10:18:39 -08:00
if test "x${want_ecore_cocoa}" = "xyes" ; then
cocoa_ldflags=""
have_cocoa="no"
m4_ifdef([AC_PROG_OBJC],
[
if test "x${have_gnu_objc}" = "xyes" ; then
AC_LANG_PUSH([Objective C])
LIBS_save="$LIBS"
LIBS="$LIBS -framework Cocoa"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
2011-11-02 11:16:23 -07:00
#include <Cocoa/Cocoa.h>
2011-11-10 10:18:39 -08:00
]],
[[
2011-11-02 11:16:23 -07:00
NSWindow *window;
window = [[NSWindow alloc]
initWithContentRect:NSMakeRect(0, 0, 1, 1)
styleMask:(NSTitledWindowMask)
backing:NSBackingStoreBuffered
defer:NO
screen:nil
2011-11-02 13:06:08 -07:00
];
2011-11-10 10:18:39 -08:00
]])],
[
have_cocoa="yes"
cocoa_ldflags="-framework Cocoa"
],
[have_cocoa="no"])
LIBS="$LIBS_save"
AC_MSG_CHECKING([whether Cocoa framework is supported])
AC_MSG_RESULT([${have_cocoa}])
AC_LANG_POP([Objective C])
fi
])
fi
2010-03-27 11:28:50 -07:00
AC_SUBST(cocoa_ldflags)
2009-03-13 09:35:16 -07:00
2010-10-20 07:15:56 -07:00
want_epoll=yes
2010-09-14 03:38:28 -07:00
AC_ARG_ENABLE(epoll,
AC_HELP_STRING([--enable-epoll], [enable or disable epoll support]),
[want_epoll=$enableval])
if test "x${want_epoll}" = "xyes" ; then
# check for epoll support
AC_CHECK_HEADERS([sys/epoll.h])
fi
2011-07-06 03:54:11 -07:00
# timerfd_create
AC_CHECK_HEADERS([sys/timerfd.h])
AC_CHECK_FUNCS(timerfd_create)
2010-07-27 23:08:35 -07:00
2010-11-26 05:50:31 -08:00
# thread support
2009-11-11 15:43:58 -08:00
2010-11-26 05:50:31 -08:00
EFL_CHECK_THREADS(
[
if test "x${_efl_have_posix_threads}" = "xyes" ; then
have_threads="POSIX"
else
if test "x${_efl_have_win32_threads}" = "xyes" ; then
have_threads="Win32"
else
have_threads="no"
fi
fi
],
[have_threads="no"])
2009-08-03 04:50:07 -07:00
2011-07-28 05:01:16 -07:00
### enable thread safety if we have threads, unless specifically asked not to
if test "x${have_threads}" = "xno"
then
want_thread_safety="no"
else
want_thread_safety="no" # to be changed to yes when ready
AC_ARG_ENABLE(thread-safety,
AC_HELP_STRING([--enable-thread-safety], [enable or disable thread safety]),
[want_thread_safety=$enableval])
fi
if test "x${want_thread_safety}" = "xyes"
then
AC_DEFINE([HAVE_THREAD_SAFETY], [1], [Define to enable thread safety])
fi
2009-03-13 09:35:16 -07:00
### Checks for types
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
2008-07-16 23:06:34 -07:00
2008-07-23 03:00:01 -07:00
2009-03-13 09:35:16 -07:00
### Checks for structures
2007-06-21 15:49:36 -07:00
2007-11-21 04:16:16 -08:00
2009-03-13 09:35:16 -07:00
### Checks for compiler characteristics
2011-11-04 13:29:47 -07:00
AC_PROG_CC_STDC
2009-03-13 09:35:16 -07:00
AC_C_CONST
AC_C_BIGENDIAN
AC_HEADER_STDC
AC_C___ATTRIBUTE__
2007-11-05 11:54:24 -08:00
2009-03-13 09:35:16 -07:00
WIN32_CPPFLAGS=""
WIN32_CFLAGS=""
case "$host_os" in
mingw32ce*)
WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
;;
cegcc*)
WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
WIN32_CFLAGS="-mwin32"
;;
mingw*)
2010-02-20 11:12:52 -08:00
WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0501"
2009-03-13 09:35:16 -07:00
;;
esac
AC_SUBST(WIN32_CPPFLAGS)
AC_SUBST(WIN32_CFLAGS)
2008-07-16 23:06:34 -07:00
2009-03-13 09:35:16 -07:00
### Checks for linker characteristics
2008-07-16 23:06:34 -07:00
2009-03-13 09:35:16 -07:00
# use --enable-auto-import on Windows
2007-11-05 12:03:28 -08:00
2009-03-13 09:35:16 -07:00
lt_enable_auto_import=""
case "$host_os" in
mingw* | cegcc*)
lt_enable_auto_import="-Wl,--enable-auto-import"
;;
esac
AC_SUBST(lt_enable_auto_import)
2008-05-30 22:05:01 -07:00
2009-03-13 09:35:16 -07:00
### Checks for library functions
2011-01-06 10:36:31 -08:00
AC_ISC_POSIX
2009-03-13 09:35:16 -07:00
AC_FUNC_ALLOCA
2011-09-18 14:57:47 -07:00
AC_CHECK_FUNCS([gettimeofday strlcpy execvp])
2008-06-06 06:57:03 -07:00
2011-04-11 12:58:56 -07:00
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <math.h>
]],
[[
int i = isfinite(0);
]])],
[
AC_DEFINE(HAVE_ISFINITE, 1, [Define to 1 if you have `isfinite', as a function or macro.])
have_isfinite="yes"
],
[have_isfinite="no"])
AC_MSG_CHECKING([for isfinite])
AC_MSG_RESULT([${have_isfinite}])
2009-04-11 00:10:12 -07:00
have_atfile_source=auto
2011-04-11 12:58:56 -07:00
AC_ARG_ENABLE([atfile-source],
[AC_HELP_STRING([--disable-atfile-source],
[disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@])],
[
if test "x${enableval}" = "xyes" ; then
have_atfile_source="yes"
else
have_atfile_source="no"
fi],
[have_atfile_source=auto])
if ! test "x${have_atfile_source}" = "xno" ; then
AC_CHECK_FUNCS(mkdirat,
[
have_atfile_source="yes"
AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists])
],
[
if test "x${have_atfile_source}" = "xyes" ; then
AC_MSG_ERROR([required atfile-source but no mkdirat()])
fi
have_atfile_source="no"
])
2009-04-11 00:10:12 -07:00
fi
2008-05-30 22:05:01 -07:00
2012-02-22 21:56:36 -08:00
SHM_OPEN_LIBS=""
2012-03-07 09:17:06 -08:00
AC_MSG_CHECKING([whether shm_open is in libc])
AC_LINK_IFELSE(
2012-02-18 04:56:53 -08:00
[AC_LANG_PROGRAM(
[[
2012-02-22 21:56:36 -08:00
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
2012-02-18 04:56:53 -08:00
]],
[[
2012-02-22 21:56:36 -08:00
int fd;
fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
shm_unlink("/");
2012-02-18 04:56:53 -08:00
]])],
2012-02-22 21:56:36 -08:00
[
have_shm_open="yes"
AC_DEFINE(HAVE_SHM_OPEN, 1, [Have shm_open() call])
],
2012-02-18 04:56:53 -08:00
[have_shm_open="no"])
2012-03-07 09:17:06 -08:00
LIBS="${LIBS_save}"
AC_MSG_RESULT([${have_shm_open}])
if ! test "x${have_shm_open}" = "xyes" ; then
AC_MSG_CHECKING([whether shm_open is in librt])
LIBS_save="${LIBS}"
LIBS="${LIBS} -lrt"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
]],
[[
int fd;
fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
shm_unlink("/");
]])],
[
have_shm_open="yes"
AC_DEFINE(HAVE_SHM_OPEN, 1, [Have shm_open() call])
SHM_OPEN_LIBS="-lrt"
],
[have_shm_open="no"])
LIBS="${LIBS_save}"
AC_MSG_RESULT([${have_shm_open}])
fi
AC_SUBST([SHM_OPEN_LIBS])
2012-02-18 04:56:53 -08:00
2012-03-07 09:17:06 -08:00
AC_MSG_CHECKING([whether shm_open is available])
2012-02-18 04:56:53 -08:00
AC_MSG_RESULT([${have_shm_open}])
2010-03-18 07:43:39 -07:00
### Checks for optionnal feature
2011-04-11 12:58:56 -07:00
AC_CHECK_FUNC([mallinfo],
[
have_mallinfo="yes"
AC_DEFINE(HAVE_MALLINFO, 1, [Gather memory statistic])
],
[have_mallinfo="no"])
2010-03-18 07:43:39 -07:00
2009-03-13 09:35:16 -07:00
### Ecore modules
2007-11-05 11:54:24 -08:00
2009-03-13 09:35:16 -07:00
## Core modules
# ecore_con
2010-02-24 09:52:54 -08:00
ECORE_CHECK_MODULE([con], [${want_ecore_con}], [Con], [${have_addrinfo}])
2009-03-13 09:35:16 -07:00
have_curl="no"
have_gnutls="no"
have_openssl="no"
2009-12-03 02:26:40 -08:00
have_cares="no"
2011-11-02 11:16:23 -07:00
want_ipv6="yes"
have_ipv6="no"
AC_ARG_ENABLE([ipv6],
[AC_HELP_STRING([--disable-ipv6],
[disable ipv6 functionality @<:@default=detect@:>@])],
[
if test "x${enableval}" = "xyes" ; then
want_ipv6="yes"
else
want_ipv6="no"
fi],
[want_ipv6="auto"])
2009-03-13 09:35:16 -07:00
if test "x${have_ecore_con}" = "xyes" ; then
2008-05-30 12:35:14 -07:00
2011-09-29 14:04:54 -07:00
# Verify IPV6 availability in headers
2011-11-02 11:16:23 -07:00
if test "x${want_ipv6}" != "xno" ; then
AC_CHECK_TYPES([struct ipv6_mreq],
[have_ipv6="yes"],
[have_ipv6="no"],
[[
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#endif
]])
fi
2011-09-29 14:04:54 -07:00
if test "x${have_ipv6}" = "xyes" ; then
AC_DEFINE(HAVE_IPV6, 1, [Define if IPV6 is supported])
fi
2009-03-13 09:35:16 -07:00
ECORE_CHECK_CURL([${want_curl}],
2007-11-05 11:54:24 -08:00
[
2009-03-13 09:35:16 -07:00
have_curl="yes"
2009-10-03 11:08:43 -07:00
requirements_ecore_con="libcurl ${requirements_ecore_con}"
2009-03-13 09:35:16 -07:00
],
[have_curl="no"])
ECORE_CHECK_GNUTLS([${want_gnutls}],
[have_gnutls="yes"],
[have_gnutls="no"])
ECORE_CHECK_OPENSSL([${want_openssl}],
[have_openssl="yes"],
[have_openssl="no"])
if test "x${have_gnutls}" = "xyes" ; then
requirements_ecore_con="gnutls ${requirements_ecore_con}"
# no need to add it to req_ecore_ipc, since they
# depends on ecore_con anyway.
else
if test "x${have_openssl}" = "xyes" ; then
requirements_ecore_con="openssl ${requirements_ecore_con}"
# no need to add it to req_ecore_ipc, since they
# depends on ecore_con anyway.
fi
fi
2009-12-03 02:26:40 -08:00
ECORE_CHECK_CARES([${want_cares}],
[
2009-12-19 03:36:18 -08:00
have_cares="yes"
requirements_ecore_con="libcares ${requirements_ecore_con}"
],
[have_cares="no"])
2009-12-03 02:26:40 -08:00
2005-10-15 03:37:37 -07:00
fi
2009-12-19 03:36:18 -08:00
AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
2009-03-13 09:35:16 -07:00
# ecore_ipc
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}],
2011-12-16 08:24:43 -08:00
[
2011-12-18 21:57:31 -08:00
requirements_ecore_ipc="ecore-con >= 1.1.99 ${requirements_ecore_ipc}"
requirements_ecore_evas="ecore-ipc >= 1.1.99 ${requirements_ecore_evas}"
2011-12-16 08:24:43 -08:00
])
2009-03-13 09:35:16 -07:00
# ecore_file
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([file], [${want_ecore_file}], [File])
2009-03-13 09:35:16 -07:00
have_poll="no"
have_inotify="no"
2009-11-11 09:45:55 -08:00
have_notify_win32="no"
2009-03-13 09:35:16 -07:00
if test "x${have_ecore_file}" = "xyes" ; then
ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"])
ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"])
2009-11-11 09:45:55 -08:00
ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"])
2009-03-13 09:35:16 -07:00
if test "x${have_ecore_con}" = "xyes" ; then
2011-12-18 21:57:31 -08:00
requirements_ecore_file="ecore-con >= 1.1.99 ${requirements_ecore_file}"
2011-09-06 23:53:48 -07:00
else
ECORE_CHECK_CURL([${want_curl}],
[
have_curl="yes"
requirements_ecore_file="libcurl ${requirements_ecore_file}"
],
[have_curl="no"])
2009-03-13 09:35:16 -07:00
fi
2011-09-06 23:53:48 -07:00
2007-11-05 11:54:24 -08:00
fi
2008-05-30 12:35:14 -07:00
2009-03-13 09:35:16 -07:00
# ecore_config
2010-08-23 23:37:37 -07:00
#ecore_config_deps="no"
#if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then
# ecore_config_deps="yes"
#fi
#ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}],
2011-12-18 21:57:31 -08:00
# [requirements_ecore_config="ecore-ipc >= 1.1.99 evas >= 1.1.99 eet >= 1.5.0 ${requirements_ecore_config}"])
2003-12-15 21:54:46 -08:00
2010-08-23 23:37:37 -07:00
AM_CONDITIONAL(BUILD_ECORE_CONFIG, false)
2008-03-10 22:12:47 -07:00
2009-03-13 09:35:16 -07:00
# ecore_imf
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([imf], [${want_ecore_imf}], [Imf])
2009-03-13 09:35:16 -07:00
# ecore_imf_evas
ecore_imf_evas_deps="no"
if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then
ecore_imf_evas_deps="yes"
2007-07-16 00:23:11 -07:00
fi
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([imf-evas], [${want_ecore_imf}], [Imf_Evas], [${ecore_imf_evas_deps}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_imf_evas="ecore-imf >= 1.1.99 evas >= 1.1.99 ${requirements_ecore_imf_evas}"])
2009-03-19 10:40:51 -07:00
2010-01-07 11:26:52 -08:00
# ecore_input{_evas}
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([input], [${want_ecore_input}], [Input])
ECORE_CHECK_MODULE([input-evas], [${want_ecore_input}], [Input_Evas], [${have_evas}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_input_evas="ecore-input >= 1.1.99 evas >= 1.1.99 ${requirements_ecore_input}"])
2008-09-19 19:08:50 -07:00
2011-07-11 19:26:29 -07:00
# ecore_imf_xim
AM_CONDITIONAL(BUILD_ECORE_IMF_XIM, false)
ecore_imf_xim_deps="no"
echo "have_ecore_x_xlib: ${have_ecore_x_xlib}"
if test "x${have_ecore_imf}" = "xyes" \
-a "x${have_ecore_x_xlib}" = "xyes" \
-a "x${have_ecore_input}" = "xyes" ; then
ecore_imf_xim_deps="yes"
AC_DEFINE(BUILD_ECORE_IMF_XIM, 1, [Ecore Imf XIM Support])
fi
ECORE_CHECK_MODULE([imf-xim], [${want_ecore_imf}], [Imf_XIM], [${ecore_imf_xim_deps}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_imf_xim="ecore-imf >= 1.1.99 ecore-x >= 1.1.99 ecore-input >= 1.1.99 ${requirements_ecore_imf_xim}"])
2011-07-11 19:26:29 -07:00
2011-12-25 20:25:55 -08:00
# ecore_imf_scim
PKG_CHECK_MODULES([SCIM], [scim], [have_scim="yes"], [have_scim="no"])
AM_CONDITIONAL(BUILD_ECORE_IMF_SCIM, false)
ecore_imf_scim_deps="no"
echo "have_ecore_x_xlib: ${have_ecore_x_xlib}"
if test "x${have_ecore_imf}" = "xyes" \
-a "x${have_scim}" = "xyes" \
-a "x${have_ecore_input}" = "xyes" ; then
ecore_imf_scim_deps="yes"
AC_DEFINE(BUILD_ECORE_IMF_SCIM, 1, [Ecore Imf SCIM Support])
fi
ECORE_CHECK_MODULE([imf-scim], [${want_ecore_imf}], [Imf_SCIM], [${ecore_imf_scim_deps}],
[requirements_ecore_imf_scim="ecore-imf >= 1.1.0 ecore-x >= 1.1.0 ecore-input >= 1.1.0 ${requirements_ecore_imf_scim}"])
2009-03-13 09:35:16 -07:00
## Graphic systems
# ecore_x{cb}
2009-03-19 10:40:51 -07:00
ecore_x_deps="no"
2009-04-10 03:40:12 -07:00
if test "x${have_x}" = "xyes" -a \
2010-02-16 05:14:07 -08:00
"x${have_ecore_input}" = "xyes" ; then
2009-03-19 10:40:51 -07:00
ecore_x_deps="yes"
fi
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([x], [${want_ecore_x}], [X], [${ecore_x_deps}],
2009-03-19 10:40:51 -07:00
[
ecore_x_libs="$ecore_x_libs $x_libs"
2011-12-18 21:57:31 -08:00
requirements_ecore_x="ecore-input >= 1.1.99 ${requirements_ecore_x}"
2009-03-19 10:40:51 -07:00
])
2009-03-13 09:35:16 -07:00
# ecore_win32
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([win32], [${want_ecore_win32}], [Win32], [${have_ecore_input}],
2009-10-03 11:08:43 -07:00
[
ecore_win32_libs="-lole32 -lgdi32"
2011-12-18 21:57:31 -08:00
requirements_ecore_win32="ecore-input >= 1.1.99 ${requirements_ecore_win32}"
2009-10-03 11:08:43 -07:00
])
2009-03-13 09:35:16 -07:00
AC_SUBST(ecore_win32_libs)
2010-03-27 11:28:50 -07:00
# ecore_cocoa
2009-03-13 09:35:16 -07:00
2010-03-27 11:28:50 -07:00
ecore_cocoa_deps="no"
if test "x${have_ecore_input}" = "xyes" -a "x${have_cocoa}" = "xyes" ; then
ecore_cocoa_deps="yes"
2009-10-03 11:08:43 -07:00
fi
2010-03-27 11:28:50 -07:00
ECORE_CHECK_MODULE([cocoa], [${want_ecore_cocoa}], [Cocoa], [${ecore_cocoa_deps}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_cocoa="ecore-input >= 1.1.99 ${requirements_ecore_cocoa}"])
2009-03-13 09:35:16 -07:00
# ecore_sdl
2009-03-19 10:40:51 -07:00
ecore_sdl_deps="no"
if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then
ecore_sdl_deps="yes"
fi
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([sdl], [${want_ecore_sdl}], [Sdl], [${ecore_sdl_deps}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_sdl="ecore-input >= 1.1.99 ${requirements_ecore_sdl}"])
2009-03-13 09:35:16 -07:00
2011-11-05 10:49:55 -07:00
ECORE_CHECK_MODULE([psl1ght], [${want_ecore_psl1ght}], [psl1ght], [${ecore_psl1ght_deps}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_psl1ght="ecore-input >= 1.1.99 ${requirements_ecore_psl1ght}"])
2011-11-05 10:49:55 -07:00
2009-03-13 09:35:16 -07:00
# ecore_fb
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([fb], [${want_ecore_fb}], [FB], [$have_fb])
2009-03-13 09:35:16 -07:00
if test "x${have_ecore_fb}" = "xyes" ; then
2009-10-03 11:08:43 -07:00
ECORE_CHECK_TSLIB([${want_tslib}],
[
have_tslib="yes"
requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}"
],
[have_tslib="no"])
2008-09-19 19:08:50 -07:00
fi
2009-03-13 09:35:16 -07:00
# ecore_directfb
2005-01-08 10:40:32 -08:00
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([directfb], [${want_ecore_directfb}], [DirectFB], [${have_directfb}],
2009-10-03 11:08:43 -07:00
[requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"])
2009-03-13 09:35:16 -07:00
# ecore_wince
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([wince], [${want_ecore_wince}], [WinCE], [${have_ecore_input}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_win32="ecore-input >= 1.1.99 ${requirements_ecore_win32}"])
2009-03-13 09:35:16 -07:00
## Ecore Evas
# ecore_evas
2009-10-03 11:08:43 -07:00
ecore_evas_deps="no"
2012-02-18 04:56:53 -08:00
if test "x${have_evas}" = "xyes" && test "x${have_ecore_input}" = "xyes" && test "x${have_ecore_input_evas}" = "xyes" ; then
2009-10-03 11:08:43 -07:00
ecore_evas_deps="yes"
fi
2010-01-26 00:57:57 -08:00
ECORE_CHECK_MODULE([evas], [${want_ecore_evas}], [Evas], [${ecore_evas_deps}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_evas="ecore-input >= 1.1.99 ecore-input-evas >= 1.1.99 evas >= 1.1.99 ${requirements_ecore_evas}"])
2009-03-13 09:35:16 -07:00
# ecore_evas_buffer
ECORE_EVAS_CHECK_MODULE([software-buffer],
[${want_ecore_evas_software_buffer}],
[Software Buffer],
[yes])
# ecore_evas_x11
# ecore_evas_software_x11
ECORE_EVAS_CHECK_MODULE([software-x11],
[${want_ecore_evas_software_x11}],
2009-07-14 14:18:27 -07:00
[Software X11],
[${have_ecore_x}])
2011-07-09 11:19:23 -07:00
have_ecore_evas_software_xlib="no"
have_ecore_evas_software_xcb="no"
2009-07-14 14:18:27 -07:00
if test "x$have_ecore_evas_software_x11" = "xyes" ; then
have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11`
2011-10-01 11:04:57 -07:00
if test "x${have_ecore_evas_software_xlib}" = "xstatic"; then
have_ecore_evas_software_xlib="yes"
fi
2009-07-14 14:18:27 -07:00
if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then
AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support])
fi
have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11`
2011-08-12 13:31:15 -07:00
if test "x$have_ecore_evas_software_xcb" = "xstatic"; then
have_ecore_evas_software_xcb="yes"
fi
2009-07-14 14:18:27 -07:00
if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support])
fi
fi
2007-08-26 04:17:21 -07:00
2009-03-13 09:35:16 -07:00
# ecore_evas_opengl_x11
ECORE_EVAS_CHECK_MODULE([opengl-x11],
[${want_ecore_evas_opengl_x11}],
[OpenGL Xlib],
2011-07-25 22:54:01 -07:00
[${have_ecore_x}])
2009-03-13 09:35:16 -07:00
2011-07-14 08:46:30 -07:00
have_ecore_evas_opengl_xlib="no"
have_ecore_evas_opengl_xcb="no"
if test "x${have_ecore_evas_opengl_x11}" = "xyes" -o "x${have_ecore_evas_opengl_x11}" = "xstatic" ; then
have_ecore_evas_opengl_xlib=`${PKG_CONFIG} --variable=Xlib evas-opengl-x11`
2011-07-25 22:54:01 -07:00
if test "x${have_ecore_evas_opengl_xlib}" = "xyes" ; then
2011-07-14 08:46:30 -07:00
AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XLIB, 1, [OpenGL Xlib rendering backend])
fi
# opengl does not work with xcb (yet)
have_ecore_evas_opengl_xcb=`${PKG_CONFIG} --variable=XCB evas-opengl-x11`
2011-08-12 13:31:15 -07:00
if test "x${have_ecore_evas_opengl_xcb}" = "xstatic"; then
have_ecore_evas_opengl_xcb="yes"
fi
2011-07-25 22:54:01 -07:00
if test "x${have_ecore_evas_opengl_xcb}" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
2011-07-14 08:46:30 -07:00
PKG_CHECK_MODULES(XCB_X11, x11-xcb,
[ have_ecore_x_opengl_xcb="yes"
requirements_ecore_x="x11-xcb ${requirements_ecore_x}"
AC_DEFINE(BUILD_ECORE_X_OPENGL_XCB, 1, [Build support for XCB-based OpenGL])
AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XCB, 1, [OpenGL XCB rendering backend])
],
[ have_ecore_x_opengl_xcb="no" ])
else
have_ecore_x_opengl_xcb="no"
AC_MSG_NOTICE("XCB-based OpenGL explicitly disabled")
fi
fi
2009-03-13 09:35:16 -07:00
# ecore_evas_software_x11 16 bits
ECORE_EVAS_CHECK_MODULE([software-16-x11],
[${want_ecore_evas_software_16_x11}],
[Software Xlib 16 bits],
2009-07-24 21:52:34 -07:00
[${have_ecore_x_xlib}])
2009-03-13 09:35:16 -07:00
2010-07-27 17:17:40 -07:00
ECORE_EVAS_CHECK_MODULE([software-8-x11],
[$want_ecore_evas_software_8_x11],
[Software 8bit X11],
$have_ecore_x_xcb)
2009-03-13 09:35:16 -07:00
if test "x$have_ecore_evas_software_x11" = "xyes" -o \
"x$have_ecore_evas_opengl_x11" = "xyes" -o \
2010-07-27 17:17:40 -07:00
"x$have_ecore_evas_software_8_x11" = "xyes" -o \
2009-03-13 09:35:16 -07:00
"x$have_ecore_evas_software_16_x11" = "xyes" -o \
2011-06-19 23:58:33 -07:00
"x$have_ecore_evas_software_xcb" = "xyes"; then
2009-03-13 09:35:16 -07:00
AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas])
2011-12-18 21:57:31 -08:00
requirements_ecore_evas="ecore-x >= 1.1.99 ${requirements_ecore_evas}"
2009-03-13 09:35:16 -07:00
fi
# ecore_evas_win32
2007-11-21 14:20:16 -08:00
2009-04-22 20:24:16 -07:00
ECORE_EVAS_CHECK_MODULE([software-gdi],
[${want_ecore_evas_software_gdi}],
[Software GDI],
[${have_ecore_win32}])
2009-03-13 09:35:16 -07:00
ECORE_EVAS_CHECK_MODULE([software-ddraw],
[${want_ecore_evas_software_ddraw}],
[Software DirectDraw],
[${have_ecore_win32}])
ECORE_EVAS_CHECK_MODULE([direct3d],
[${want_ecore_evas_direct3d}],
[Direct3d],
[${have_ecore_win32}])
ECORE_EVAS_CHECK_MODULE([opengl-glew],
[${want_ecore_evas_opengl_glew}],
[Glew OpenGL],
[${have_ecore_win32}])
ECORE_EVAS_CHECK_MODULE([software-16-ddraw],
[${want_ecore_evas_software_16_ddraw}],
[16 bpp Software DirectDraw],
[${have_ecore_win32}])
2009-04-22 20:24:16 -07:00
if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \
"x${have_ecore_evas_software_ddraw}" = "xyes" -o \
2009-03-13 09:35:16 -07:00
"x${have_ecore_evas_direct3d}" = "xyes" -o \
"x${have_ecore_evas_opengl_glew}" = "xyes" -o \
"x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then
AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
2011-12-18 21:57:31 -08:00
requirements_ecore_evas="ecore-win32 >= 1.1.99 ${requirements_ecore_evas}"
2007-11-21 14:20:16 -08:00
fi
2009-03-13 09:35:16 -07:00
# ecore_evas_software_sdl
2012-02-25 13:20:42 -08:00
have_ecore_evas_software_sdl="no"
if test "x${have_ecore_sdl}" = "xyes"; then
requirements_ecore_evas="ecore-sdl >= 1.1.99 ${requirements_ecore_evas}"
have_ecore_evas_software_sdl="yes"
AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_SDL, 1, [Support for Software SDL Engine in Ecore_Evas])
requirements_ecore_evas="ecore-sdl >= 1.1.99 ${requirements_ecore_evas}"
fi
2009-03-13 09:35:16 -07:00
2010-01-30 02:23:54 -08:00
# ecore_evas_gl_sdl
ECORE_EVAS_CHECK_MODULE([opengl-sdl],
[${want_ecore_evas_gl_sdl}],
[OpenGL SDL],
[${have_ecore_sdl}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_evas="ecore-sdl >= 1.1.99 ${requirements_ecore_evas}"])
2010-01-30 02:23:54 -08:00
2011-11-02 12:20:09 -07:00
# ecore_evas_cocoa
ECORE_EVAS_CHECK_MODULE([opengl-cocoa],
[${want_ecore_evas_gl_cocoa}],
[OpenGL Cocoa],
[${have_ecore_cocoa}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_evas="ecore-cocoa >= 1.1.99 ${requirements_ecore_evas}"])
2011-11-02 12:20:09 -07:00
2009-03-13 09:35:16 -07:00
# ecore_evas_directfb
ECORE_EVAS_CHECK_MODULE([directfb],
[${want_ecore_evas_directfb}],
[DirectFB],
[${have_ecore_directfb}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_evas="ecore-directfb >= 1.1.99 ${requirements_ecore_evas}"])
2009-03-13 09:35:16 -07:00
# ecore_evas_fb
ECORE_EVAS_CHECK_MODULE([fb],
[${want_ecore_evas_fb}],
[Linux Framebuffer],
[${have_ecore_fb}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_evas="ecore-fb >= 1.1.99 ${requirements_ecore_evas}"])
2009-03-13 09:35:16 -07:00
# ecore_evas_wince
ECORE_EVAS_CHECK_MODULE([software-16-wince],
[${want_ecore_evas_software_16_wince}],
[16 bpp Software Windows CE],
[${have_ecore_wince}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_evas="ecore-wince >= 1.1.99 ${requirements_ecore_evas}"])
2009-01-11 02:20:22 -08:00
2011-10-05 15:11:00 -07:00
# ecore_evas_ews
ECORE_EVAS_CHECK_MODULE_FULL([ews], [software-buffer],
[${want_ecore_evas_ews}],
[Ecore Evas Single Process Windowing System],
[yes], [])
2012-02-18 04:56:53 -08:00
# ecore_evas_extn
have_extn="yes"
if test "x${have_ecore_ipc}" = "xno" || \
test "x${have_ecore_evas_software_buffer}" = "xno" || \
test "x${have_shm_open}" = "xno" ; then
have_extn="no"
fi
2012-02-22 21:56:36 -08:00
dnl THIS IS SPECIAL - dont use normal ECORE_EVAS_CHECK_MODULE
have_ecore_evas_extn="no"
if test "x${want_ecore_evas_extn}" = "xyes" && \
2012-02-23 00:04:35 -08:00
test "x${have_extn}" = "xyes" && \
2012-02-22 21:56:36 -08:00
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
2012-02-18 04:56:53 -08:00
2011-11-05 10:50:02 -07:00
# ecore_evas_psl1ght
ECORE_EVAS_CHECK_MODULE([psl1ght],
[${want_ecore_evas_psl1ght}],
[PSL1GHT],
[${have_ecore_psl1ght}],
2011-12-18 21:57:31 -08:00
[requirements_ecore_evas="ecore-psl1ght >= 1.1.99 ${requirements_ecore_evas}"])
2011-11-05 10:50:02 -07:00
2011-12-26 15:27:20 -08:00
### WAYLAND
ecore_wayland_deps="no"
have_wayland="no"
if test "x${want_ecore_wayland}" = "xyes" ; then
2012-02-28 13:57:10 -08:00
PKG_CHECK_MODULES([WAYLAND], [egl wayland-egl wayland-client xkbcommon], [have_wayland="yes"], [have_wayland="no"])
2011-12-26 15:27:20 -08:00
fi
if test "x${have_ecore_input}" = "xyes" -a "x${have_wayland}" = "xyes" ; then
ecore_wayland_deps="yes"
fi
ECORE_CHECK_MODULE([wayland], [${want_ecore_wayland}], [Wayland], [${ecore_wayland_deps}])
if test "x${have_ecore_wayland}" = "xyes" ; then
2012-02-28 13:57:10 -08:00
requirements_ecore_wayland="ecore-input >= 1.1.0 egl wayland-egl wayland-client xkbcommon ${requirements_ecore_wayland}"
2011-12-26 15:27:20 -08:00
fi
ECORE_EVAS_CHECK_MODULE_FULL([wayland-shm], [wayland-shm],
[${want_ecore_evas_wayland_shm}],
[Wayland Shm],
[${have_ecore_wayland}],
2012-01-11 05:06:02 -08:00
[requirements_ecore_evas="${requirements_ecore_wayland} ${requirements_ecore_evas}"])
2011-12-26 15:27:20 -08:00
2012-02-28 13:57:10 -08:00
ECORE_EVAS_CHECK_MODULE_FULL([wayland-egl], [wayland-egl egl],
2011-12-26 15:27:20 -08:00
[${want_ecore_evas_wayland_egl}],
[Wayland Egl],
[${have_ecore_wayland}],
2012-01-11 05:06:02 -08:00
[
PKG_CHECK_MODULES([WAYLAND_EGL], [wayland-egl], [have_wayland_egl="yes"], [have_wayland_egl="no"])
if test "x${have_wayland_egl}" = "xyes" ; then
2012-01-12 01:08:19 -08:00
requirements_ecore_evas="wayland-egl egl ${requirements_ecore_wayland} ${requirements_ecore_evas}"
2012-01-11 05:06:02 -08:00
fi
])
2011-12-26 15:27:20 -08:00
2012-02-23 00:04:35 -08:00
### Unit tests
EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
2011-06-21 10:14:19 -07:00
### install and build examples
EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
2009-03-13 09:35:16 -07:00
### requirements
AC_SUBST(requirements_ecore)
2007-03-21 08:30:23 -07:00
AC_SUBST(requirements_ecore_con)
2010-08-23 23:37:37 -07:00
#AC_SUBST(requirements_ecore_config)
2007-03-21 08:30:23 -07:00
AC_SUBST(requirements_ecore_directfb)
AC_SUBST(requirements_ecore_evas)
AC_SUBST(requirements_ecore_fb)
AC_SUBST(requirements_ecore_file)
2009-03-13 09:35:16 -07:00
AC_SUBST(requirements_ecore_imf)
AC_SUBST(requirements_ecore_imf_evas)
2009-03-19 10:40:51 -07:00
AC_SUBST(requirements_ecore_input)
2010-01-07 11:26:52 -08:00
AC_SUBST(requirements_ecore_input_evas)
2007-03-21 08:30:23 -07:00
AC_SUBST(requirements_ecore_ipc)
2010-03-27 11:28:50 -07:00
AC_SUBST(requirements_ecore_cocoa)
2009-03-13 09:35:16 -07:00
AC_SUBST(requirements_ecore_sdl)
2011-11-05 10:49:55 -07:00
AC_SUBST(requirements_ecore_psl1ght)
2007-03-21 08:30:23 -07:00
AC_SUBST(requirements_ecore_x)
2009-03-13 09:35:16 -07:00
AC_SUBST(requirements_ecore_win32)
AC_SUBST(requirements_ecore_wince)
2011-07-11 19:26:29 -07:00
AC_SUBST(requirements_ecore_imf_xim)
2011-12-25 20:25:55 -08:00
AC_SUBST(requirements_ecore_imf_scim)
2011-12-26 15:27:20 -08:00
AC_SUBST(requirements_ecore_wayland)
2007-03-23 13:25:18 -07:00
2011-01-28 18:22:14 -08:00
AC_CONFIG_FILES([
2003-09-23 01:09:32 -07:00
Makefile
2007-03-21 08:30:23 -07:00
ecore-con.pc
ecore-config.pc
ecore-directfb.pc
ecore-evas.pc
ecore-fb.pc
ecore-file.pc
2007-11-19 10:27:11 -08:00
ecore-imf.pc
2007-11-21 14:20:16 -08:00
ecore-imf-evas.pc
2007-03-21 08:30:23 -07:00
ecore-ipc.pc
ecore-x.pc
2009-03-16 09:24:43 -07:00
ecore-input.pc
2010-01-07 11:26:52 -08:00
ecore-input-evas.pc
2007-08-26 04:17:21 -07:00
ecore-win32.pc
2007-07-16 00:23:11 -07:00
ecore-sdl.pc
2011-11-02 12:20:09 -07:00
ecore-cocoa.pc
2011-11-05 10:49:55 -07:00
ecore-psl1ght.pc
2008-05-30 22:05:01 -07:00
ecore-wince.pc
2011-12-26 15:27:20 -08:00
ecore-wayland.pc
2004-07-11 01:08:03 -07:00
ecore.pc
2009-01-11 02:20:22 -08:00
doc/ecore.dox
doc/Makefile
2011-06-13 10:31:21 -07:00
doc/Doxyfile
2003-09-23 01:09:32 -07:00
src/Makefile
2011-07-14 08:46:30 -07:00
src/util/Makefile
2006-10-28 04:41:53 -07:00
src/bin/Makefile
2003-09-23 01:09:32 -07:00
src/lib/Makefile
src/lib/ecore/Makefile
2010-02-03 18:14:56 -08:00
src/lib/ecore_con/Makefile
src/lib/ecore_config/Makefile
src/lib/ecore_directfb/Makefile
src/lib/ecore_evas/Makefile
2003-09-23 01:09:32 -07:00
src/lib/ecore_fb/Makefile
2010-02-03 18:14:56 -08:00
src/lib/ecore_file/Makefile
2010-03-27 11:28:50 -07:00
src/lib/ecore_cocoa/Makefile
2010-02-03 18:14:56 -08:00
src/lib/ecore_sdl/Makefile
2011-11-05 10:49:55 -07:00
src/lib/ecore_psl1ght/Makefile
2007-11-19 10:27:11 -08:00
src/lib/ecore_imf/Makefile
2007-11-21 14:20:16 -08:00
src/lib/ecore_imf_evas/Makefile
2009-03-16 09:24:43 -07:00
src/lib/ecore_input/Makefile
2010-01-07 11:26:52 -08:00
src/lib/ecore_input_evas/Makefile
2003-09-23 01:09:32 -07:00
src/lib/ecore_ipc/Makefile
2007-08-26 04:17:21 -07:00
src/lib/ecore_win32/Makefile
2008-05-30 22:05:01 -07:00
src/lib/ecore_wince/Makefile
2010-02-03 18:14:56 -08:00
src/lib/ecore_x/Makefile
src/lib/ecore_x/xlib/Makefile
src/lib/ecore_x/xcb/Makefile
2011-12-26 15:27:20 -08:00
src/lib/ecore_wayland/Makefile
2011-06-21 10:14:19 -07:00
src/examples/Makefile
2011-01-16 10:31:21 -08:00
src/tests/Makefile
2011-07-11 19:26:29 -07:00
src/modules/Makefile
src/modules/immodules/Makefile
src/modules/immodules/xim/Makefile
2011-12-25 20:25:55 -08:00
src/modules/immodules/scim/Makefile
2005-03-10 07:19:43 -08:00
ecore.spec
2011-06-06 00:00:24 -07:00
$po_makefile_in
2005-03-10 07:19:43 -08:00
])
2004-01-02 11:08:32 -08:00
2011-01-28 18:22:14 -08:00
AC_OUTPUT
2004-01-02 11:08:32 -08:00
echo
echo "$PACKAGE $VERSION"
echo
echo "Optional Modules:"
echo
2008-07-18 10:31:27 -07:00
echo " Core:"
echo
2009-03-13 09:35:16 -07:00
echo " Ecore........................: always"
2010-11-26 05:54:11 -08:00
echo " Thread support.............: $have_threads"
2011-07-28 05:01:16 -07:00
echo " Thread safety..............: $want_thread_safety"
welcome glib main loop integration support.
that's it, it's here... tested and works fine, please try with your
favorite gmainloop dependent library and report problems. Suggestions:
* GConf to access Gnome and its applications settings.
* GtkSettings to access other properties of Gnome and its applications.
* GUPnP (okay, we have EUPnP, but they have more features so far)
* Rygel, based on GUPnP.
* Libsoup, SOAP and HTTP access, useful for web access and required
by other libraries.
* Mojito, by Moblin, access to various web2.0 services like flickr,
picasa, twitter...
And last but not least, this enables Flash plugin on WebKit-EFL and
may enable us to get Google Gadgets sooner (before someone writes a
proper EFL backend).
Support is auto-detected at compile time but can be disabled with
--disable-glib. Runtime support is not enabled by default (so
compiling with it will just link yet another library), one needs to
call ecore_main_loop_glib_integrate() to do so.
Thanks to INdT folks that provided the initial implementation. I
rewrote it to make it correct, but the idea was good.
SVN revision: 42825
2009-09-30 20:56:38 -07:00
echo " GLib support...............: $have_glib"
2010-03-21 20:30:40 -07:00
echo " Always integrate GLib......: $want_glib_integration_always"
2010-08-14 04:19:03 -07:00
echo " Use g_main_loop............: $want_g_main_loop"
2010-03-18 07:43:39 -07:00
echo " Gathering memory statistic.: $have_mallinfo"
2011-05-17 10:32:32 -07:00
echo " Gathering timer allocation.: $want_ecore_timer_dump"
2008-07-18 10:31:27 -07:00
echo " Ecore_Con....................: $have_ecore_con"
if test "x$have_ecore_con" = "xyes" ; then
2009-08-20 14:20:31 -07:00
echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
2008-10-30 08:26:11 -07:00
if test "x$have_gnutls" = "xyes" ; then
echo " (disabled)"
else
echo
fi
2011-11-01 19:59:36 -07:00
echo " IPv6.......................: $have_ipv6"
2008-10-30 08:26:11 -07:00
echo " GnuTLS.....................: $have_gnutls"
2008-07-18 10:31:27 -07:00
echo " CURL.......................: $have_curl"
2011-09-29 14:05:39 -07:00
echo " Local Sockets..............: $want_ecore_con_local_sockets"
if test "x$want_ecore_con_local_sockets" = "xyes" ; then
echo " Abstract Sockets.........: $want_ecore_con_abstract_sockets"
2011-09-29 14:05:32 -07:00
fi
2009-12-03 02:26:40 -08:00
echo " c-ares.....................: $have_cares"
2008-07-18 10:31:27 -07:00
fi
echo " Ecore_Ipc....................: $have_ecore_ipc"
2009-03-13 09:35:16 -07:00
if test "x$have_ecore_ipc" = "xyes" ; then
2009-08-20 14:20:31 -07:00
echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
2008-10-30 08:26:11 -07:00
if test "x$have_gnutls" = "xyes" ; then
echo " (disabled)"
else
echo
fi
echo " GnuTLS.....................: $have_gnutls"
2008-07-18 10:31:27 -07:00
fi
2009-03-13 09:35:16 -07:00
echo " Ecore_File...................: $have_ecore_file"
if test "x$have_ecore_file" = "xyes" ; then
echo " Inotify....................: $have_inotify"
2009-11-11 09:45:55 -08:00
echo " Windows notification.......: $have_notify_win32"
2009-03-13 09:35:16 -07:00
echo " Poll.......................: $have_poll"
echo " CURL.......................: $have_curl"
fi
2010-08-23 23:37:37 -07:00
#echo " Ecore_Config.................: $have_ecore_config (deprecated)"
2008-07-18 10:31:27 -07:00
echo " Ecore_IMF....................: $have_ecore_imf"
2011-07-11 19:26:29 -07:00
echo " XIM........................: $have_ecore_imf_xim"
2011-12-25 20:25:55 -08:00
echo " SCIM.......................: $have_ecore_imf_scim"
2008-07-18 10:31:27 -07:00
echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas"
2009-03-19 10:40:51 -07:00
echo " Ecore_Input..................: $have_ecore_input"
2010-01-07 11:26:52 -08:00
echo " Ecore_Input_Evas.............: $have_ecore_input_evas"
2008-07-18 10:31:27 -07:00
echo
echo " Graphic systems:"
echo
2007-11-05 11:54:24 -08:00
2008-07-23 03:00:01 -07:00
if test "x$have_ecore_x" = "xyes" ; then
if test "x$have_ecore_x_xcb" = "xyes" ; then
echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb"
echo " Xprint.....................: $have_ecore_x_xcb_xprint"
echo " Xinerama...................: $have_ecore_x_xcb_xinerama"
echo " Xrandr.....................: $have_ecore_x_xcb_randr"
echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver"
echo " Xshape.....................: $have_ecore_x_xcb_shape"
2011-11-04 05:44:28 -07:00
echo " Xgesture...................: $have_ecore_x_xcb_gesture"
2008-07-23 03:00:01 -07:00
echo " Xsync......................: $have_ecore_x_xcb_sync"
echo " Xrender....................: $have_ecore_x_xcb_render"
echo " Xcomposite.................: $have_ecore_x_xcb_composite"
echo " Xfixes.....................: $have_ecore_x_xcb_xfixes"
echo " Xdamage....................: $have_ecore_x_xcb_damage"
echo " Xdpms......................: $have_ecore_x_xcb_dpms"
echo " Xtest......................: $have_ecore_x_xcb_xtest"
else
2008-07-18 10:31:27 -07:00
echo " Ecore_X (Xlib backend).......: $have_ecore_x"
echo " Xcursor....................: $use_Xcursor"
2009-03-13 09:35:16 -07:00
echo " Xkb........................: $use_xkb"
2008-07-18 10:31:27 -07:00
echo " Xprint.....................: $use_xprint"
echo " Xinerama...................: $use_xinerama"
echo " Xrandr.....................: $use_xrandr"
2011-11-04 05:44:28 -07:00
echo " Xgesture...................: $use_xgesture"
2008-07-18 10:31:27 -07:00
echo " Xscreensaver...............: $use_xss"
echo " Xrender....................: $use_xrender"
echo " Xcomposite.................: $use_xcomposite"
echo " Xfixes.....................: $use_xfixes"
echo " Xdamage....................: $use_xdamage"
echo " Xdpms......................: $use_xdpms"
echo " Xtest......................: $use_xtest"
2010-01-02 14:46:01 -08:00
echo " XIM........................: $want_xim"
2010-01-16 04:20:56 -08:00
echo " Xi2........................: $use_xi2"
2008-07-18 10:31:27 -07:00
fi
2008-07-23 03:00:01 -07:00
else
echo " Ecore_X......................: $have_ecore_x"
Here is ecore_x with XCB backend.
* The XCB backend is disabled by default during the
configuration. To enable it, add --enable-ecore-x-xcb. See the
messages that configure displays when it finishes.
* The way XCB is detected, and used in src/lib/ecore_x/Makefile.am
should be improved
* Any program that uses ecore_evas does not need to be modified.
Any program that uses ecore_x may need some changes. That is,
adding some functions (_prefetch and _fetch ones). No other
change is needed. See the documention of any _get functions, as
these are the ones that need those functions.
* There are some missing parts, especially everything that involves
the keyboard, as porting Xlib functions related to strings (utf8
stuff, XKeysymToString, etc...) is an horror. So keyboard events
are not working yet.
* I tried to write as much documentation as I could. But there is
certainly some missing doc here and there.
there are certainly other things that I have forgotten.
Improvements of that backend:
* the creation of an ecore_evas is faster. Especially when done over
an ssh connection (on my computer, 7-10s with Xlib, 1.5s with XCB,
over an ssh)
* A Window Manager should be more responsive. But it's not tomorrow
that e17 will use it :)
Have fun !
SVN revision: 29500
2007-04-13 10:15:19 -07:00
fi
2008-06-26 02:53:25 -07:00
echo " Ecore_Win32..................: $have_ecore_win32"
2010-03-27 11:28:50 -07:00
echo " Ecore_Cocoa..................: $have_ecore_cocoa"
2009-03-13 09:35:16 -07:00
echo " Ecore_SDL....................: $have_ecore_sdl"
2008-07-18 10:31:27 -07:00
echo " Ecore_FB.....................: $have_ecore_fb"
2009-03-13 09:35:16 -07:00
if test "x${have_ecore_fb}" = "xyes" ; then
echo " Touchscreen................: $have_tslib"
fi
echo " Ecore_DirectFB...............: $have_ecore_directfb"
2008-07-18 10:31:27 -07:00
echo " Ecore_WinCE..................: $have_ecore_wince"
2011-11-05 10:49:55 -07:00
echo " Ecore_PSL1GHT................: $have_ecore_psl1ght"
2011-12-26 15:27:20 -08:00
echo " Ecore_Wayland................: $have_ecore_wayland"
2007-11-05 11:54:24 -08:00
2008-07-18 10:31:27 -07:00
echo
echo " Ecore Evas:"
echo
2007-11-19 10:27:11 -08:00
2008-07-18 10:31:27 -07:00
echo " Ecore_Evas...................: $have_ecore_evas"
2009-03-13 09:35:16 -07:00
if test "x${have_ecore_evas}" = "xyes" ; then
echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer"
2009-07-14 14:18:27 -07:00
if test "x${have_ecore_evas_software_x11}" = "xyes" ; then
2010-01-27 11:48:11 -08:00
echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})"
2009-07-14 14:18:27 -07:00
else
echo " Software X11...............: $have_ecore_evas_software_x11"
fi
2011-07-14 08:46:30 -07:00
if test "x${have_ecore_evas_opengl_x11}" = "xyes" ; then
echo " OpenGL X11.................: $have_ecore_evas_opengl_x11 (Xlib=${have_ecore_evas_opengl_xlib}) (XCB=${have_ecore_evas_opengl_xcb})"
else
echo " OpenGL X11.................: $have_ecore_evas_opengl_x11"
fi
2009-04-22 20:24:16 -07:00
echo " Software GDI...............: $have_ecore_evas_software_gdi"
2008-07-18 10:31:27 -07:00
echo " Software DirectDraw........: $have_ecore_evas_software_ddraw"
echo " Direct3D...................: $have_ecore_evas_direct3d"
echo " OpenGL Glew................: $have_ecore_evas_opengl_glew"
2009-03-13 09:35:16 -07:00
echo " Software SDL...............: $have_ecore_evas_software_sdl"
2010-01-30 02:23:54 -08:00
echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl"
2011-11-02 12:20:09 -07:00
echo " OpenGL Cocoa...............: $have_ecore_evas_opengl_cocoa"
2009-03-13 09:35:16 -07:00
echo " DirectFB...................: $have_ecore_evas_directfb"
2011-11-05 10:50:02 -07:00
echo " PSL1GHT....................: $have_ecore_evas_psl1ght"
2008-07-18 10:31:27 -07:00
echo " Software Framebuffer.......: $have_ecore_evas_fb"
2010-07-27 17:17:40 -07:00
echo " Software 8bit grayscale XCB: $have_ecore_evas_software_8_x11"
2008-07-23 03:00:01 -07:00
echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11"
2008-07-18 10:31:27 -07:00
echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw"
echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince"
2011-10-05 15:11:00 -07:00
echo " Sing.Proc. Windowing System: $have_ecore_evas_ews"
2011-12-26 15:27:20 -08:00
echo " Wayland Shm................: $have_ecore_evas_wayland_shm"
echo " Wayland Egl................: $have_ecore_evas_wayland_egl"
2012-02-22 21:56:36 -08:00
echo " Extn (Plug/socket Extn)....: $have_ecore_evas_extn"
2008-07-18 10:31:27 -07:00
fi
2004-01-02 11:08:32 -08:00
echo
2011-01-16 10:31:21 -08:00
echo " Tests................: ${enable_tests}"
2010-02-25 12:28:15 -08:00
echo " Maximum log level....: ${with_max_log_level}"
2010-02-10 20:17:15 -08:00
echo "Documentation..........: ${build_doc}"
2009-12-18 03:32:35 -08:00
echo
echo "Compilation............: make (or gmake)"
echo " CPPFLAGS.............: $CPPFLAGS"
echo " CFLAGS...............: $CFLAGS"
echo " CXXFLAGS.............: $CXXFLAGS"
echo " LDFLAGS..............: $LDFLAGS"
echo
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix...............: $prefix"
echo