1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [0])
5 m4_define([v_mic], [0])
6 m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7 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']))])
8 ##-- When released, remove the dnl on the below line
10 ##-- When doing snapshots - change soname. remove dnl on below line
11 dnl m4_define([relname], [ver-pre-svn-07])
12 dnl m4_define([v_rel], [-release relname])
13 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 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])])
15 m4_define([lt_rev], m4_eval(v_maj + v_min))
16 m4_define([lt_cur], v_mic)
17 m4_define([lt_age], v_min)
18 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
21 AC_INIT([ecore], [v_ver], [enlightenment-devel@lists.sourceforge.net])
23 AC_CONFIG_SRCDIR([configure.ac])
24 AC_CONFIG_MACRO_DIR([m4])
26 AC_CONFIG_HEADERS([config.h])
28 #ifndef EFL_CONFIG_H__
29 #define EFL_CONFIG_H__
32 #endif /* EFL_CONFIG_H__ */
35 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
41 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
44 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
45 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
46 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
47 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
48 AC_DEFINE_UNQUOTED(VERS_MAJ, [v_maj], [Major version])
49 AC_DEFINE_UNQUOTED(VERS_MIN, [v_min], [Minor version])
50 AC_DEFINE_UNQUOTED(VERS_MIC, [v_mic], [Micro version])
51 AC_DEFINE_UNQUOTED(VERS_REV, [v_rev], [Revison])
52 version_info="lt_rev:lt_cur:lt_age"
54 AC_SUBST(version_info)
55 AC_SUBST(release_info)
56 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
57 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
61 m4_ifdef([AM_GNU_GETTEXT_VERSION], [
62 AM_GNU_GETTEXT_VERSION([0.12.1])
65 m4_ifdef([AM_GNU_GETTEXT], [
66 AM_GNU_GETTEXT([external])
67 AM_CONDITIONAL([HAVE_PO], [true])
69 AM_CONDITIONAL([HAVE_PO], [false])
73 with_max_log_level="<unset>"
74 AC_ARG_WITH(internal-maximum-log-level,
75 [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER],
76 [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.])],
78 if test "x${withval}" != "xno"; then
79 if echo "${withval}" | grep '^[[0-9]]\+$' >/dev/null 2>/dev/null; then
80 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
81 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.])
82 with_max_log_level="${withval}"
84 AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.])
90 ### Default options with respect to host
95 # dependencies and options
97 want_abstract_sockets="no"
105 want_notify_win32="no"
112 want_ecore_file="yes"
113 #want_ecore_config="no"
115 want_ecore_input="yes"
117 # graphic system modules
118 want_evas_simple_x11="no"
119 want_ecore_x_xcb="no"
121 want_ecore_win32="no"
122 want_ecore_cocoa="no"
125 want_ecore_directfb="no"
126 want_ecore_wince="no"
128 # ecore_x options (both xlib and xcb)
129 want_ecore_x_composite="yes"
130 want_ecore_x_damage="yes"
131 want_ecore_x_dpms="yes"
132 want_ecore_x_randr="yes"
133 want_ecore_x_render="yes"
134 want_ecore_x_screensaver="yes"
135 want_ecore_x_shape="yes"
136 want_ecore_x_sync="yes"
137 want_ecore_x_xfixes="yes"
138 want_ecore_x_xinerama="yes"
139 want_ecore_x_xprint="yes"
140 want_ecore_x_xtest="yes"
141 want_ecore_x_cursor="yes"
142 want_ecore_x_input="yes"
145 want_ecore_evas="yes"
146 want_ecore_evas_software_buffer="yes"
147 want_ecore_evas_software_x11="no"
148 want_ecore_evas_xrender_x11="no"
149 want_ecore_evas_opengl_x11="no"
150 want_ecore_evas_software_16_x11="no"
151 want_ecore_evas_software_8_x11="no"
152 want_ecore_evas_software_xcb="no"
153 want_ecore_evas_xrender_xcb="no"
154 want_ecore_evas_software_gdi="no"
155 want_ecore_evas_software_ddraw="no"
156 want_ecore_evas_direct3d="no"
157 want_ecore_evas_opengl_glew="no"
158 want_ecore_evas_software_16_ddraw="no"
159 want_ecore_evas_cocoa="no"
160 want_ecore_evas_software_sdl="no"
161 want_ecore_evas_gl_sdl="no"
162 want_ecore_evas_directfb="no"
163 want_ecore_evas_fb="no"
164 want_ecore_evas_software_16_wince="no"
169 want_ecore_wince="yes"
170 want_ecore_evas_software_16_wince="yes"
173 want_notify_win32="yes"
178 want_ecore_win32="yes"
179 want_ecore_evas_software_gdi="yes"
180 want_ecore_evas_software_ddraw="yes"
181 want_ecore_evas_direct3d="yes"
182 want_ecore_evas_opengl_glew="yes"
183 want_ecore_evas_software_16_ddraw="auto"
184 want_ecore_evas_software_sdl="yes"
185 want_ecore_evas_gl_sdl="yes"
194 want_ecore_cocoa="yes"
195 want_ecore_evas_cocoa="yes"
196 want_ecore_evas_software_sdl="yes"
197 want_ecore_evas_gl_sdl="yes"
202 want_abstract_sockets="yes"
213 want_ecore_evas_software_x11="yes"
214 want_ecore_evas_xrender_x11="yes"
215 want_ecore_evas_opengl_x11="yes"
216 want_ecore_evas_software_16_x11="yes"
217 want_ecore_evas_software_8_x11="yes"
218 want_ecore_evas_software_xcb="yes"
219 want_ecore_evas_xrender_xcb="yes"
220 want_ecore_evas_software_sdl="yes"
221 want_ecore_evas_gl_sdl="yes"
222 want_ecore_evas_directfb="yes"
223 want_ecore_evas_fb="yes"
227 requirements_ecore=""
228 requirements_ecore_con=""
229 #requirements_ecore_config=""
230 requirements_ecore_directfb=""
231 requirements_ecore_evas=""
232 requirements_ecore_fb=""
233 requirements_ecore_file=""
234 requirements_ecore_imf=""
235 requirements_ecore_imf_evas=""
236 requirements_ecore_input=""
237 requirements_ecore_input_evas=""
238 requirements_ecore_ipc=""
239 requirements_ecore_cocoa=""
240 requirements_ecore_sdl=""
241 requirements_ecore_x=""
242 requirements_ecore_win32=""
243 requirements_ecore_wince=""
245 ### Additional options to configure
247 want_glib_integration_always=no
248 AC_ARG_ENABLE(glib-integration-always,
249 AC_HELP_STRING([--enable-glib-integration-always], [enable glib integration when ecore_init() is called always]),
250 [want_glib_integration_always=$enableval])
252 if test "x${want_glib_integration_always}" = "xyes" ; then
253 AC_DEFINE([GLIB_INTEGRATION_ALWAYS], [1], [Always integrate glib if support compiled])
258 AC_ARG_ENABLE(g-main-loop,
259 AC_HELP_STRING([--enable-g-main-loop], [ecore_main_loop based on g_main_loop]),
260 [want_g_main_loop=$enableval])
262 if test "x${want_g_main_loop}" = "xyes" ; then
263 AC_DEFINE([USE_G_MAIN_LOOP], [1], [Use g_main_loop in ecore])
267 if test "x${want_glib_integration_always}" = "xyes" -a "x${want_g_main_loop}" = "xyes"; then
268 AC_MSG_ERROR([--enable-glib-integration-always and --enable-glib-main-loop are mutually exclusive])
271 # abstract sockets (ecore_con.c)
272 AC_ARG_ENABLE([abstract-sockets],
273 [AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])],
275 if test "x${enableval}" = "xyes" ; then
276 want_abstract_sockets="yes"
278 want_abstract_sockets="no"
281 [want_abstract_sockets="yes"])
283 if test "x${want_abstract_sockets}" = "xyes" ; then
284 AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace])
287 # Simple X11 build/link
289 AC_ARG_ENABLE(simple-x11,
290 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
291 [want_evas_simple_x11=$enableval])
295 [AC_HELP_STRING([--disable-xim], [disable X Input Method.])],
297 if test "x${enableval}" = "xyes" ; then
305 if test "x${want_xim}" = "xyes" ; then
306 AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
311 EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
313 ### Checks for programs
315 m4_ifdef([AC_PROG_OBJC],
318 _AM_DEPENDENCIES(OBJC)
321 AC_CHECK_TOOL([OBJC], [gcc])
323 AC_SUBST([OBJCFLAGS])
325 m4_ifndef([am__fastdepOBJC], [
326 AM_CONDITIONAL([am__fastdepOBJC], [false])
327 AC_SUBST([cocoa_ldflags])
333 have_gnu_objc=${ac_cv_objc_compiler_gnu}
335 # doxygen program for documentation building
337 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
339 # The first call to PKG_CHECK_MODULES is done conditionally,
340 # so we should include this here:
343 # Check whether pkg-config supports Requires.private
344 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
345 pkgconfig_requires_private="Requires.private"
347 pkgconfig_requires_private="Requires"
349 AC_SUBST(pkgconfig_requires_private)
352 ### Checks for libraries
354 # Evil library for compilation on Windows
358 PKG_CHECK_MODULES([EVIL], [evil])
359 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
360 requirements_ecore="evil ${requirements_ecore}"
361 requirements_ecore_evas="evil ${requirements_ecore_evas}"
362 requirements_ecore_file="evil ${requirements_ecore_file}"
363 requirements_ecore_imf="evil ${requirements_ecore_imf}"
364 requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}"
365 EFL_ECORE_BUILD="-DEFL_ECORE_BUILD"
366 EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD"
367 EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD"
368 EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD"
369 EFL_ECORE_IMF_EVAS_BUILD="-DEFL_ECORE_IMF_EVAS_BUILD"
370 EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD"
371 EFL_ECORE_INPUT_EVAS_BUILD="-DEFL_ECORE_INPUT_EVAS_BUILD"
379 EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD"
380 requirements_ecore_wince="evil ${requirements_ecore_wince}"
384 EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD"
385 EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD"
386 requirements_ecore_win32="evil ${requirements_ecore_win32}"
387 requirements_ecore_sdl="evil ${requirements_ecore_sdl}"
392 AC_SUBST(EFL_ECORE_BUILD)
393 AC_SUBST(EFL_ECORE_FILE_BUILD)
394 AC_SUBST(EFL_ECORE_EVAS_BUILD)
395 AC_SUBST(EFL_ECORE_IMF_BUILD)
396 AC_SUBST(EFL_ECORE_IMF_EVAS_BUILD)
397 AC_SUBST(EFL_ECORE_INPUT_BUILD)
398 AC_SUBST(EFL_ECORE_INPUT_EVAS_BUILD)
399 AC_SUBST(EFL_ECORE_WINCE_BUILD)
400 AC_SUBST(EFL_ECORE_WIN32_BUILD)
401 AC_SUBST(EFL_ECORE_SDL_BUILD)
403 AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes")
404 AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes")
413 WIN32_LIBS="-lws2_32"
417 AC_CHECK_LIB([c], [dlopen],
419 [AC_CHECK_LIB([dl], [dlopen],
422 AC_CHECK_LIB([c], [clock_gettime],
423 [AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])],
424 [AC_CHECK_LIB([rt], [clock_gettime],
427 AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])
433 AC_SUBST(dlopen_libs)
438 PKG_CHECK_MODULES(EINA, [eina >= 1.0.0])
439 #FIXME check all the requirements when the eina move will be finished
440 requirements_ecore="eina >= 1.0.0 ${requirements_ecore}"
441 requirements_ecore_con="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_con}"
442 #requirements_ecore_config="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_config}"
443 requirements_ecore_directfb="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_directfb}"
444 requirements_ecore_evas="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_evas}"
445 requirements_ecore_fb="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_fb}"
446 requirements_ecore_file="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_file}"
447 requirements_ecore_imf="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_imf}"
448 requirements_ecore_imf_evas="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_imf_evas}"
449 requirements_ecore_input="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_input}"
450 requirements_ecore_input_evas="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_input_evas}"
451 requirements_ecore_ipc="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_ipc}"
452 requirements_ecore_cocoa="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_cocoa}"
453 requirements_ecore_sdl="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_sdl}"
454 requirements_ecore_win32="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_win32}"
455 requirements_ecore_wince="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_wince}"
456 requirements_ecore_x="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_x}"
459 # glib support (main loop integration)
460 AC_ARG_ENABLE([glib],
461 [AC_HELP_STRING([--disable-glib], [disable glib support. @<:@default=detect@:>@])],
462 [want_glib=$enableval], [])
464 if test "x$want_glib" != "xno"; then
465 PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"])
469 if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then
470 AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.])
471 elif test "x$have_glib" = "xyes"; then
472 AC_DEFINE(HAVE_GLIB, [1], [Have GLib])
473 requirements_ecore="glib-2.0 ${requirements_ecore}"
477 # SDL library (ecore_sdl)
480 SDL_CONFIG="sdl-config"
481 AC_ARG_WITH([sdl-config],
482 [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
485 AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
488 AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
490 if test -n "$SDL_CONFIG" ; then
491 SDL_CFLAGS=`$SDL_CONFIG --cflags`
492 SDL_LIBS=`$SDL_CONFIG --libs`
497 PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
500 if test "x${have_sdl}" = "xyes" ; then
501 PKG_CHECK_EXISTS([sdl >= 1.3.0],
502 [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
506 # DirectFB library (ecore_directfb)
508 PKG_CHECK_MODULES([DIRECTFB],
509 [directfb >= 0.9.16],
510 [have_directfb="yes"],
511 [have_directfb="no"])
514 # Eet library (ecore_config)
516 #PKG_CHECK_MODULES([EET],
522 # Xlib and XCB (ecore_x)
526 have_ecore_x_xlib="no"
527 have_ecore_x_xcb="no"
534 ecore_x_libs_private=""
536 AC_ARG_ENABLE(ecore-x-composite,
537 [AC_HELP_STRING([--disable-ecore-x-composite],
538 [disable the ecore_x support for Xcomposite extension.
539 @<:@default=detect@:>@])],
540 [want_ecore_x_composite=$enableval])
542 AC_ARG_ENABLE(ecore-x-damage,
543 [AC_HELP_STRING([--disable-ecore-x-damage],
544 [disable the ecore_x support for Xdamage extension.
545 @<:@default=detect@:>@])],
546 [want_ecore_x_damage=$enableval])
548 AC_ARG_ENABLE(ecore-x-dpms,
549 [AC_HELP_STRING([--disable-ecore-x-dpms],
550 [disable the ecore_x support for Xdpms extension.
551 @<:@default=detect@:>@])],
552 [want_ecore_x_dpms=$enableval])
554 AC_ARG_ENABLE(ecore-x-randr,
555 [AC_HELP_STRING([--disable-ecore-x-randr],
556 [disable the ecore_x support for Xrandr extension.
557 @<:@default=detect@:>@])],
558 [want_ecore_x_randr=$enableval])
560 AC_ARG_ENABLE(ecore-x-render,
561 [AC_HELP_STRING([--disable-ecore-x-render],
562 [disable the ecore_x support for Xrender extension.
563 @<:@default=detect@:>@])],
564 [want_ecore_x_render=$enableval])
566 AC_ARG_ENABLE(ecore-x-screensaver,
567 [AC_HELP_STRING([--disable-ecore-x-screensaver],
568 [disable the ecore_x support for Xscreensaver extension.
569 @<:@default=detect@:>@])],
570 [want_ecore_x_screensaver=$enableval])
572 AC_ARG_ENABLE(ecore-x-shape,
573 [AC_HELP_STRING([--disable-ecore-x-shape],
574 [disable the ecore_x support for Xshape extension.
575 @<:@default=detect@:>@])],
576 [want_ecore_x_shape=$enableval])
578 AC_ARG_ENABLE(ecore-x-sync,
579 [AC_HELP_STRING([--disable-ecore-x-sync],
580 [disable the ecore_x support for Xsync extension.
581 @<:@default=detect@:>@])],
582 [want_ecore_x_sync=$enableval])
584 AC_ARG_ENABLE(ecore-x-xfixes,
585 [AC_HELP_STRING([--disable-ecore-x-xfixes],
586 [disable the ecore_x support for Xfixes extension.
587 @<:@default=detect@:>@])],
588 [want_ecore_x_xfixes=$enableval])
590 AC_ARG_ENABLE(ecore-x-xinerama,
591 [AC_HELP_STRING([--disable-ecore-x-xinerama],
592 [disable the ecore_x support for Xinerama extension.
593 @<:@default=detect@:>@])],
594 [want_ecore_x_xinerama=$enableval])
596 AC_ARG_ENABLE(ecore-x-xprint,
597 [AC_HELP_STRING([--disable-ecore-x-xprint],
598 [disable the ecore_x support for Xprint extension.
599 @<:@default=detect@:>@])],
600 [want_ecore_x_xprint=$enableval])
602 AC_ARG_ENABLE(ecore-x-xtest,
603 [AC_HELP_STRING([--disable-ecore-x-xtest],
604 [disable the ecore_x support for Xtest extension.
605 @<:@default=detect@:>@])],
606 [want_ecore_x_xtest=$enableval])
608 AC_ARG_ENABLE(ecore-x-cursor,
609 [AC_HELP_STRING([--disable-ecore-x-cursor],
610 [disable the ecore_x support for Xcursor extension.
611 @<:@default=detect@:>@])],
612 [want_ecore_x_cursor=$enableval])
614 AC_ARG_ENABLE(ecore-x-input,
615 [AC_HELP_STRING([--disable-ecore-x-input],
616 [disable the ecore_x support for Xinput/Xinput2 extension.
617 @<:@default=detect@:>@])],
618 [want_ecore_x_input=$enableval])
621 AC_ARG_ENABLE(ecore-x-xcb,
622 [AC_HELP_STRING([--enable-ecore-x-xcb],
623 [enable the ecore_x module with XCB backend. @<:@default=disabled@:>@])],
624 [want_ecore_x_xcb=$enableval],
625 [want_ecore_x_xcb="no"])
627 AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
628 AC_MSG_RESULT($want_ecore_x_xcb)
630 if test "x$want_ecore_x_xcb" = "xyes" ; then
631 PKG_CHECK_MODULES(XCB, xcb xcb-icccm xcb-image xcb-keysyms pixman-1,
632 [ have_ecore_x_xcb="yes"
633 requirements_ecore_x="xcb xcb-icccm xcb-image xcb-keysyms pixman-1 ${requirements_ecore_x}" ],
634 [ have_ecore_x_xcb="no" ])
636 if test "x$have_ecore_x_xcb" = "xyes" ; then
637 if test "x$want_ecore_x_composite" != "xno"; then
638 PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite,
639 [ have_ecore_x_xcb_composite="yes"
640 requirements_ecore_x="xcb-composite ${requirements_ecore_x}"
641 AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ],
642 [ have_ecore_x_xcb_composite="no" ])
644 have_ecore_x_xcb_composite="no"
645 AC_MSG_NOTICE("composite extension explicitly disabled")
648 if test "x$want_ecore_x_damage" != "xno"; then
649 PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage,
650 [ have_ecore_x_xcb_damage="yes"
651 requirements_ecore_x="xcb-damage ${requirements_ecore_x}"
652 AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ],
653 [ have_ecore_x_xcb_damage="no" ])
655 have_ecore_x_xcb_damage="no"
656 AC_MSG_NOTICE("damage extension explicitly disabled")
659 if test "x$want_ecore_x_dpms" != "xno"; then
660 PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms,
661 [ have_ecore_x_xcb_dpms="yes"
662 requirements_ecore_x="xcb-dpms ${requirements_ecore_x}"
663 AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ],
664 [ have_ecore_x_xcb_dpms="no" ])
666 have_ecore_x_xcb_dpms="no"
667 AC_MSG_NOTICE("dpms extension explicitly disabled")
670 if test "x$want_ecore_x_randr" != "xno"; then
671 PKG_CHECK_MODULES(XCB_RANDR, xcb-randr,
672 [ have_ecore_x_xcb_randr="yes"
673 requirements_ecore_x="xcb-randr ${requirements_ecore_x}"
674 AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ],
675 [ have_ecore_x_xcb_randr="no" ])
677 have_ecore_x_xcb_randr="no"
678 AC_MSG_NOTICE("randr extension explicitly disabled")
681 if test "x$want_ecore_x_render" != "xno"; then
682 PKG_CHECK_MODULES(XCB_RENDER, xcb-render,
683 [ have_ecore_x_xcb_render="yes"
684 requirements_ecore_x="xcb-render ${requirements_ecore_x}"
685 AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ],
686 [ have_ecore_x_xcb_render="no" ])
688 have_ecore_x_xcb_render="no"
689 AC_MSG_NOTICE("render extension explicitly disabled")
692 if test "x$want_ecore_x_screensaver" != "xno"; then
693 PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver,
694 [ have_ecore_x_xcb_screensaver="yes"
695 requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}"
696 AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ],
697 [ have_ecore_x_xcb_screensaver="no" ])
699 have_ecore_x_xcb_screensaver="no"
700 AC_MSG_NOTICE("screensaver extension explicitly disabled")
703 if test "x$want_ecore_x_shape" != "xno"; then
704 PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape,
705 [ have_ecore_x_xcb_shape="yes"
706 requirements_ecore_x="xcb-shape ${requirements_ecore_x}"
707 AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ],
708 [ have_ecore_x_xcb_shape="no" ])
710 have_ecore_x_xcb_shape="no"
711 AC_MSG_NOTICE("shape extension explicitly disabled")
714 if test "x$want_ecore_x_sync" != "xno"; then
715 PKG_CHECK_MODULES(XCB_SYNC, xcb-sync,
716 [ have_ecore_x_xcb_sync="yes"
717 requirements_ecore_x="xcb-sync ${requirements_ecore_x}"
718 AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ],
719 [ have_ecore_x_xcb_sync="no" ])
721 have_ecore_x_xcb_sync="no"
722 AC_MSG_NOTICE("sync extension explicitly disabled")
725 if test "x$want_ecore_x_xfixes" != "xno"; then
726 PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes,
727 [ have_ecore_x_xcb_xfixes="yes"
728 requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}"
729 AC_DEFINE(ECORE_XCB_FIXES, 1, [Build support for XCB xfixes]) ],
730 [ have_ecore_x_xcb_xfixes="no" ])
732 have_ecore_x_xcb_xfixes="no"
733 AC_MSG_NOTICE("xfixes extension explicitly disabled")
736 if test "x$want_ecore_x_xinerama" != "xno"; then
737 PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama,
738 [ have_ecore_x_xcb_xinerama="yes"
739 requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}"
740 AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ],
741 [ have_ecore_x_xcb_xinerama="no" ])
743 have_ecore_x_xcb_xinerama="no"
744 AC_MSG_NOTICE("xinerama extension explicitly disabled")
747 if test "x$want_ecore_x_xprint" != "xno"; then
748 PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint,
749 [ have_ecore_x_xcb_xprint="yes"
750 requirements_ecore_x="xcb-xprint ${requirements_ecore_x}"
751 AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ],
752 [ have_ecore_x_xcb_xprint="no" ])
754 have_ecore_x_xcb_xprint="no"
755 AC_MSG_NOTICE("xprint extension explicitly disabled")
758 if test "x$want_ecore_x_xtest" != "xno"; then
759 PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest,
760 [ have_ecore_x_xcb_xtest="yes"
761 requirements_ecore_x="xcb-xtest ${requirements_ecore_x}"
762 AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ],
763 [ have_ecore_x_xcb_xtest="no" ])
765 have_ecore_x_xcb_xtest="no"
766 AC_MSG_NOTICE("xtest extension explicitly disabled")
769 AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.])
775 have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
776 AC_SUBST(have_ecore_x_xcb_define)
780 if ! test "x$have_ecore_x_xcb" = "xyes" ; then
782 AC_CHECK_HEADER(X11/X.h,
784 if test "x$want_evas_simple_x11" = "xyes"; then
785 x_libs="${x_libs} -lX11 -lXext"
787 x_dir=${x_dir:-/usr/X11R6}
788 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
789 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
791 have_ecore_x_xlib="yes"
795 if test "x$have_ecore_x_xlib" = "xyes"; then
800 CFLAGS="$x_cflags $x_includes"
802 if test "x$want_ecore_x_cursor" = "xyes"; then
803 AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
805 AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
807 AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
809 Xcursor_libs="-lXcursor"
824 #include <X11/Xlib.h>
832 AC_MSG_NOTICE("Xcursor explicitly disabled")
835 AC_SUBST(Xcursor_cflags)
836 AC_SUBST(Xcursor_libs)
838 ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat], [$want_ecore_x_xkb])
839 ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension], [$want_ecore_x_composite])
840 ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract], [$want_ecore_x_damage])
841 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension], [$want_ecore_x_dpms])
842 if test "x$use_xdpms" = "xno" ; then
843 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension], [$want_ecore_x_dpms])
845 ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion], [$want_ecore_x_xfixes])
846 ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens], [$want_ecore_x_xinerama])
847 ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens], [$want_ecore_x_xprint])
848 ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent], [$want_ecore_x_randr])
849 ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat], [$want_ecore_x_render])
850 ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent], [$want_ecore_x_xtest])
851 ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput], [$want_ecore_x_screensaver])
852 ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice], [$want_ecore_x_input])
854 ecore_x_libs_private="${Xcursor_libs} ${XKB_LIBS} ${XCOMPOSITE_LIBS} ${XDAMAGE_LIBS} ${XDPMS_LIBS} ${XFIXES_LIBS} ${XINERAMA_LIBS} ${XPRINT_LIBS} ${XRANDR_LIBS} ${XRENDER_LIBS} ${XTEST_LIBS} ${XSS_LIBS} ${XI2_LIBS}"
856 AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.])
859 have_ecore_x_xlib="yes"
866 AC_SUBST(ecore_x_libs_private)
868 AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes)
869 AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes)
872 # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas)
874 PKG_CHECK_MODULES([EVAS], [evas >= 1.0.0],
879 ### Checks for header files
889 AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.])
890 AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.])
891 AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.])
895 AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h])
901 AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h sys/socket.h sys/un.h ws2tcpip.h netdb.h])
903 if test "x${ac_cv_header_netdb_h}" = "xyes" ; then
907 # Framebuffer (ecore_fb)
909 AC_CHECK_HEADER([linux/fb.h],
910 [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])])
912 # Cocoa header files (ecore_cocoa)
916 m4_ifdef([AC_PROG_OBJC], [
917 if test "x${have_gnu_objc}" = "xyes" ; then
918 AC_LANG_PUSH([Objective C])
919 AC_CHECK_HEADER([Cocoa/Cocoa.h],
922 cocoa_ldflags="-framework Cocoa"
924 AC_LANG_POP([Objective C])
927 AC_SUBST(cocoa_ldflags)
931 AC_HELP_STRING([--enable-epoll], [enable or disable epoll support]),
932 [want_epoll=$enableval])
934 if test "x${want_epoll}" = "xyes" ; then
935 # check for epoll support
936 AC_CHECK_HEADERS([sys/epoll.h])
944 if test "x${_efl_have_posix_threads}" = "xyes" ; then
947 if test "x${_efl_have_win32_threads}" = "xyes" ; then
957 AC_CHECK_SIZEOF(int, 4)
958 AC_CHECK_SIZEOF(long, 4)
961 ### Checks for structures
964 ### Checks for compiler characteristics
975 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
978 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
979 WIN32_CFLAGS="-mwin32"
982 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0501"
985 AC_SUBST(WIN32_CPPFLAGS)
986 AC_SUBST(WIN32_CFLAGS)
989 ### Checks for linker characteristics
991 # use --enable-auto-import on Windows
993 lt_enable_auto_import=""
996 lt_enable_auto_import="-Wl,--enable-auto-import"
999 AC_SUBST(lt_enable_auto_import)
1001 ### Checks for library functions
1004 AC_CHECK_FUNCS(gettimeofday strlcpy)
1006 have_atfile_source=auto
1007 AC_ARG_ENABLE(atfile-source,
1008 AC_HELP_STRING([--disable-atfile-source],
1009 [disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@]),
1010 [have_atfile_source=$enableval], [have_atfile_source=auto])
1012 if test "x$have_atfile_source" != "xno"; then
1013 AC_CHECK_FUNCS(mkdirat,
1015 have_atfile_source=yes
1016 AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists])
1019 if test "x$have_atfile_source" = "xyes"; then
1020 AC_MSG_ERROR([required atfile-source but no mkdirat()])
1022 have_atfile_source=no
1026 ### Checks for optionnal feature
1027 AC_CHECK_FUNC(mallinfo,
1030 AC_DEFINE(HAVE_MALLINFO, 1, [Gather memory statistic])
1040 ECORE_CHECK_MODULE([con], [${want_ecore_con}], [Con], [${have_addrinfo}])
1046 if test "x${have_ecore_con}" = "xyes" ; then
1048 ECORE_CHECK_CURL([${want_curl}],
1051 requirements_ecore_con="libcurl ${requirements_ecore_con}"
1055 ECORE_CHECK_GNUTLS([${want_gnutls}],
1056 [have_gnutls="yes"],
1059 ECORE_CHECK_OPENSSL([${want_openssl}],
1060 [have_openssl="yes"],
1061 [have_openssl="no"])
1063 if test "x${have_gnutls}" = "xyes" ; then
1064 requirements_ecore_con="gnutls ${requirements_ecore_con}"
1065 # no need to add it to req_ecore_ipc, since they
1066 # depends on ecore_con anyway.
1068 if test "x${have_openssl}" = "xyes" ; then
1069 requirements_ecore_con="openssl ${requirements_ecore_con}"
1070 # no need to add it to req_ecore_ipc, since they
1071 # depends on ecore_con anyway.
1075 ECORE_CHECK_CARES([${want_cares}],
1078 requirements_ecore_con="libcares ${requirements_ecore_con}"
1084 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
1087 ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}],
1088 [requirements_ecore_ipc="ecore-con >= 1.0.0 ${requirements_ecore_ipc}"])
1091 ECORE_CHECK_MODULE([file], [${want_ecore_file}], [File])
1095 have_notify_win32="no"
1096 if test "x${have_ecore_file}" = "xyes" ; then
1097 ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"])
1098 ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"])
1099 ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"])
1101 if test "x${have_ecore_con}" = "xyes" ; then
1102 requirements_ecore_file="ecore-con >= 1.0.0 ${requirements_ecore_file}"
1107 #ecore_config_deps="no"
1108 #if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then
1109 # ecore_config_deps="yes"
1112 #ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}],
1113 # [requirements_ecore_config="ecore-ipc >= 1.0.0 evas >= 1.0.0 eet >= 1.4.0 ${requirements_ecore_config}"])
1115 AM_CONDITIONAL(BUILD_ECORE_CONFIG, false)
1119 ECORE_CHECK_MODULE([imf], [${want_ecore_imf}], [Imf])
1123 ecore_imf_evas_deps="no"
1124 if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then
1125 ecore_imf_evas_deps="yes"
1128 ECORE_CHECK_MODULE([imf-evas], [${want_ecore_imf}], [Imf_Evas], [${ecore_imf_evas_deps}],
1129 [requirements_ecore_imf_evas="ecore-imf >= 1.0.0 evas >= 1.0.0 ${requirements_ecore_imf_evas}"])
1131 # ecore_input{_evas}
1132 ECORE_CHECK_MODULE([input], [${want_ecore_input}], [Input])
1133 ECORE_CHECK_MODULE([input-evas], [${want_ecore_input}], [Input_Evas], [${have_evas}],
1134 [requirements_ecore_input_evas="ecore-input >= 1.0.0 evas >= 1.0.0 ${requirements_ecore_input}"])
1141 if test "x${have_x}" = "xyes" -a \
1142 "x${have_ecore_input}" = "xyes" ; then
1146 ECORE_CHECK_MODULE([x], [${want_ecore_x}], [X], [${ecore_x_deps}],
1148 ecore_x_libs="$ecore_x_libs $x_libs"
1149 requirements_ecore_x="ecore-input >= 1.0.0 ${requirements_ecore_x}"
1154 ECORE_CHECK_MODULE([win32], [${want_ecore_win32}], [Win32], [${have_ecore_input}],
1156 ecore_win32_libs="-lole32 -lgdi32"
1157 requirements_ecore_win32="ecore-input >= 1.0.0 ${requirements_ecore_win32}"
1159 AC_SUBST(ecore_win32_libs)
1163 ecore_cocoa_deps="no"
1164 if test "x${have_ecore_input}" = "xyes" -a "x${have_cocoa}" = "xyes" ; then
1165 ecore_cocoa_deps="yes"
1168 ECORE_CHECK_MODULE([cocoa], [${want_ecore_cocoa}], [Cocoa], [${ecore_cocoa_deps}],
1169 [requirements_ecore_cocoa="ecore-input >= 1.0.0 ${requirements_ecore_cocoa}"])
1174 if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then
1175 ecore_sdl_deps="yes"
1178 ECORE_CHECK_MODULE([sdl], [${want_ecore_sdl}], [Sdl], [${ecore_sdl_deps}],
1179 [requirements_ecore_sdl="ecore-input >= 1.0.0 ${requirements_ecore_sdl}"])
1182 ECORE_CHECK_MODULE([fb], [${want_ecore_fb}], [FB], [$have_fb])
1184 if test "x${have_ecore_fb}" = "xyes" ; then
1185 ECORE_CHECK_TSLIB([${want_tslib}],
1188 requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}"
1195 ECORE_CHECK_MODULE([directfb], [${want_ecore_directfb}], [DirectFB], [${have_directfb}],
1196 [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"])
1200 ECORE_CHECK_MODULE([wince], [${want_ecore_wince}], [WinCE], [${have_ecore_input}],
1201 [requirements_ecore_win32="ecore-input >= 1.0.0 ${requirements_ecore_win32}"])
1207 ecore_evas_deps="no"
1208 if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then
1209 ecore_evas_deps="yes"
1212 ECORE_CHECK_MODULE([evas], [${want_ecore_evas}], [Evas], [${ecore_evas_deps}],
1213 [requirements_ecore_evas="ecore-input >= 1.0.0 ecore-input-evas >= 1.0.0 evas >= 1.0.0 ${requirements_ecore_evas}"])
1217 ECORE_EVAS_CHECK_MODULE([software-buffer],
1218 [${want_ecore_evas_software_buffer}],
1224 # ecore_evas_software_x11
1226 ECORE_EVAS_CHECK_MODULE([software-x11],
1227 [${want_ecore_evas_software_x11}],
1231 have_ecore_evas_software_xlib=no"
1232 have_ecore_evas_software_xcb=no"
1233 if test "x$have_ecore_evas_software_x11" = "xyes" ; then
1234 have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11`
1235 if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then
1236 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support])
1238 have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11`
1239 if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
1240 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support])
1244 # ecore_evas_xrender_x11
1246 ECORE_EVAS_CHECK_MODULE([xrender-x11],
1247 [${want_ecore_evas_xrender_x11}],
1249 [${have_ecore_x_xlib}])
1251 # ecore_evas_opengl_x11
1253 ECORE_EVAS_CHECK_MODULE([opengl-x11],
1254 [${want_ecore_evas_opengl_x11}],
1256 [${have_ecore_x_xlib}])
1258 # ecore_evas_software_x11 16 bits
1260 ECORE_EVAS_CHECK_MODULE([software-16-x11],
1261 [${want_ecore_evas_software_16_x11}],
1262 [Software Xlib 16 bits],
1263 [${have_ecore_x_xlib}])
1265 ECORE_EVAS_CHECK_MODULE([software-8-x11],
1266 [$want_ecore_evas_software_8_x11],
1267 [Software 8bit X11],
1271 # ecore_evas_xrender_xcb
1273 ECORE_EVAS_CHECK_MODULE([xrender-xcb],
1274 [${want_ecore_evas_xrender_xcb}],
1276 [${ecore_evas_xcb_deps}])
1278 if test "x$have_ecore_evas_software_x11" = "xyes" -o \
1279 "x$have_ecore_evas_xrender_x11" = "xyes" -o \
1280 "x$have_ecore_evas_opengl_x11" = "xyes" -o \
1281 "x$have_ecore_evas_software_8_x11" = "xyes" -o \
1282 "x$have_ecore_evas_software_16_x11" = "xyes" -o \
1283 "x$have_ecore_evas_software_xcb" = "xyes" -o \
1284 "x$have_ecore_evas_xrender_xcb" = "xyes"; then
1285 AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas])
1286 requirements_ecore_evas="ecore-x >= 1.0.0 ${requirements_ecore_evas}"
1291 ECORE_EVAS_CHECK_MODULE([software-gdi],
1292 [${want_ecore_evas_software_gdi}],
1294 [${have_ecore_win32}])
1296 ECORE_EVAS_CHECK_MODULE([software-ddraw],
1297 [${want_ecore_evas_software_ddraw}],
1298 [Software DirectDraw],
1299 [${have_ecore_win32}])
1301 ECORE_EVAS_CHECK_MODULE([direct3d],
1302 [${want_ecore_evas_direct3d}],
1304 [${have_ecore_win32}])
1306 ECORE_EVAS_CHECK_MODULE([opengl-glew],
1307 [${want_ecore_evas_opengl_glew}],
1309 [${have_ecore_win32}])
1311 ECORE_EVAS_CHECK_MODULE([software-16-ddraw],
1312 [${want_ecore_evas_software_16_ddraw}],
1313 [16 bpp Software DirectDraw],
1314 [${have_ecore_win32}])
1316 if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \
1317 "x${have_ecore_evas_software_ddraw}" = "xyes" -o \
1318 "x${have_ecore_evas_direct3d}" = "xyes" -o \
1319 "x${have_ecore_evas_opengl_glew}" = "xyes" -o \
1320 "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then
1321 AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
1322 requirements_ecore_evas="ecore-win32 >= 1.0.0 ${requirements_ecore_evas}"
1327 ECORE_EVAS_CHECK_MODULE([cocoa],
1328 [${want_ecore_evas_cocoa}],
1330 [${have_ecore_cocoa}],
1331 [requirements_ecore_evas="ecore-cocoa >= 1.0.0 ${requirements_ecore_evas}"])
1333 # ecore_evas_software_sdl
1335 ECORE_EVAS_CHECK_MODULE([software-sdl],
1336 [${want_ecore_evas_software_sdl}],
1338 [${have_ecore_sdl}],
1339 [requirements_ecore_evas="ecore-sdl >= 1.0.0 ${requirements_ecore_evas}"])
1343 ECORE_EVAS_CHECK_MODULE([opengl-sdl],
1344 [${want_ecore_evas_gl_sdl}],
1346 [${have_ecore_sdl}],
1347 [requirements_ecore_evas="ecore-sdl >= 1.0.0 ${requirements_ecore_evas}"])
1349 # ecore_evas_directfb
1351 ECORE_EVAS_CHECK_MODULE([directfb],
1352 [${want_ecore_evas_directfb}],
1354 [${have_ecore_directfb}],
1355 [requirements_ecore_evas="ecore-directfb >= 1.0.0 ${requirements_ecore_evas}"])
1359 ECORE_EVAS_CHECK_MODULE([fb],
1360 [${want_ecore_evas_fb}],
1361 [Linux Framebuffer],
1363 [requirements_ecore_evas="ecore-fb >= 1.0.0 ${requirements_ecore_evas}"])
1367 ECORE_EVAS_CHECK_MODULE([software-16-wince],
1368 [${want_ecore_evas_software_16_wince}],
1369 [16 bpp Software Windows CE],
1370 [${have_ecore_wince}],
1371 [requirements_ecore_evas="ecore-wince >= 1.0.0 ${requirements_ecore_evas}"])
1375 AC_SUBST(requirements_ecore)
1376 AC_SUBST(requirements_ecore_con)
1377 #AC_SUBST(requirements_ecore_config)
1378 AC_SUBST(requirements_ecore_directfb)
1379 AC_SUBST(requirements_ecore_evas)
1380 AC_SUBST(requirements_ecore_fb)
1381 AC_SUBST(requirements_ecore_file)
1382 AC_SUBST(requirements_ecore_imf)
1383 AC_SUBST(requirements_ecore_imf_evas)
1384 AC_SUBST(requirements_ecore_input)
1385 AC_SUBST(requirements_ecore_input_evas)
1386 AC_SUBST(requirements_ecore_ipc)
1387 AC_SUBST(requirements_ecore_cocoa)
1388 AC_SUBST(requirements_ecore_sdl)
1389 AC_SUBST(requirements_ecore_x)
1390 AC_SUBST(requirements_ecore_win32)
1391 AC_SUBST(requirements_ecore_wince)
1417 src/lib/ecore/Makefile
1418 src/lib/ecore_con/Makefile
1419 src/lib/ecore_config/Makefile
1420 src/lib/ecore_directfb/Makefile
1421 src/lib/ecore_evas/Makefile
1422 src/lib/ecore_fb/Makefile
1423 src/lib/ecore_file/Makefile
1424 src/lib/ecore_cocoa/Makefile
1425 src/lib/ecore_sdl/Makefile
1426 src/lib/ecore_imf/Makefile
1427 src/lib/ecore_imf_evas/Makefile
1428 src/lib/ecore_input/Makefile
1429 src/lib/ecore_input_evas/Makefile
1430 src/lib/ecore_ipc/Makefile
1431 src/lib/ecore_win32/Makefile
1432 src/lib/ecore_wince/Makefile
1433 src/lib/ecore_x/Makefile
1434 src/lib/ecore_x/xlib/Makefile
1435 src/lib/ecore_x/xcb/Makefile
1441 m4_ifdef([AM_GNU_GETTEXT], [AC_CONFIG_FILES([po/Makefile.in])])
1446 echo "$PACKAGE $VERSION"
1448 echo "Optional Modules:"
1452 echo " Ecore........................: always"
1453 echo " Thread support.............: $have_threads"
1454 echo " GLib support...............: $have_glib"
1455 echo " Always integrate GLib......: $want_glib_integration_always"
1456 echo " Use g_main_loop............: $want_g_main_loop"
1457 echo " Gathering memory statistic.: $have_mallinfo"
1458 echo " Ecore_Con....................: $have_ecore_con"
1459 if test "x$have_ecore_con" = "xyes" ; then
1460 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1461 if test "x$have_gnutls" = "xyes" ; then
1466 echo " GnuTLS.....................: $have_gnutls"
1467 echo " CURL.......................: $have_curl"
1468 echo " Abstract Sockets...........: $want_abstract_sockets"
1469 echo " c-ares.....................: $have_cares"
1471 echo " Ecore_Ipc....................: $have_ecore_ipc"
1472 if test "x$have_ecore_ipc" = "xyes" ; then
1473 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1474 if test "x$have_gnutls" = "xyes" ; then
1479 echo " GnuTLS.....................: $have_gnutls"
1481 echo " Ecore_File...................: $have_ecore_file"
1482 if test "x$have_ecore_file" = "xyes" ; then
1483 echo " Inotify....................: $have_inotify"
1484 echo " Windows notification.......: $have_notify_win32"
1485 echo " Poll.......................: $have_poll"
1486 echo " CURL.......................: $have_curl"
1488 #echo " Ecore_Config.................: $have_ecore_config (deprecated)"
1489 echo " Ecore_IMF....................: $have_ecore_imf"
1490 echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas"
1491 echo " Ecore_Input..................: $have_ecore_input"
1492 echo " Ecore_Input_Evas.............: $have_ecore_input_evas"
1495 echo " Graphic systems:"
1498 if test "x$have_ecore_x" = "xyes" ; then
1499 if test "x$have_ecore_x_xcb" = "xyes" ; then
1500 echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb"
1501 echo " Xprint.....................: $have_ecore_x_xcb_xprint"
1502 echo " Xinerama...................: $have_ecore_x_xcb_xinerama"
1503 echo " Xrandr.....................: $have_ecore_x_xcb_randr"
1504 echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver"
1505 echo " Xshape.....................: $have_ecore_x_xcb_shape"
1506 echo " Xsync......................: $have_ecore_x_xcb_sync"
1507 echo " Xrender....................: $have_ecore_x_xcb_render"
1508 echo " Xcomposite.................: $have_ecore_x_xcb_composite"
1509 echo " Xfixes.....................: $have_ecore_x_xcb_xfixes"
1510 echo " Xdamage....................: $have_ecore_x_xcb_damage"
1511 echo " Xdpms......................: $have_ecore_x_xcb_dpms"
1512 echo " Xtest......................: $have_ecore_x_xcb_xtest"
1514 echo " Ecore_X (Xlib backend).......: $have_ecore_x"
1515 echo " Xcursor....................: $use_Xcursor"
1516 echo " Xkb........................: $use_xkb"
1517 echo " Xprint.....................: $use_xprint"
1518 echo " Xinerama...................: $use_xinerama"
1519 echo " Xrandr.....................: $use_xrandr"
1520 echo " Xscreensaver...............: $use_xss"
1521 echo " Xrender....................: $use_xrender"
1522 echo " Xcomposite.................: $use_xcomposite"
1523 echo " Xfixes.....................: $use_xfixes"
1524 echo " Xdamage....................: $use_xdamage"
1525 echo " Xdpms......................: $use_xdpms"
1526 echo " Xtest......................: $use_xtest"
1527 echo " XIM........................: $want_xim"
1528 echo " Xi2........................: $use_xi2"
1531 echo " Ecore_X......................: $have_ecore_x"
1533 echo " Ecore_Win32..................: $have_ecore_win32"
1534 echo " Ecore_Cocoa..................: $have_ecore_cocoa"
1535 echo " Ecore_SDL....................: $have_ecore_sdl"
1536 echo " Ecore_FB.....................: $have_ecore_fb"
1537 if test "x${have_ecore_fb}" = "xyes" ; then
1538 echo " Touchscreen................: $have_tslib"
1540 echo " Ecore_DirectFB...............: $have_ecore_directfb"
1541 echo " Ecore_WinCE..................: $have_ecore_wince"
1547 echo " Ecore_Evas...................: $have_ecore_evas"
1548 if test "x${have_ecore_evas}" = "xyes" ; then
1549 echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer"
1550 if test "x${have_ecore_evas_software_x11}" = "xyes" ; then
1551 echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})"
1553 echo " Software X11...............: $have_ecore_evas_software_x11"
1555 echo " XRender X11................: $have_ecore_evas_xrender_x11"
1556 echo " OpenGL X11.................: $have_ecore_evas_opengl_x11"
1557 echo " XRender XCB................: $have_ecore_evas_xrender_xcb"
1558 echo " Software GDI...............: $have_ecore_evas_software_gdi"
1559 echo " Software DirectDraw........: $have_ecore_evas_software_ddraw"
1560 echo " Direct3D...................: $have_ecore_evas_direct3d"
1561 echo " OpenGL Glew................: $have_ecore_evas_opengl_glew"
1562 echo " Cocoa......................: $have_ecore_evas_cocoa"
1563 echo " Software SDL...............: $have_ecore_evas_software_sdl"
1564 echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl"
1565 echo " DirectFB...................: $have_ecore_evas_directfb"
1566 echo " Software Framebuffer.......: $have_ecore_evas_fb"
1567 echo " Software 8bit grayscale XCB: $have_ecore_evas_software_8_x11"
1568 echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11"
1569 echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw"
1570 echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince"
1573 echo " Tests................: ${enable_tests}"
1574 echo " Maximum log level....: ${with_max_log_level}"
1575 echo "Documentation..........: ${build_doc}"
1577 echo "Compilation............: make (or gmake)"
1578 echo " CPPFLAGS.............: $CPPFLAGS"
1579 echo " CFLAGS...............: $CFLAGS"
1580 echo " CXXFLAGS.............: $CXXFLAGS"
1581 echo " LDFLAGS..............: $LDFLAGS"
1583 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
1584 echo " prefix...............: $prefix"