1 # get rid of that stupid cache mechanism
4 AC_INIT([ecore], [0.9.9.063], [enlightenment-devel@lists.sourceforge.net])
5 release="ver-pre-svn-05"
7 AC_CONFIG_SRCDIR([configure.ac])
8 AC_CONFIG_MACRO_DIR([m4])
13 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
14 AM_CONFIG_HEADER([config.h])
15 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
20 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
23 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
24 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
25 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
26 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
27 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
28 AC_SUBST(version_info)
30 AM_GNU_GETTEXT_VERSION([0.12.1])
31 AM_GNU_GETTEXT([external])
39 ecore_config_release_info="-release $release"
40 ecore_con_release_info="-release $release"
41 ecore_directfb_release_info="-release $release"
42 ecore_evas_release_info="-release $release"
43 ecore_fb_release_info="-release $release"
44 ecore_file_release_info="-release $release"
45 ecore_imf_evas_release_info="-release $release"
46 ecore_imf_release_info="-release $release"
47 ecore_input_release_info="-release $release"
48 ecore_input_evas_release_info="-release $release"
49 ecore_ipc_release_info="-release $release"
50 ecore_quartz_release_info="-release $release"
51 ecore_release_info="-release $release"
52 ecore_sdl_release_info="-release $release"
53 ecore_txt_release_info="-release $release"
54 ecore_win32_release_info="-release $release"
55 ecore_x_release_info="-release $release"
58 AC_SUBST(ecore_config_release_info)
59 AC_SUBST(ecore_con_release_info)
60 AC_SUBST(ecore_directfb_release_info)
61 AC_SUBST(ecore_evas_release_info)
62 AC_SUBST(ecore_fb_release_info)
63 AC_SUBST(ecore_file_release_info)
64 AC_SUBST(ecore_imf_evas_release_info)
65 AC_SUBST(ecore_imf_release_info)
66 AC_SUBST(ecore_input_release_info)
67 AC_SUBST(ecore_input_evas_release_info)
68 AC_SUBST(ecore_ipc_release_info)
69 AC_SUBST(ecore_quartz_release_info)
70 AC_SUBST(ecore_release_info)
71 AC_SUBST(ecore_sdl_release_info)
72 AC_SUBST(ecore_txt_release_info)
73 AC_SUBST(ecore_win32_release_info)
74 AC_SUBST(ecore_wince_release_info)
75 AC_SUBST(ecore_x_release_info)
77 AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for shared objects])
80 ### Default options with respect to host
82 # dependencies and options
84 want_abstract_sockets="no"
92 want_notify_win32="no"
100 want_ecore_file="yes"
101 want_ecore_config="no"
103 want_ecore_input="yes"
105 # graphic system modules
106 want_evas_simple_x11="no"
107 want_ecore_x_xcb="no"
109 want_ecore_win32="no"
110 want_ecore_quartz="no"
113 want_ecore_directfb="no"
114 want_ecore_wince="no"
117 want_ecore_evas="yes"
118 want_ecore_evas_software_buffer="yes"
119 want_ecore_evas_software_x11="no"
120 want_ecore_evas_xrender_x11="no"
121 want_ecore_evas_opengl_x11="no"
122 want_ecore_evas_software_16_x11="no"
123 want_ecore_evas_software_xcb="no"
124 want_ecore_evas_xrender_xcb="no"
125 want_ecore_evas_software_gdi="no"
126 want_ecore_evas_software_ddraw="no"
127 want_ecore_evas_direct3d="no"
128 want_ecore_evas_opengl_glew="no"
129 want_ecore_evas_software_16_ddraw="no"
130 want_ecore_evas_quartz="no"
131 want_ecore_evas_software_sdl="no"
132 want_ecore_evas_directfb="no"
133 want_ecore_evas_fb="no"
134 want_ecore_evas_software_16_wince="no"
138 want_ecore_wince="yes"
139 want_ecore_evas_software_16_wince="yes"
142 want_notify_win32="yes"
146 want_ecore_win32="yes"
147 want_ecore_evas_software_gdi="yes"
148 want_ecore_evas_software_ddraw="yes"
149 want_ecore_evas_direct3d="yes"
150 want_ecore_evas_opengl_glew="yes"
151 want_ecore_evas_software_16_ddraw="auto"
152 want_ecore_evas_software_sdl="yes"
161 want_ecore_config="yes"
163 want_ecore_quartz="yes"
164 want_ecore_evas_quartz="yes"
165 want_ecore_evas_software_sdl="yes"
170 want_abstract_sockets="yes"
179 want_ecore_config="yes"
182 want_ecore_evas_software_x11="yes"
183 want_ecore_evas_xrender_x11="yes"
184 want_ecore_evas_opengl_x11="yes"
185 want_ecore_evas_software_16_x11="yes"
186 want_ecore_evas_software_xcb="yes"
187 want_ecore_evas_xrender_xcb="yes"
188 want_ecore_evas_software_sdl="yes"
189 want_ecore_evas_directfb="yes"
190 want_ecore_evas_fb="yes"
194 requirements_ecore=""
195 requirements_ecore_con=""
196 requirements_ecore_config=""
197 requirements_ecore_directfb=""
198 requirements_ecore_evas=""
199 requirements_ecore_fb=""
200 requirements_ecore_file=""
201 requirements_ecore_imf=""
202 requirements_ecore_imf_evas=""
203 requirements_ecore_input=""
204 requirements_ecore_input_evas=""
205 requirements_ecore_ipc=""
206 requirements_ecore_quartz=""
207 requirements_ecore_sdl=""
208 requirements_ecore_txt=""
209 requirements_ecore_x=""
210 requirements_ecore_win32=""
211 requirements_ecore_wince=""
213 ### Additional options to configure
215 # abstract sockets (ecore_con.c)
216 AC_ARG_ENABLE([abstract-sockets],
217 [AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])],
219 if test "x${enableval}" = "xyes" ; then
220 want_abstract_sockets="yes"
222 want_abstract_sockets="no"
225 [want_abstract_sockets="yes"])
227 if test "x${want_abstract_sockets}" = "xyes" ; then
228 AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace])
231 # Simple X11 build/link
233 AC_ARG_ENABLE(simple-x11,
234 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
235 [want_evas_simple_x11=$enableval])
239 [AC_HELP_STRING([--enable-xim], [enable X Input Method.])],
241 if test "x${enableval}" = "xyes" ; then
249 if test "x${want_xim}" = "xyes" ; then
250 AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
254 ### Checks for programs
256 m4_ifdef([AC_PROG_OBJC],
259 _AM_DEPENDENCIES(OBJC)
262 AC_CHECK_TOOL([OBJC], [gcc])
264 AC_SUBST([OBJCFLAGS])
269 have_gnu_objc=${ac_cv_objc_compiler_gnu}
271 # doxygen program for documentation building
273 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
275 # The first call to PKG_CHECK_MODULES is done conditionally,
276 # so we should include this here:
279 # Check whether pkg-config supports Requires.private
280 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
281 pkgconfig_requires_private="Requires.private"
283 pkgconfig_requires_private="Requires"
285 AC_SUBST(pkgconfig_requires_private)
288 ### Checks for libraries
290 # Evil library for compilation on Windows
294 PKG_CHECK_MODULES([EVIL], [evil])
295 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
296 requirements_ecore="evil ${requirements_ecore}"
297 requirements_ecore_evas="evil ${requirements_ecore_evas}"
298 requirements_ecore_file="evil ${requirements_ecore_file}"
299 requirements_ecore_imf="evil ${requirements_ecore_imf}"
300 requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}"
301 requirements_ecore_txt="evil ${requirements_ecore_txt}"
302 EFL_ECORE_BUILD="-DEFL_ECORE_BUILD"
303 EFL_ECORE_TXT_BUILD="-DEFL_ECORE_TXT_BUILD"
304 EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD"
305 EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD"
306 EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD"
307 EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD"
315 EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD"
316 requirements_ecore_wince="evil ${requirements_ecore_wince}"
320 EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD"
321 EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD"
322 requirements_ecore_win32="evil ${requirements_ecore_win32}"
323 requirements_ecore_sdl="evil ${requirements_ecore_sdl}"
328 AC_SUBST(EFL_ECORE_BUILD)
329 AC_SUBST(EFL_ECORE_TXT_BUILD)
330 AC_SUBST(EFL_ECORE_FILE_BUILD)
331 AC_SUBST(EFL_ECORE_EVAS_BUILD)
332 AC_SUBST(EFL_ECORE_IMF_BUILD)
333 AC_SUBST(EFL_ECORE_INPUT_BUILD)
334 AC_SUBST(EFL_ECORE_WINCE_BUILD)
335 AC_SUBST(EFL_ECORE_WIN32_BUILD)
336 AC_SUBST(EFL_ECORE_SDL_BUILD)
338 AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes")
339 AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes")
348 WIN32_LIBS="-lws2_32"
352 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
356 AC_SUBST(dlopen_libs)
360 PKG_CHECK_MODULES(EINA, [eina-0])
361 #FIXME check all the requirements when the eina move will be finished
362 requirements_ecore="eina-0 ${requirements_ecore}"
363 requirements_ecore_con="ecore eina-0 ${requirements_ecore_con}"
364 requirements_ecore_config="ecore eina-0 ${requirements_ecore_config}"
365 requirements_ecore_directfb="ecore eina-0 ${requirements_ecore_directfb}"
366 requirements_ecore_evas="ecore eina-0 ${requirements_ecore_evas}"
367 requirements_ecore_fb="ecore eina-0 ${requirements_ecore_fb}"
368 requirements_ecore_file="ecore eina-0 ${requirements_ecore_file}"
369 requirements_ecore_imf="ecore eina-0 ${requirements_ecore_imf}"
370 requirements_ecore_imf_evas="ecore eina-0 ${requirements_ecore_imf_evas}"
371 requirements_ecore_input="ecore eina-0 ${requirements_ecore_input}"
372 requirements_ecore_input_evas="ecore eina-0 ${requirements_ecore_input_evas}"
373 requirements_ecore_ipc="ecore eina-0 ${requirements_ecore_ipc}"
374 requirements_ecore_quartz="ecore eina-0 ${requirements_ecore_quartz}"
375 requirements_ecore_sdl="ecore eina-0 ${requirements_ecore_sdl}"
376 requirements_ecore_win32="ecore eina-0 ${requirements_ecore_win32}"
377 requirements_ecore_wince="ecore eina-0 ${requirements_ecore_wince}"
378 requirements_ecore_x="ecore eina-0 ${requirements_ecore_x}"
381 # glib support (main loop integration)
382 AC_ARG_ENABLE([glib],
383 [AC_HELP_STRING([--disable-glib], [enable glib support. @<:@default=detect@:>@])],
384 [want_glib=$enableval], [])
386 if test "x$want_glib" != "xno"; then
387 PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"])
391 if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then
392 AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.])
393 elif test "x$have_glib" = "xyes"; then
394 AC_DEFINE(HAVE_GLIB, [1], [Have GLib])
395 requirements_ecore="glib-2.0 ${requirements_ecore}"
399 # iconv library (ecore_txt)
404 AC_ARG_WITH([iconv-link],
405 AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
411 AC_MSG_CHECKING(for explicit iconv link options)
412 if test "x${iconv_libs}" = "x" ; then
413 AC_MSG_RESULT([no explicit iconv link option])
415 AC_MSG_RESULT([$iconv_libs])
420 if test "x${have_iconv}" = "xno" && test "x${am_cv_func_iconv}" = "xyes" ; then
421 iconv_cflags=${LIBICONV}
422 iconv_libs=${LTLIBICONV}
426 AC_SUBST(iconv_cflags)
430 # SDL library (ecore_sdl)
433 SDL_CONFIG="sdl-config"
434 AC_ARG_WITH([sdl-config],
435 [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
438 AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
441 AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
443 if test -z "$SDL_CONFIG" ; then
444 SDL_CFLAGS=`$SDL_CONFIG --cflags`
445 SDL_LIBS=`$SDL_CONFIG --libs`
450 PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
453 if test "x${have_sdl}" = "xyes" ; then
454 PKG_CHECK_EXISTS([sdl >= 1.3.0],
455 [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
459 # DirectFB library (ecore_directfb)
461 PKG_CHECK_MODULES([DIRECTFB],
462 [directfb >= 0.9.16],
463 [have_directfb="yes"],
464 [have_directfb="no"])
467 # Eet library (ecore_config)
469 PKG_CHECK_MODULES([EET],
475 # Xlib and XCB (ecore_x)
479 have_ecore_x_xlib="no"
480 have_ecore_x_xcb="no"
487 ecore_x_libs_private=""
489 AC_ARG_ENABLE(ecore-x-xcb,
490 [AC_HELP_STRING([--enable-ecore-x-xcb],
491 [enable the ecore_x module with XCB backend. [[default=disabled]]])],
492 [want_ecore_x_xcb=$enableval],
493 [want_ecore_x_xcb="no"])
495 AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
496 AC_MSG_RESULT($want_ecore_x_xcb)
498 if test "x$want_ecore_x_xcb" = "xyes" ; then
499 PKG_CHECK_MODULES(XCB, xcb xcb-icccm xcb-image xcb-keysyms pixman-1,
500 [ have_ecore_x_xcb="yes"
501 requirements_ecore_x="xcb xcb-icccm xcb-image xcb-keysyms pixman-1 ${requirements_ecore_x}" ],
502 [ have_ecore_x_xcb="no" ])
504 if test "x$have_ecore_x_xcb" = "xyes" ; then
505 PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite,
506 [ have_ecore_x_xcb_composite="yes"
507 requirements_ecore_x="xcb-composite ${requirements_ecore_x}"
508 AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ],
509 [ have_ecore_x_xcb_composite="no" ])
511 PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage,
512 [ have_ecore_x_xcb_damage="yes"
513 requirements_ecore_x="xcb-damage ${requirements_ecore_x}"
514 AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ],
515 [ have_ecore_x_xcb_damage="no" ])
517 PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms,
518 [ have_ecore_x_xcb_dpms="yes"
519 requirements_ecore_x="xcb-dpms ${requirements_ecore_x}"
520 AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ],
521 [ have_ecore_x_xcb_dpms="no" ])
523 PKG_CHECK_MODULES(XCB_RANDR, xcb-randr,
524 [ have_ecore_x_xcb_randr="yes"
525 requirements_ecore_x="xcb-randr ${requirements_ecore_x}"
526 AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ],
527 [ have_ecore_x_xcb_randr="no" ])
529 PKG_CHECK_MODULES(XCB_RENDER, xcb-render,
530 [ have_ecore_x_xcb_render="yes"
531 requirements_ecore_x="xcb-render ${requirements_ecore_x}"
532 AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ],
533 [ have_ecore_x_xcb_render="no" ])
535 PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver,
536 [ have_ecore_x_xcb_screensaver="yes"
537 requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}"
538 AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ],
539 [ have_ecore_x_xcb_screensaver="no" ])
541 PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape,
542 [ have_ecore_x_xcb_shape="yes"
543 requirements_ecore_x="xcb-shape ${requirements_ecore_x}"
544 AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ],
545 [ have_ecore_x_xcb_shape="no" ])
547 PKG_CHECK_MODULES(XCB_SYNC, xcb-sync,
548 [ have_ecore_x_xcb_sync="yes"
549 requirements_ecore_x="xcb-sync ${requirements_ecore_x}"
550 AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ],
551 [ have_ecore_x_xcb_sync="no" ])
553 PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes,
554 [ have_ecore_x_xcb_xfixes="yes"
555 requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}"
556 AC_DEFINE(ECORE_XCB_FIXES, 1, [Build support for XCB xfixes]) ],
557 [ have_ecore_x_xcb_xfixes="no" ])
559 PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama,
560 [ have_ecore_x_xcb_xinerama="yes"
561 requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}"
562 AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ],
563 [ have_ecore_x_xcb_xinerama="no" ])
565 PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint,
566 [ have_ecore_x_xcb_xprint="yes"
567 requirements_ecore_x="xcb-xprint ${requirements_ecore_x}"
568 AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ],
569 [ have_ecore_x_xcb_xprint="no" ])
571 PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest,
572 [ have_ecore_x_xcb_xtest="yes"
573 requirements_ecore_x="xcb-xtest ${requirements_ecore_x}"
574 AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ],
575 [ have_ecore_x_xcb_xtest="no" ])
577 AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.])
583 have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
584 AC_SUBST(have_ecore_x_xcb_define)
588 if ! test "x$have_ecore_x_xcb" = "xyes" ; then
590 AC_CHECK_HEADER(X11/X.h,
592 if test "x$want_evas_simple_x11" = "xyes"; then
593 x_libs="${x_libs} -lX11 -lXext"
595 x_dir=${x_dir:-/usr/X11R6}
596 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
597 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
599 have_ecore_x_xlib="yes"
603 if test "x$have_ecore_x_xlib" = "xyes"; then
608 CFLAGS="$x_cflags $x_includes"
609 AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
611 AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
613 AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
615 Xcursor_libs="-lXcursor"
630 #include <X11/Xlib.h>
635 AC_SUBST(Xcursor_cflags)
636 AC_SUBST(Xcursor_libs)
638 ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat])
639 ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension])
640 ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract])
641 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension])
642 if test "x$use_xdpms" = "xno" ; then
643 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension])
645 ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion])
646 ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens])
647 ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens])
648 ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent])
649 ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat])
650 ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent])
651 ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput])
652 ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice])
654 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}"
656 AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.])
659 have_ecore_x_xlib="yes"
666 AC_SUBST(ecore_x_libs_private)
668 AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes)
669 AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes)
672 # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas)
674 PKG_CHECK_MODULES([EVAS], [evas >= 0.9.9],
679 ### Checks for header files
685 AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.])
686 AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.])
687 AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.])
690 AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h netdb.h netinet/in.h sys/time.h sys/mman.h signal.h sys/resource.h])
694 # Framebuffer (ecore_fb)
696 AC_CHECK_HEADER([linux/fb.h],
697 [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])])
699 # Quartz header files (ecore_quartz)
704 if test "x${have_gnu_objc}" = "xyes" ; then
705 AC_LANG_PUSH([Objective C])
706 AC_CHECK_HEADER([Cocoa/Cocoa.h],
709 quartz_ldflags="-framework Cocoa"
712 AC_LANG_POP([Objective C])
715 AC_SUBST(quartz_ldflags)
717 # basic pthread support
719 EFL_CHECK_PTHREAD([have_pthread="yes"], [have_pthread="no"])
722 AC_CHECK_SIZEOF(int, 4)
723 AC_CHECK_SIZEOF(long, 4)
726 ### Checks for structures
729 ### Checks for compiler characteristics
740 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
743 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
744 WIN32_CFLAGS="-mwin32"
747 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500"
750 AC_SUBST(WIN32_CPPFLAGS)
751 AC_SUBST(WIN32_CFLAGS)
754 ### Checks for linker characteristics
756 # use --enable-auto-import on Windows
758 lt_enable_auto_import=""
761 lt_enable_auto_import="-Wl,--enable-auto-import"
764 AC_SUBST(lt_enable_auto_import)
766 ### Checks for library functions
768 AC_CHECK_FUNCS(gettimeofday strlcpy)
770 have_atfile_source=auto
771 AC_ARG_ENABLE(atfile-source,
772 AC_HELP_STRING([--disable-atfile-source],
773 [disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@]),
774 [have_atfile_source=$enableval], [have_atfile_source=auto])
776 if test "x$have_atfile_source" != "xno"; then
777 AC_CHECK_FUNCS(mkdirat,
779 have_atfile_source=yes
780 AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists])
783 if test "x$have_atfile_source" = "xyes"; then
784 AC_MSG_ERROR([required atfile-source but no mkdirat()])
786 have_atfile_source=no
795 ECORE_CHECK_MODULE([Txt], [${want_ecore_txt}], [$have_iconv])
798 ECORE_CHECK_MODULE([Con], [${want_ecore_con}])
804 if test "x${have_ecore_con}" = "xyes" ; then
806 ECORE_CHECK_CURL([${want_curl}],
809 requirements_ecore_con="libcurl ${requirements_ecore_con}"
813 ECORE_CHECK_GNUTLS([${want_gnutls}],
817 ECORE_CHECK_OPENSSL([${want_openssl}],
818 [have_openssl="yes"],
821 if test "x${have_gnutls}" = "xyes" ; then
822 requirements_ecore_con="gnutls ${requirements_ecore_con}"
823 # no need to add it to req_ecore_ipc, since they
824 # depends on ecore_con anyway.
826 if test "x${have_openssl}" = "xyes" ; then
827 requirements_ecore_con="openssl ${requirements_ecore_con}"
828 # no need to add it to req_ecore_ipc, since they
829 # depends on ecore_con anyway.
833 ECORE_CHECK_CARES([${want_cares}],
836 requirements_ecore_con="libcares ${requirements_ecore_con}"
842 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
845 ECORE_CHECK_MODULE([Ipc], [${want_ecore_ipc}], [${have_ecore_con}],
846 [requirements_ecore_ipc="ecore-con ${requirements_ecore_ipc}"])
849 ECORE_CHECK_MODULE([File], [${want_ecore_file}])
853 have_notify_win32="no"
854 if test "x${have_ecore_file}" = "xyes" ; then
855 ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"])
856 ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"])
857 ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"])
859 if test "x${have_ecore_con}" = "xyes" ; then
860 requirements_ecore_file="ecore-con ${requirements_ecore_file}"
865 ecore_config_deps="no"
866 if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then
867 ecore_config_deps="yes"
870 ECORE_CHECK_MODULE([Config], [${want_ecore_config}], [${ecore_config_deps}],
871 [requirements_ecore_config="ecore-ipc evas eet ${requirements_ecore_config}"])
875 ECORE_CHECK_MODULE([IMF], [${want_ecore_imf}])
879 ecore_imf_evas_deps="no"
880 if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then
881 ecore_imf_evas_deps="yes"
884 ECORE_CHECK_MODULE([IMF_EVAS], [${want_ecore_imf}], [${ecore_imf_evas_deps}],
885 [requirements_ecore_imf_evas="ecore-imf evas ${requirements_ecore_imf_evas}"])
888 ECORE_CHECK_MODULE([Input], [${want_ecore_input}])
889 ECORE_CHECK_MODULE([Input_Evas], [${want_ecore_input}], [${have_evas}],
890 [requirements_ecore_input_evas="ecore-input evas ${requirements_ecore_input}"])
897 if test "x${have_x}" = "xyes" -a \
898 "x${have_ecore_input}" = "xyes" -a \
899 "x${have_ecore_txt}" = "xyes" ; then
903 ECORE_CHECK_MODULE([X], [${want_ecore_x}], [${ecore_x_deps}],
905 ecore_x_libs="$ecore_x_libs $x_libs"
906 requirements_ecore_x="ecore-input ecore-txt ${requirements_ecore_x}"
911 ECORE_CHECK_MODULE([Win32], [${want_ecore_win32}], [${have_ecore_input}],
913 ecore_win32_libs="-lole32 -lgdi32"
914 requirements_ecore_win32="ecore-input ${requirements_ecore_win32}"
916 AC_SUBST(ecore_win32_libs)
920 ecore_quartz_deps="no"
921 if test "x${have_ecore_input}" = "xyes" -a "x${have_quartz}" = "xyes" ; then
922 ecore_quartz_deps="yes"
925 ECORE_CHECK_MODULE([QUARTZ], [${want_ecore_quartz}], [${ecore_quartz_deps}],
926 [requirements_ecore_quartz="ecore-input ${requirements_ecore_quartz}"])
931 if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then
935 ECORE_CHECK_MODULE([SDL], [${want_ecore_sdl}], [${ecore_sdl_deps}],
936 [requirements_ecore_sdl="ecore-input ${requirements_ecore_sdl}"])
939 ECORE_CHECK_MODULE([FB], [${want_ecore_fb}], [$have_fb])
941 if test "x${have_ecore_fb}" = "xyes" ; then
942 ECORE_CHECK_TSLIB([${want_tslib}],
945 requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}"
952 ECORE_CHECK_MODULE([DirectFB], [${want_ecore_directfb}], [${have_directfb}],
953 [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"])
957 ECORE_CHECK_MODULE([WinCE], [${want_ecore_wince}], [${have_ecore_input}],
958 [requirements_ecore_win32="ecore-input ${requirements_ecore_win32}"])
965 if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then
966 ecore_evas_deps="yes"
969 ECORE_CHECK_MODULE([Evas], [${want_ecore_evas}], [${ecore_evas_deps}],
970 [requirements_ecore_evas="ecore-input ecore-input-evas evas ${requirements_ecore_evas}"])
974 ECORE_EVAS_CHECK_MODULE([software-buffer],
975 [${want_ecore_evas_software_buffer}],
981 # ecore_evas_software_x11
983 ECORE_EVAS_CHECK_MODULE([software-x11],
984 [${want_ecore_evas_software_x11}],
988 have_ecore_evas_software_xlib=no"
989 have_ecore_evas_software_xcb=no"
990 if test "x$have_ecore_evas_software_x11" = "xyes" ; then
991 have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11`
992 if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then
993 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support])
995 have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11`
996 if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
997 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support])
1001 # ecore_evas_xrender_x11
1003 ECORE_EVAS_CHECK_MODULE([xrender-x11],
1004 [${want_ecore_evas_xrender_x11}],
1006 [${have_ecore_x_xlib}])
1008 # ecore_evas_opengl_x11
1010 ECORE_EVAS_CHECK_MODULE([opengl-x11],
1011 [${want_ecore_evas_opengl_x11}],
1013 [${have_ecore_x_xlib}])
1015 # ecore_evas_software_x11 16 bits
1017 ECORE_EVAS_CHECK_MODULE([software-16-x11],
1018 [${want_ecore_evas_software_16_x11}],
1019 [Software Xlib 16 bits],
1020 [${have_ecore_x_xlib}])
1022 # ecore_evas_xrender_xcb
1024 ECORE_EVAS_CHECK_MODULE([xrender-xcb],
1025 [${want_ecore_evas_xrender_xcb}],
1027 [${ecore_evas_xcb_deps}])
1029 if test "x$have_ecore_evas_software_x11" = "xyes" -o \
1030 "x$have_ecore_evas_xrender_x11" = "xyes" -o \
1031 "x$have_ecore_evas_opengl_x11" = "xyes" -o \
1032 "x$have_ecore_evas_software_16_x11" = "xyes" -o \
1033 "x$have_ecore_evas_software_xcb" = "xyes" -o \
1034 "x$have_ecore_evas_xrender_xcb" = "xyes"; then
1035 AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas])
1036 requirements_ecore_evas="ecore-x ${requirements_ecore_evas}"
1041 ECORE_EVAS_CHECK_MODULE([software-gdi],
1042 [${want_ecore_evas_software_gdi}],
1044 [${have_ecore_win32}])
1046 ECORE_EVAS_CHECK_MODULE([software-ddraw],
1047 [${want_ecore_evas_software_ddraw}],
1048 [Software DirectDraw],
1049 [${have_ecore_win32}])
1051 ECORE_EVAS_CHECK_MODULE([direct3d],
1052 [${want_ecore_evas_direct3d}],
1054 [${have_ecore_win32}])
1056 ECORE_EVAS_CHECK_MODULE([opengl-glew],
1057 [${want_ecore_evas_opengl_glew}],
1059 [${have_ecore_win32}])
1061 ECORE_EVAS_CHECK_MODULE([software-16-ddraw],
1062 [${want_ecore_evas_software_16_ddraw}],
1063 [16 bpp Software DirectDraw],
1064 [${have_ecore_win32}])
1066 if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \
1067 "x${have_ecore_evas_software_ddraw}" = "xyes" -o \
1068 "x${have_ecore_evas_direct3d}" = "xyes" -o \
1069 "x${have_ecore_evas_opengl_glew}" = "xyes" -o \
1070 "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then
1071 AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
1072 requirements_ecore_evas="ecore-win32 ${requirements_ecore_evas}"
1077 ECORE_EVAS_CHECK_MODULE([quartz],
1078 [${want_ecore_evas_quartz}],
1080 [${have_ecore_quartz}],
1081 [requirements_ecore_evas="ecore-quartz ${requirements_ecore_evas}"])
1083 # ecore_evas_software_sdl
1085 ECORE_EVAS_CHECK_MODULE([software-sdl],
1086 [${want_ecore_evas_software_sdl}],
1088 [${have_ecore_sdl}],
1089 [requirements_ecore_evas="ecore-sdl ${requirements_ecore_evas}"])
1091 # ecore_evas_directfb
1093 ECORE_EVAS_CHECK_MODULE([directfb],
1094 [${want_ecore_evas_directfb}],
1096 [${have_ecore_directfb}],
1097 [requirements_ecore_evas="ecore-directfb ${requirements_ecore_evas}"])
1101 ECORE_EVAS_CHECK_MODULE([fb],
1102 [${want_ecore_evas_fb}],
1103 [Linux Framebuffer],
1105 [requirements_ecore_evas="ecore-fb ${requirements_ecore_evas}"])
1109 ECORE_EVAS_CHECK_MODULE([software-16-wince],
1110 [${want_ecore_evas_software_16_wince}],
1111 [16 bpp Software Windows CE],
1112 [${have_ecore_wince}],
1113 [requirements_ecore_evas="ecore-wince ${requirements_ecore_evas}"])
1119 AC_SUBST(requirements_ecore)
1120 AC_SUBST(requirements_ecore_con)
1121 AC_SUBST(requirements_ecore_config)
1122 AC_SUBST(requirements_ecore_directfb)
1123 AC_SUBST(requirements_ecore_evas)
1124 AC_SUBST(requirements_ecore_fb)
1125 AC_SUBST(requirements_ecore_file)
1126 AC_SUBST(requirements_ecore_imf)
1127 AC_SUBST(requirements_ecore_imf_evas)
1128 AC_SUBST(requirements_ecore_input)
1129 AC_SUBST(requirements_ecore_input_evas)
1130 AC_SUBST(requirements_ecore_ipc)
1131 AC_SUBST(requirements_ecore_quartz)
1132 AC_SUBST(requirements_ecore_sdl)
1133 AC_SUBST(requirements_ecore_txt)
1134 AC_SUBST(requirements_ecore_x)
1135 AC_SUBST(requirements_ecore_win32)
1136 AC_SUBST(requirements_ecore_wince)
1163 src/lib/ecore/Makefile
1164 src/lib/ecore_x/Makefile
1165 src/lib/ecore_x/xlib/Makefile
1166 src/lib/ecore_x/xcb/Makefile
1167 src/lib/ecore_fb/Makefile
1168 src/lib/ecore_sdl/Makefile
1169 src/lib/ecore_quartz/Makefile
1170 src/lib/ecore_evas/Makefile
1171 src/lib/ecore_con/Makefile
1172 src/lib/ecore_imf/Makefile
1173 src/lib/ecore_imf_evas/Makefile
1174 src/lib/ecore_input/Makefile
1175 src/lib/ecore_input_evas/Makefile
1176 src/lib/ecore_ipc/Makefile
1177 src/lib/ecore_txt/Makefile
1178 src/lib/ecore_config/Makefile
1179 src/lib/ecore_file/Makefile
1180 src/lib/ecore_directfb/Makefile
1181 src/lib/ecore_win32/Makefile
1182 src/lib/ecore_wince/Makefile
1189 echo "$PACKAGE $VERSION"
1191 echo "Optional Modules:"
1195 echo " Ecore........................: always"
1196 echo " Thread support.............: $have_pthread"
1197 echo " GLib support...............: $have_glib"
1198 echo " Ecore_Txt....................: $have_ecore_txt"
1199 echo " Ecore_Con....................: $have_ecore_con"
1200 if test "x$have_ecore_con" = "xyes" ; then
1201 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1202 if test "x$have_gnutls" = "xyes" ; then
1207 echo " GnuTLS.....................: $have_gnutls"
1208 echo " CURL.......................: $have_curl"
1209 echo " Abstract Sockets...........: $want_abstract_sockets"
1210 echo " c-ares.....................: $have_cares"
1212 echo " Ecore_Ipc....................: $have_ecore_ipc"
1213 if test "x$have_ecore_ipc" = "xyes" ; then
1214 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1215 if test "x$have_gnutls" = "xyes" ; then
1220 echo " GnuTLS.....................: $have_gnutls"
1222 echo " Ecore_File...................: $have_ecore_file"
1223 if test "x$have_ecore_file" = "xyes" ; then
1224 echo " Inotify....................: $have_inotify"
1225 echo " Windows notification.......: $have_notify_win32"
1226 echo " Poll.......................: $have_poll"
1227 echo " CURL.......................: $have_curl"
1229 echo " Ecore_Config.................: $have_ecore_config"
1230 echo " Ecore_IMF....................: $have_ecore_imf"
1231 echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas"
1232 echo " Ecore_Input..................: $have_ecore_input"
1233 echo " Ecore_Input_Evas.............: $have_ecore_input_evas"
1236 echo " Graphic systems:"
1239 if test "x$have_ecore_x" = "xyes" ; then
1240 if test "x$have_ecore_x_xcb" = "xyes" ; then
1241 echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb"
1242 echo " Xprint.....................: $have_ecore_x_xcb_xprint"
1243 echo " Xinerama...................: $have_ecore_x_xcb_xinerama"
1244 echo " Xrandr.....................: $have_ecore_x_xcb_randr"
1245 echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver"
1246 echo " Xshape.....................: $have_ecore_x_xcb_shape"
1247 echo " Xsync......................: $have_ecore_x_xcb_sync"
1248 echo " Xrender....................: $have_ecore_x_xcb_render"
1249 echo " Xcomposite.................: $have_ecore_x_xcb_composite"
1250 echo " Xfixes.....................: $have_ecore_x_xcb_xfixes"
1251 echo " Xdamage....................: $have_ecore_x_xcb_damage"
1252 echo " Xdpms......................: $have_ecore_x_xcb_dpms"
1253 echo " Xtest......................: $have_ecore_x_xcb_xtest"
1255 echo " Ecore_X (Xlib backend).......: $have_ecore_x"
1256 echo " Xcursor....................: $use_Xcursor"
1257 echo " Xkb........................: $use_xkb"
1258 echo " Xprint.....................: $use_xprint"
1259 echo " Xinerama...................: $use_xinerama"
1260 echo " Xrandr.....................: $use_xrandr"
1261 echo " Xscreensaver...............: $use_xss"
1262 echo " Xrender....................: $use_xrender"
1263 echo " Xcomposite.................: $use_xcomposite"
1264 echo " Xfixes.....................: $use_xfixes"
1265 echo " Xdamage....................: $use_xdamage"
1266 echo " Xdpms......................: $use_xdpms"
1267 echo " Xtest......................: $use_xtest"
1268 echo " XIM........................: $want_xim"
1269 echo " Xi2........................: $use_xi2"
1272 echo " Ecore_X......................: $have_ecore_x"
1274 echo " Ecore_Win32..................: $have_ecore_win32"
1275 echo " Ecore_Quartz.................: $have_ecore_quartz"
1276 echo " Ecore_SDL....................: $have_ecore_sdl"
1277 echo " Ecore_FB.....................: $have_ecore_fb"
1278 if test "x${have_ecore_fb}" = "xyes" ; then
1279 echo " Touchscreen................: $have_tslib"
1281 echo " Ecore_DirectFB...............: $have_ecore_directfb"
1282 echo " Ecore_WinCE..................: $have_ecore_wince"
1288 echo " Ecore_Evas...................: $have_ecore_evas"
1289 if test "x${have_ecore_evas}" = "xyes" ; then
1290 echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer"
1291 if test "x${have_ecore_evas_software_x11}" = "xyes" ; then
1292 if test "x${have_ecore_evas_software_xlib}" = "xyes" ; then
1293 echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib)"
1295 if test "x${have_ecore_evas_software_xcb}" = "xyes" ; then
1296 echo " Software X11...............: $have_ecore_evas_software_x11 (XCB)"
1299 echo " Software X11...............: $have_ecore_evas_software_x11"
1301 echo " XRender X11................: $have_ecore_evas_xrender_x11"
1302 echo " OpenGL X11.................: $have_ecore_evas_opengl_x11"
1303 echo " XRender XCB................: $have_ecore_evas_xrender_xcb"
1304 echo " Software GDI...............: $have_ecore_evas_software_gdi"
1305 echo " Software DirectDraw........: $have_ecore_evas_software_ddraw"
1306 echo " Direct3D...................: $have_ecore_evas_direct3d"
1307 echo " OpenGL Glew................: $have_ecore_evas_opengl_glew"
1308 echo " Quartz.....................: $have_ecore_evas_quartz"
1309 echo " Software SDL...............: $have_ecore_evas_software_sdl"
1310 echo " DirectFB...................: $have_ecore_evas_directfb"
1311 echo " Software Framebuffer.......: $have_ecore_evas_fb"
1312 echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11"
1313 echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw"
1314 echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince"
1317 echo " Documentation.................: ${build_doc}"
1319 echo " Compilation...................: make (or gmake)"
1320 if test "x${build_doc}" = "xyes" ; then
1321 echo " Build of the documentation....: make doc"
1324 echo " Installation..................: make install"
1326 echo " prefix.....................: $prefix"
1330 echo "Compilation............: make (or gmake)"
1331 echo " CPPFLAGS.............: $CPPFLAGS"
1332 echo " CFLAGS...............: $CFLAGS"
1333 echo " CXXFLAGS.............: $CXXFLAGS"
1334 echo " LDFLAGS..............: $LDFLAGS"
1336 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
1337 echo " prefix...............: $prefix"