1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [0])
5 m4_define([v_mic], [999])
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
9 dnl m4_undefine([v_rev])
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_cur], m4_eval(v_maj + v_min))
16 m4_define([lt_rev], v_mic)
17 m4_define([lt_age], v_min)
18 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
22 # Check whether the Objective C compiler works.
23 AC_DEFUN([rw_PROG_OBJC_WORKS],
24 [m4_ifdef([AC_PROG_OBJC], [AC_REQUIRE([AC_PROG_OBJC])dnl
25 AC_CACHE_CHECK([whether the Objective C compiler works],
26 [rw_cv_prog_objc_works],
27 [AC_LANG_PUSH([Objective C])
28 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
29 [rw_cv_prog_objc_works=yes],
30 [rw_cv_prog_objc_works=no])
31 AC_LANG_POP([Objective C])])], [rw_cv_prog_objc_works=no])
34 AC_INIT([evas], [v_ver], [enlightenment-devel@lists.sourceforge.net])
36 AC_CONFIG_SRCDIR([configure.ac])
37 AC_CONFIG_MACRO_DIR([m4])
39 AC_CONFIG_HEADERS([config.h])
41 #ifndef EFL_CONFIG_H__
42 #define EFL_CONFIG_H__
45 #endif /* EFL_CONFIG_H__ */
48 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
49 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
54 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
57 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
58 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
59 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
60 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
61 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
62 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
63 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
64 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
65 version_info="lt_cur:lt_rev:lt_age"
67 AC_SUBST(version_info)
68 AC_SUBST(release_info)
69 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
70 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
74 ### Needed information
81 MODULE_ARCH="$host_os-$host_cpu"
84 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
88 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
90 want_fontconfig="auto"
94 want_evas_cserve="yes"
96 want_evas_engine_buffer="yes"
97 want_evas_engine_software_xlib="no"
98 want_evas_engine_software_xcb="no"
99 want_evas_engine_software_gdi="no"
100 want_evas_engine_software_ddraw="no"
101 want_evas_engine_software_sdl="no"
102 want_evas_engine_software_8_x11="no"
103 want_evas_engine_software_16_x11="no"
104 want_evas_engine_software_16_ddraw="no"
105 want_evas_engine_software_16_wince="no"
106 want_evas_engine_software_16_sdl="no"
107 want_evas_engine_gl_xlib="no"
108 want_evas_engine_gl_xcb="no"
109 want_evas_engine_gl_sdl="no"
110 want_evas_engine_gl_cocoa="yes"
111 want_evas_engine_direct3d="no"
112 want_evas_engine_fb="no"
113 want_evas_engine_directfb="no"
115 want_evas_image_loader_edb="yes"
116 want_evas_image_loader_eet="yes"
117 want_evas_image_loader_gif="yes"
118 want_evas_image_loader_jpeg="yes"
119 want_evas_image_loader_pmaps="yes"
120 want_evas_image_loader_png="yes"
121 want_evas_image_loader_svg="yes"
122 want_evas_image_loader_tiff="yes"
123 want_evas_image_loader_xpm="yes"
124 want_evas_image_loader_bmp="yes"
125 want_evas_image_loader_tga="yes"
126 want_evas_image_loader_wbmp="yes"
127 want_evas_image_loader_ico="yes"
128 want_evas_image_loader_psd="yes"
129 want_evas_image_loader_generic="yes"
131 want_evas_font_loader_eet="yes"
136 want_evas_engine_software_16_wince="yes"
137 want_evas_image_loader_edb="no"
138 want_evas_image_loader_gif="no"
139 want_evas_image_loader_svg="no"
140 want_evas_image_loader_tiff="no"
143 want_evas_engine_software_gdi="yes"
144 want_evas_engine_software_ddraw="yes"
145 want_evas_engine_direct3d="yes"
146 want_evas_engine_software_16_ddraw="yes"
147 want_evas_image_loader_edb="no"
148 want_evas_image_loader_svg="no"
151 want_evas_engine_software_xlib="auto"
152 want_evas_engine_gl_cocoa="auto"
155 want_evas_engine_software_xlib="auto"
156 want_evas_engine_gl_xlib="auto"
157 want_evas_engine_software_xcb="no"
158 want_evas_engine_gl_xcb="no"
159 want_evas_engine_fb="auto"
160 ### no - not ready/usable/complete
161 # want_evas_engine_software_8_x11="auto"
162 # want_evas_engine_software_16_x11="auto"
169 ### Additional options to configure
171 # when used, that option makes configure script fails when
172 # a requirement is selected, but not met.
174 AC_ARG_ENABLE([strict],
175 AC_HELP_STRING([--enable-strict], [enable strict checking mode. @<:@default==disabled@:>@]),
179 # Simple X11 build/link
180 AC_ARG_ENABLE([simple-x11],
181 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
183 if test "x${enableval}" = "xyes" ; then
184 want_evas_simple_x11="yes"
186 want_evas_simple_x11="no"
191 ### Checks for programs
193 m4_ifdef([AC_PROG_OBJC],
196 _AM_DEPENDENCIES(OBJC)
199 dnl#AC_CHECK_TOOL([OBJC], [gcc])
201 dnl#AC_SUBST([OBJCFLAGS])
212 # Check whether pkg-config supports Requires.private
213 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
214 pkgconfig_requires_private="Requires.private"
216 pkgconfig_requires_private="Requires"
218 AC_SUBST(pkgconfig_requires_private)
220 # doxygen program for documentation building
221 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
224 ### Checks for libraries
226 # Evil library for compilation on Windows CE
230 PKG_CHECK_MODULES([EVIL], [evil])
231 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
232 requirement_evas="evil ${requirement_evas}"
236 ## strong dependencies
239 PKG_CHECK_MODULES([EINA], [eina > 1.0.999])
240 CPPFLAGS_SAVE="$CPPFLAGS"
241 CPPFLAGS="$CPPFLAGS $EINA_CFLAGS"
242 AC_CHECK_SIZEOF(Eina_Unicode,, [#include <Eina.h>])
243 CPPFLAGS="$CPPFLAGS_SAVE"
246 PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 9.3.0])
248 requirement_evas="freetype2 eina >= 1.0.0 ${requirement_evas}"
250 ## optional dependencies
254 AC_ARG_ENABLE([fontconfig],
255 AC_HELP_STRING([--disable-fontconfig],
256 [disable fontconfig for finding fonts. @<:@default=enabled@:>@]),
258 if test "x${enableval}" = "xyes" ; then
259 want_fontconfig="yes"
266 if test "x${want_fontconfig}" = "xyes" -o "x${want_fontconfig}" = "xauto" ; then
267 PKG_CHECK_MODULES([FONTCONFIG],
268 [fontconfig >= 2.5.0],
270 have_fontconfig="yes"
271 AC_DEFINE(HAVE_FONTCONFIG, 1, [have fontconfig searching capabilities])
272 requirement_evas="fontconfig ${requirement_evas}"
275 if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then
276 AC_MSG_ERROR([Fontconfig not found (strict dependencies checking)])
284 AC_ARG_ENABLE([liblinebreak],
285 AC_HELP_STRING([--disable-liblinebreak],
286 [disable linking against liblinebreak. @<:@default=enabled@:>@]),
288 if test "x${enableval}" = "xyes" ; then
296 AM_CONDITIONAL(EVAS_USE_LINEBREAK, test "x${want_linebreak}" = "xyes")
297 if test "x${want_linebreak}" = "xyes" ; then
299 LINEBREAK_CFLAGS='-I$(top_srcdir)/src/static_deps/liblinebreak'
300 LINEBREAK_LIBS='$(top_builddir)/src/static_deps/liblinebreak/liblinebreak.la'
301 AC_SUBST(LINEBREAK_CFLAGS)
302 AC_SUBST(LINEBREAK_LIBS)
303 AC_DEFINE(HAVE_LINEBREAK, 1, [have liblinebreak support])
310 AC_ARG_ENABLE([fribidi],
311 AC_HELP_STRING([--disable-fribidi],
312 [disable bidirectional text support. @<:@default=enabled@:>@]),
314 if test "x${enableval}" = "xyes" ; then
321 if test "x${want_fribidi}" = "xyes" -o "x${want_fribidi}" = "xauto" ; then
322 PKG_CHECK_MODULES([FRIBIDI],
326 AC_DEFINE(HAVE_FRIBIDI, 1, [have fribidi support])
327 requirement_evas="fribidi ${requirement_evas}"
328 CPPFLAGS_SAVE="$CPPFLAGS"
329 CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS"
330 AC_CHECK_SIZEOF(FriBidiChar,, [#include <fribidi/fribidi.h>])
331 CPPFLAGS="$CPPFLAGS_SAVE"
334 if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then
335 AC_MSG_ERROR([Fribidi not found (strict dependencies checking)])
340 if test "x${have_fribidi}" = "xno"; then
346 have_harfbuzz_ft="no"
347 AC_ARG_ENABLE([harfbuzz],
348 AC_HELP_STRING([--disable-harfbuzz],
349 [disable complex text shaping and layouting support. @<:@default=enabled@:>@]),
351 if test "x${enableval}" = "xyes" ; then
358 if test "x${want_harfbuzz}" = "xyes" -o "x${want_harfbuzz}" = "xauto" ; then
359 PKG_CHECK_MODULES([HARFBUZZ],
363 requirement_evas="harfbuzz ${requirement_evas}"
366 if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
367 AC_MSG_ERROR([Harfbuzz not found (strict dependencies checking)])
370 if test "x$have_harfbuzz" = "xyes" ; then
372 CPPFLAGS_SAVE="$CPPFLAGS"
373 CPPFLAGS="$CPPFLAGS $HARFBUZZ_CFLAGS $FREETYPE_CFLAGS"
374 # must have for usage with harfbuzz although harfbuzz may not have it.
376 AC_CHECK_HEADER(hb-ft.h,
378 have_harfbuzz_ft="yes"
379 #Depend on harfbuzz ft for harfbuzz support
380 AC_DEFINE(HAVE_HARFBUZZ, 1, [have harfbuzz support])
383 if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
384 AC_MSG_ERROR([Harfbuzz-ft not found (strict dependencies checking)])
388 CPPFLAGS="$CPPFLAGS_SAVE"
392 if test "x${have_harfbuzz}" = "xno"; then
398 AC_ARG_ENABLE([pixman],
399 AC_HELP_STRING([--disable-pixman],
400 [disable pixman for software rendering. @<:@default=enabled@:>@]),
402 if test "x${enableval}" = "xyes" ; then
410 if test "x${want_pixman}" = "xyes" -o "x${want_pixman}" = "xauto" ; then
411 PKG_CHECK_MODULES([PIXMAN],
415 AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering])
416 requirement_evas="pixman-1 ${requirement_evas}"
419 if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then
420 AC_MSG_ERROR([Pixman not found (strict dependencies checking)])
425 ### Checks for header files
427 AC_CHECK_HEADERS([unistd.h stdint.h sys/param.h netinet/in.h])
432 AC_CHECK_TYPES([struct sigaction], [], [],
433 [[#include <signal.h>]])
436 ### Checks for structures
439 ### Checks for compiler characteristics
445 EFL_ATTRIBUTE_ALWAYS_INLINE
450 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
453 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500"
456 AC_SUBST(WIN32_CPPFLAGS)
459 AC_SUBST(WIN32_CFLAGS)
462 ### Checks for linker characteristics
463 lt_enable_auto_import=""
466 AC_DEFINE(EFL_EVAS_BUILD, 1, [Define to mention that evas is built])
467 lt_enable_auto_import="-Wl,--enable-auto-import"
470 AC_SUBST(lt_enable_auto_import)
473 ### Checks for library functions
476 AC_CHECK_FUNCS([siglongjmp])
482 EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])])
489 AC_DEFINE(HAVE_DLSYM)
492 # nothing on mingw platform
495 AC_CHECK_FUNCS(dlsym, res=yes, res=no)
496 if test "x$res" = "xyes"; then
497 AC_DEFINE(HAVE_DLSYM)
499 AC_CHECK_LIB(dl, dlsym, res=yes, res=no)
500 if test "x$res" = "xyes"; then
502 AC_DEFINE(HAVE_DLSYM)
504 want_evas_engine_gl_xlib="no"
505 want_evas_engine_gl_xcb="no"
506 want_evas_engine_gl_sdl="no"
510 AC_SUBST(dlopen_libs)
513 AC_CHECK_LIB(m, lround, res=yes, res=no)
514 if test "x$res" = "xyes"; then
515 AC_DEFINE(HAVE_LROUND, 1, C99 lround function exists)
519 AC_MSG_CHECKING([whether shm_open() is present])
525 #include <sys/stat.h>
526 #include <sys/mman.h>
531 fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
536 AC_DEFINE(HAVE_SHM_OPEN, 1, [Have shm_open() call])
539 [have_shm_open="no"])
541 AC_MSG_RESULT([${have_shm_open}])
542 AC_SUBST(SHM_OPEN_LINK)
544 # (shm_open (for cache server)
545 AC_ARG_ENABLE([evas-cserve],
546 AC_HELP_STRING([--disable-evas-cserve],
547 [disable shared cache server support. @<:@default=enabled@:>@]),
549 if test "x${enableval}" = "xyes" ; then
550 want_evas_cserve="yes"
552 want_evas_cserve="no"
555 AC_MSG_CHECKING(whether to build shared cache server and support)
556 AC_MSG_RESULT(${want_evas_cserve})
558 if test "x${want_evas_cserve}" = "xyes" ; then
559 AC_MSG_CHECKING([whether shm_open() is present])
565 #include <sys/types.h>
566 #include <sys/mman.h>
571 fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
574 [want_evas_cserve="yes"],
575 [want_evas_cserve="no"])
577 AC_MSG_RESULT([${want_evas_cserve}])
580 if test "x${want_evas_cserve}" = "xyes" ; then
581 AC_DEFINE(EVAS_CSERVE, 1, [Shared caceh server.])
584 AM_CONDITIONAL([EVAS_CSERVE], [test "x${want_evas_cserve}" = "xyes"])
588 #######################################
589 ## GL force flavor gles
591 AC_MSG_CHECKING(whether to build GLES flavor of GL)
592 AC_ARG_ENABLE(gl-flavor-gles,
593 AC_HELP_STRING([--enable-gl-flavor-gles], [enable gles falvor of gl instead of standard]),
595 if test "x$enableval" = "xyes" ; then
608 #######################################
610 gles_variety_sgx="no"
611 AC_MSG_CHECKING(whether to build GLES variety for SGX)
612 AC_ARG_ENABLE(gles-variety-sgx,
613 AC_HELP_STRING([--enable-gles-variety-sgx], [GLES variety SGX 3D unit]),
615 if test "x$enableval" = "xyes" ; then
617 AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support])
618 gles_variety_sgx="yes"
621 gles_variety_sgx="no"
625 gles_variety_sgx="no"
629 #######################################
630 ## GLES variety s3c6410
631 gles_variety_s3c6410="no"
632 AC_MSG_CHECKING(whether to build GLES variety for s3c6410)
633 AC_ARG_ENABLE(gles-variety-s3c6410,
634 AC_HELP_STRING([--enable-gles-variety-s3c6410], [GLES variety s3c6410 3D unit]),
636 if test "x$enableval" = "xyes" ; then
638 AC_DEFINE(GLES_VARIETY_S3C6410, 1, [Samsung S3c6410 GLES2 support])
639 gles_variety_s3c6410="yes"
642 gles_variety_s3c6410="no"
646 gles_variety_s3c6410="no"
650 if test "x$gl_flavor_gles" = "xyes"; then
652 if test "x$gles_variety_sgx" = "xyes"; then eng="x"$eng; fi
653 if test "x$gles_variety_s3c6410" = "xyes"; then eng="x"$eng; fi
654 if test "x$eng" = "xx"; then
658 [Please enable just 1 OpenGL-ES flavor. Choices are:
659 --enable-gles-variety-sgx (Most GL-ES2 GPUs with shader compiler)
660 --enable-gles-variety-s3c6410 (s3c6410 with offline shader compiler)
661 You will also need to enable the OpenGL engine for X11 with:
662 --enable-gl-xlib or --enable-gl-xcb
667 #####################################################################
670 EVAS_CHECK_ENGINE([buffer], [${want_evas_engine_buffer}], [yes], [Buffer])
672 EVAS_CHECK_ENGINE([software-gdi], [${want_evas_engine_software_gdi}], [no], [Software GDI])
674 EVAS_CHECK_ENGINE([software-ddraw], [${want_evas_engine_software_ddraw}], [no], [Software DirectDraw])
676 EVAS_CHECK_ENGINE([direct3d], [${want_evas_engine_direct3d}], [no], [Direct3D])
678 EVAS_CHECK_ENGINE([software-sdl], [${want_evas_engine_software_sdl}], [no], [Software SDL])
680 EVAS_CHECK_ENGINE([gl-sdl], [${want_evas_engine_gl_sdl}], [no], [OpenGL SDL])
682 EVAS_CHECK_ENGINE([gl-cocoa], [${want_evas_engine_gl_cocoa}], [no], [OpenGL Cocoa])
684 EVAS_CHECK_ENGINE([fb], [${want_evas_engine_fb}], [no], [Framebuffer])
686 EVAS_CHECK_ENGINE([directfb], [${want_evas_engine_directfb}], [no], [DirectFB])
688 EVAS_CHECK_ENGINE([software-8-x11], [${want_evas_engine_software_8_x11}], [no], [Software X11 8 bits grayscale])
690 EVAS_CHECK_ENGINE([software-16-x11], [${want_evas_engine_software_16_x11}], [no], [Software X11 16 bits])
692 EVAS_CHECK_ENGINE([software-16-ddraw], [${want_evas_engine_software_16_ddraw}], [no], [Software DirectDraw 16 bits])
694 EVAS_CHECK_ENGINE([software-16-wince], [${want_evas_engine_software_16_wince}], [no], [Software Windows CE 16 bits])
696 EVAS_CHECK_ENGINE([software-16-sdl], [${want_evas_engine_software_16_sdl}], [no], [Software SDL 16 bits])
701 AC_ARG_ENABLE([sdl-primitive],
702 [AC_HELP_STRING([--enable-sdl-primitive], [])],
703 [sdl_primitive=${enableval}]
705 AC_MSG_CHECKING([whether to use SDL primitive when possible])
706 AC_MSG_RESULT([${sdl_primitive}])
708 if test "x${sdl_primitive}" = "xyes" ; then
709 AC_DEFINE([ENGINE_SDL_PRIMITIVE], [1], [Use SDL primitive when possible])
712 # if software generic need to be build as part of libevas.so
713 have_static_software_generic="no"
714 AC_ARG_ENABLE([static-software-generic],
715 [AC_HELP_STRING([--enable-static-software-generic], [Build software generic engine as part of libevas])],
716 [have_static_software_generic=${enableval}]
718 AC_MSG_CHECKING([Whether to build software generic engine as part of libevas])
719 AC_MSG_RESULT([${have_static_software_generic}])
721 if test "x${have_static_module}" = "xyes" -a "x${have_static_software_generic}" = "xno"; then
722 AC_MSG_WARN([Forcing --enable-static-software-generic as engines must be compiled statically])
723 have_static_software_generic="yes"
726 AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, test "x${have_static_software_generic}" = "xyes")
727 if test "x${have_static_software_generic}" = "xyes"; then
728 AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, [1], [Build software generic engine as part of libevas])
732 ######## Software Engine ########
733 have_evas_engine_software_x11="no"
734 have_evas_engine_software_xcb="no"
735 have_evas_engine_software_xlib="no"
740 AC_MSG_CHECKING(whether to build Software XCB Engine)
741 AC_ARG_ENABLE(software-xcb,
742 AC_HELP_STRING([--enable-software-xcb], [enable Software XCB Engine. @<:@default=disabled@:>@]), [want_xcb=$enableval]
744 if test "x$want_xcb" != "xno" ; then
745 EVAS_CHECK_ENGINE([software-xcb], [${want_evas_engine_software_xcb}], [no], [Software XCB])
746 if test "x$have_evas_engine_software_xcb" != "xno" ; then
747 build_software_xcb="yes"
748 have_evas_engine_software_x11="yes"
749 AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_X11, [1], [Build software X11 engine])
750 AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_XCB, [1], [Build software XCB backend])
754 build_software_xcb="no"
757 ## If we are not building XCB, then we can build XLib ##
759 if test "x$build_software_xcb" = "xno" ; then
760 EVAS_CHECK_ENGINE([software-xlib], [${want_evas_engine_software_xlib}], [no], [Software Xlib])
761 # if software_x11 is available, define everything needed for X11
762 if test "x$have_evas_engine_software_xlib" != "xno" ; then
763 have_evas_engine_software_x11="yes"
764 AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_X11, [1], [Build software X11 engine])
765 AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_XLIB, [1], [Build software Xlib backend])
768 have_evas_engine_software_xlib="no"
771 if test "x$have_evas_engine_software_xlib" = "xstatic" -o "x$have_evas_engine_software_xcb" = "xstatic"; then
772 AC_DEFINE_UNQUOTED(EVAS_STATIC_BUILD_SOFTWARE_X11, [1], [Build software X11 engine as part of libevas])
775 AC_SUBST(have_evas_engine_software_xcb)
776 AC_SUBST(have_evas_engine_software_xlib)
778 AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XLIB], [test "x${have_evas_engine_software_xlib}" != "xno"])
779 AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XCB], [test "x${have_evas_engine_software_xcb}" != "xno"])
780 AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_X11], [test "x${have_evas_engine_software_x11}" != "xno"])
782 AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_X11], [test "x${have_evas_engine_software_xcb}" = "xstatic" -o "x${have_evas_engine_software_xlib}" = "xstatic"])
783 AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XLIB], [test "x${have_evas_engine_software_xlib}" = "xstatic"])
784 AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XCB], [test "x${have_evas_engine_software_xcb}" = "xstatic"])
786 AC_SUBST(have_evas_engine_software_x11)
789 ######## OpenGL Engine ########
790 have_evas_engine_gl_x11="no"
791 have_evas_engine_gl_xcb="no"
796 AC_MSG_CHECKING(whether to build OpenGL XCB Engine)
797 AC_ARG_ENABLE(gl-xcb,
798 AC_HELP_STRING([--enable-gl-xcb], [enable OpenGL XCB Engine. @<:@default=disabled@:>@]), [want_gl_xcb=$enableval]
800 if test "x$want_gl_xcb" = "xyes" ; then
801 EVAS_CHECK_ENGINE([gl-xcb], [${want_evas_engine_gl_xcb}], [no], [OpenGL XCB])
802 if test "x$have_evas_engine_gl_xcb" != "xno" ; then
804 have_evas_engine_gl_x11="yes"
805 AC_DEFINE(BUILD_ENGINE_GL_X11, [1], [Build GL X11 engine])
806 AC_DEFINE(BUILD_ENGINE_GL_XCB, [1], [Build GL Xcb backend])
807 if test "x$have_evas_engine_gl_xcb" = "xstatic" ; then
808 AC_DEFINE(EVAS_STATIC_BUILD_GL_X11, [1], [Build GL X11 engine as part of libevas])
811 AC_SUBST(have_evas_engine_gl_xcb)
817 ## If we are not building XCB, then we can build XLib ##
819 if test "x$build_gl_xcb" = "xno" ; then
820 EVAS_CHECK_ENGINE([gl-xlib], [${want_evas_engine_gl_xlib}], [no], [OpenGL XLib])
821 if test "x$have_evas_engine_gl_xlib" != "xno" ; then
822 have_evas_engine_gl_x11="yes"
823 AC_DEFINE_UNQUOTED(BUILD_ENGINE_GL_X11, [1], [Build OpenGL X11 engine])
824 AC_DEFINE_UNQUOTED(BUILD_ENGINE_GL_XLIB, [1], [Build OpenGL Xlib backend])
825 if test "x$have_evas_engine_gl_xlib" = "xstatic" ; then
826 AC_DEFINE_UNQUOTED(EVAS_STATIC_BUILD_GL_X11, [1], [Build OpenGL X11 engine as part of libevas])
830 have_evas_engine_gl_xlib="no"
832 AC_SUBST(have_evas_engine_gl_xlib)
834 AM_CONDITIONAL([BUILD_ENGINE_GL_XLIB], [test "x${have_evas_engine_gl_xlib}" != "xno"])
835 AM_CONDITIONAL([BUILD_ENGINE_GL_XCB], [test "x${have_evas_engine_gl_xcb}" != "xno"])
836 AM_CONDITIONAL([BUILD_ENGINE_GL_X11], [test "x${have_evas_engine_gl_x11}" != "xno"])
838 AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_X11], [test "x${have_evas_engine_gl_xcb}" = "xstatic" -o "x${have_evas_engine_gl_xlib}" = "xstatic"])
839 AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XLIB], [test "x${have_evas_engine_gl_xlib}" = "xstatic"])
840 AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XCB], [test "x${have_evas_engine_gl_xcb}" = "xstatic"])
842 AC_SUBST(have_evas_engine_gl_x11)
845 have_evas_engine_gl_common="no"
846 have_static_evas_engine_gl_common="no"
847 if test "x$have_evas_engine_gl_xlib" = "xyes" \
848 || test "x$have_evas_engine_gl_xcb" = "xyes" \
849 || test "x$have_evas_engine_gl_sdl" = "xyes" \
850 || test "x$have_evas_engine_gl_cocoa" = "xyes"; then
851 have_evas_engine_gl_common="yes"
853 if test "x$have_evas_engine_gl_xlib" = "xstatic" \
854 || test "x$have_evas_engine_gl_xcb" = "xstatic" \
855 || test "x$have_evas_engine_gl_sdl" = "xstatic" \
856 || test "x$have_evas_engine_gl_cocoa" = "xstatic"; then
857 have_evas_engine_gl_common="yes"
858 have_static_evas_engine_gl_common="yes"
861 if test "x$have_evas_engine_gl_common" = "xyes"; then
862 evas_engine_gl_common_libs=""
863 AC_DEFINE(BUILD_ENGINE_GL_COMMON, [1], [Generic OpenGL Rendering Support])
866 AC_SUBST([evas_engine_gl_common_libs])
868 AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, [test "x$have_evas_engine_gl_common" = "xyes"])
870 AM_CONDITIONAL(EVAS_STATIC_BUILD_GL_COMMON, test "x${have_static_evas_engine_gl_common}" = "xyes")
871 if test "x${have_static_evas_engine_gl_common}" = "xyes"; then
872 AC_DEFINE(EVAS_STATIC_BUILD_GL_COMMON, [1], [Build GL generic engine as part of libevas])
876 if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then
877 AC_CHECK_DECL(SDL_GL_CONTEXT_MAJOR_VERSION,
878 [AC_DEFINE(HAVE_SDL_GL_CONTEXT_VERSION, [1], [SDL_GL version attributes present])],,
879 [#include <SDL/SDL_video.h>])
882 if test "x$gl_flavor_gles" = "xyes"; then
883 AC_CHECK_DECL(SDL_OPENGLES,
884 [AC_DEFINE(HAVE_SDL_FLAG_OPENGLES, [1], [SDL_OPENGLES flag is present])],,
885 [#include <SDL/SDL_video.h>])
888 # if software 16 x11 is enabled - build software_16 (the generic 16bit
889 # engine). later enable it fb_16 or other "16" bit engines are enabled.
890 have_evas_engine_software_16="no"
891 if test "x$have_evas_engine_software_16_x11" = "xyes" -o "x$have_evas_engine_software_16_x11" = "xstatic"; then
892 have_evas_engine_software_16="yes"
894 if test "x$have_evas_engine_software_16_sdl" = "xyes" -o "x$have_evas_engine_software_16_sdl" = "xstatic"; then
895 have_evas_engine_software_16="yes"
897 if test "x$have_evas_engine_software_16_ddraw" = "xyes" -o "x$have_evas_engine_software_16_ddraw" = "xstatic"; then
898 have_evas_engine_software_16="yes"
900 if test "x$have_evas_engine_software_16_wince" = "xyes" -o "x$have_evas_engine_software_16_wince" = "xstatic"; then
901 have_evas_engine_software_16="yes"
903 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16, test "x$have_evas_engine_software_16" = "xyes")
905 # if software 16 need to be build as part of libevas.so
906 have_static_software_16="no"
907 AC_ARG_ENABLE([static-software-16],
908 [AC_HELP_STRING([--enable-static-software-16], [Build software 16 engine as part of libevas])],
909 [have_static_software_16=${enableval}]
911 AC_MSG_CHECKING([Whether to build software 16 engine as part of libevas])
912 AC_MSG_RESULT([${have_static_software_16}])
914 AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_16, test "x${have_static_software_16}" = "xyes")
915 if test "x${have_static_software_16}" = "xyes"; then
916 AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_16, [1], [Build software 16 engine as part of libevas])
919 # if software 8 x11 is enabled - build software_8 (the generic 8bit
921 have_evas_engine_software_8="no"
922 if test "x$have_evas_engine_software_8_x11" = "xyes" -o "x$have_evas_engine_software_8_x11" = "xstatic"; then
923 have_evas_engine_software_8="yes"
925 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_8, test "x$have_evas_engine_software_8" = "xyes")
927 # if software 8 need to be build as part of libevas.so
928 have_static_software_8="no"
929 AC_ARG_ENABLE([static-software-8],
930 [AC_HELP_STRING([--enable-static-software-8], [Build software 8 engine as part of libevas])],
931 [have_static_software_8=${enableval}]
933 AC_MSG_CHECKING([Whether to build software 8 engine as part of libevas])
934 AC_MSG_RESULT([${have_static_software_8}])
936 AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_8, test "x${have_static_software_8}" = "xyes")
937 if test "x${have_static_software_8}" = "xyes"; then
938 AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_8, [1], [Build software 8 engine as part of libevas])
941 #####################################################################
944 EVAS_CHECK_IMAGE_LOADER([Edb], [${want_evas_image_loader_edb}])
946 EVAS_CHECK_IMAGE_LOADER([Eet], [${want_evas_image_loader_eet}])
947 EVAS_CHECK_FONT_LOADER([${want_evas_font_loader_eet}])
949 EVAS_CHECK_IMAGE_LOADER([Gif], [${want_evas_image_loader_gif}])
951 have_evas_image_saver_jpeg="no"
952 EVAS_CHECK_IMAGE_LOADER([Jpeg], [${want_evas_image_loader_jpeg}])
954 dnl Windows has no sigsetjmp function, nor equivalent.
955 dnl So we disable the jpeg saver.
956 dnl TODO: must find a workaround
961 if test "x${have_evas_image_loader_jpeg}" = "xyes" ; then
962 AC_DEFINE(EVAS_BUILD_SAVER_JPEG, [1], [Build JPEG saver])
963 have_evas_image_saver_jpeg="yes"
967 AM_CONDITIONAL([BUILD_SAVER_JPEG], [test "x${have_evas_image_saver_jpeg}" = "xyes"])
969 EVAS_CHECK_IMAGE_LOADER([PMAPS], [${want_evas_image_loader_pmaps}])
971 EVAS_CHECK_IMAGE_LOADER([PNG], [${want_evas_image_loader_png}])
973 EVAS_CHECK_IMAGE_LOADER([SVG], [${want_evas_image_loader_svg}])
975 EVAS_CHECK_IMAGE_LOADER([Tiff], [${want_evas_image_loader_tiff}])
977 EVAS_CHECK_IMAGE_LOADER([XPM], [${want_evas_image_loader_xpm}])
979 EVAS_CHECK_IMAGE_LOADER([BMP], [${want_evas_image_loader_bmp}])
981 EVAS_CHECK_IMAGE_LOADER([TGA], [${want_evas_image_loader_tga}])
983 EVAS_CHECK_IMAGE_LOADER([WBMP], [${want_evas_image_loader_wbmp}])
985 EVAS_CHECK_IMAGE_LOADER([ICO], [${want_evas_image_loader_ico}])
987 EVAS_CHECK_IMAGE_LOADER([PSD], [${want_evas_image_loader_psd}])
989 EVAS_CHECK_IMAGE_LOADER([GENERIC], [${want_evas_image_loader_generic}])
991 #####################################################################
992 ## Cpu based optimizations
994 #######################################
1001 # basic pthread support
1002 AC_CHECK_HEADER(pthread.h,
1011 # sched_getaffinity pthread_attr_setaffinity_np
1012 AC_CHECK_HEADERS(pthread.h sched.h,
1014 AC_CHECK_LIB(pthread, pthread_attr_setaffinity_np,
1016 AC_CHECK_LIB(pthread, pthread_barrier_wait,
1017 [ build_pthreads="yes" ],
1018 [ build_pthreads="no" ]
1021 [ build_pthreads="no" ]
1024 [ build_pthreads="no" ]
1027 #######################################
1029 AC_MSG_CHECKING(whether to build pthread code)
1030 AC_ARG_ENABLE(pthreads,
1031 AC_HELP_STRING([--enable-pthreads], [enable threaded rendering]),
1033 if test "x$enableval" = "xyes" ; then
1034 if test "x$build_pthreads" = "xyes"; then
1036 AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
1037 build_pthreads="yes"
1040 if "x$use_strict" = "xyes"; then
1041 AC_MSG_ERROR(pthreads headers or functions not found (strict dependencies checking))
1043 AC_MSG_RESULT(no: pthread headers or functions not found)
1052 AC_MSG_RESULT($build_pthreads)
1053 if test "x$build_pthreads" = "xyes" ; then
1054 AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
1060 #######################################
1062 build_pipe_render="no"
1064 AC_MSG_CHECKING(whether to build Threaded Pipe Rendering support)
1065 AC_ARG_ENABLE(pipe-render,
1066 AC_HELP_STRING([--enable-pipe-render], [enable threaded pipe rendering support]),
1067 [ build_pipe_render=$enableval ]
1069 AC_MSG_RESULT($build_pipe_render)
1071 AC_MSG_CHECKING(whether we can build Threaded Pipe Rendering support)
1072 if test \( "x$build_pipe_render" = "xyes" -o "x$build_pipe_render" = "xauto" \); then
1074 AC_DEFINE(BUILD_PIPE_RENDER, 1, [Build pipe render support])
1075 build_pipe_render="yes"
1079 build_pipe_render="no"
1082 #######################################
1084 build_async_render="no"
1086 AC_MSG_CHECKING(whether to build Asynchronously Threaded Pipe Rendering support)
1087 AC_ARG_ENABLE(async-render,
1088 AC_HELP_STRING([--enable-async-render], [enable asynchronously threaded pipe rendering support]),
1089 [ build_async_render=$enableval ]
1091 AC_MSG_RESULT($build_async_render)
1093 AC_MSG_CHECKING(whether we can build Asynchronously Threaded Pipe Rendering support)
1094 if test \( "x$build_async_render" = "xyes" \); then
1096 AC_DEFINE(EVAS_FRAME_QUEUING, 1, [Build async render support])
1097 build_async_render="yes"
1098 AC_DEFINE(BUILD_PIPE_RENDER, 1, [Build pipe render support])
1099 build_pipe_render="yes"
1102 PKG_CHECK_MODULES([XEXT],
1104 [ build_avoid_libXext_bug=yes ],
1105 [ build_avoid_libXext_bug=no ]
1107 if test \( "x$build_avoid_libXext_bug" = "xyes" \); then
1108 AC_DEFINE(LIBXEXT_VERSION_LOW, 1, [To avoid bug on old libXext version])
1112 build_async_render="no"
1115 #######################################
1117 build_async_events="auto"
1118 AC_MSG_CHECKING(whether to build Async Events support)
1119 AC_ARG_ENABLE(async-events,
1120 AC_HELP_STRING([--enable-async-events], [enable async events support]),
1121 [ build_async_events=$enableval ]
1123 AC_MSG_RESULT($build_async_events)
1125 AC_MSG_CHECKING(whether we can build Async Events support)
1126 if test "x$build_async_events" = "xyes" || test "x$build_async_events" = "xauto" ; then
1128 AC_DEFINE(BUILD_ASYNC_EVENTS, 1, [Build async events support])
1129 build_async_events="yes"
1132 build_async_events="no"
1135 #######################################
1136 ## Async image preload
1137 build_async_preload="auto"
1138 AC_MSG_CHECKING(whether to build Async Image Preload support)
1139 AC_ARG_ENABLE(async-preload,
1140 AC_HELP_STRING([--enable-async-preload], [enable async image preloading support]),
1141 [ build_async_preload=$enableval ]
1143 AC_MSG_RESULT($build_async_preload)
1145 AC_MSG_CHECKING(whether we can build Async Image Preload support)
1146 if test \( "x$build_async_preload" = "xyes" -o "x$build_async_preload" = "xauto" \) -a "x$build_async_events" = "xyes"; then
1148 AC_DEFINE(BUILD_ASYNC_PRELOAD, 1, [Build async image preload support])
1149 build_async_preload="yes"
1153 build_async_preload="no"
1156 #######################################
1157 ## Link with pthread if needed
1158 AC_MSG_CHECKING(whether we should link with pthread)
1159 if test "x$need_pthreads" = "xyes"; then
1162 pthread_libs="-lpthread"
1167 #######################################
1181 AC_MSG_CHECKING(whether to build mmx code)
1182 AC_ARG_ENABLE(cpu-mmx,
1183 AC_HELP_STRING([--enable-cpu-mmx], [enable mmx code]),
1185 if test "x$enableval" = "xyes" ; then
1187 AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
1195 AC_MSG_RESULT($build_cpu_mmx)
1196 if test "x$build_cpu_mmx" = "xyes" ; then
1197 AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
1202 #######################################
1216 AC_MSG_CHECKING(whether to build sse code)
1217 AC_ARG_ENABLE(cpu-sse,
1218 AC_HELP_STRING([--enable-cpu-sse], [enable sse code]),
1220 if test "x$enableval" = "xyes" ; then
1222 AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
1230 AC_MSG_RESULT($build_cpu_sse)
1231 if test "x$build_cpu_sse" = "xyes" ; then
1232 AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
1237 #######################################
1242 build_cpu_sse3="yes"
1245 build_cpu_sse3="yes"
1248 build_cpu_sse3="yes"
1251 AC_MSG_CHECKING(whether to build sse3 code)
1252 AC_ARG_ENABLE(cpu-sse3,
1253 AS_HELP_STRING([--enable-cpu-sse3], [enable sse3 code]),
1255 if test "x$enableval" = "xyes" ; then
1257 AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
1258 build_cpu_sse3="yes"
1265 AC_MSG_RESULT($build_cpu_sse3)
1266 if test "x$build_cpu_sse3" = "xyes" ; then
1267 AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
1273 # as a big warning flag to anyone doing stuff like this...
1274 # NEVER EVER EVER EVER put **OPTIMIZATION** flags in
1275 # build flags in makefiles (from configure or anywhere else)
1276 # EVER as this screws your ability to build 1 binary and
1277 # cover ALL x86 arch's. This is the HEIGHT of WRONG. If the
1278 # person building choses to add optimization flags themselves
1279 # and decide the minimum baseline cpu arch is X then that's
1280 # their business, but NEVER should it be done here. NEVER.
1281 # I now have to do this due to the way this sse3 code was done - using
1282 # intrinsics and "functions" (opcodes) and types that only compile *IF*
1283 # you compile with -msse3. this ALSO tries to optimize REGULAR c code
1284 # with sse3 asm.. and this breaks things so badly. so... sse3 will be
1285 # off until further notice for 32bit x86.
1286 EVAS_SSE3_CFLAGS=" "
1287 if test "x$build_cpu_sse3" = "xyes" ; then
1288 EVAS_SSE3_CFLAGS="-msse3 "
1289 # CFLAGS="${CFLAGS} ${EVAS_SSE3_CFLAGS}"
1293 AC_SUBST(EVAS_SSE3_CFLAGS)
1295 #######################################
1297 build_cpu_altivec="no"
1300 build_cpu_altivec="auto"
1304 AC_MSG_CHECKING(whether to build altivec code)
1305 AC_ARG_ENABLE(cpu-altivec,
1306 AC_HELP_STRING([--enable-cpu-altivec], [enable altivec code]),
1307 [ build_cpu_altivec=$enableval ],
1309 if test ! "x$build_cpu_altivec" = "xauto"; then
1310 build_cpu_altivec="no"
1314 AC_MSG_RESULT($build_cpu_altivec)
1316 if test "x$build_cpu_altivec" = "xyes"; then
1317 AC_CHECK_HEADER(altivec.h,
1319 AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1320 AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
1321 build_cpu_altivec="yes"
1325 save_CPPFLAGS=$CPPFLAGS
1326 CFLAGS=$CFLAGS" -maltivec"
1327 CPPFLAGS=$CPPFLAGS" -maltivec"
1328 unset ac_cv_header_altivec_h
1329 AC_CHECK_HEADER(altivec.h,
1331 AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1332 AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
1333 build_cpu_altivec="yes"
1336 if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then
1337 AC_MSG_ERROR(Altivec not found (strict dependencies checking))
1339 build_cpu_altivec="no"
1343 CPPFLAGS=$save_CPPFLAGS
1348 if test "x$build_cpu_altivec" = "xyes"; then
1349 AC_MSG_CHECKING(whether to use altivec compiler flag)
1350 if test "x$GCC" = "xyes"; then
1351 if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then
1352 altivec_cflags="-faltivec"
1353 AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1354 elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then
1355 altivec_cflags="-maltivec"
1356 AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1359 AC_MSG_RESULT($altivec_cflags)
1360 CFLAGS="$CFLAGS $altivec_cflags"
1363 #######################################
1368 build_cpu_neon="yes"
1371 AC_MSG_CHECKING(whether to build neon code)
1372 AC_ARG_ENABLE(cpu-neon,
1373 AC_HELP_STRING([--enable-cpu-neon], [build neon code, the code will be
1374 checked at run time to see if the CPU supports it]),
1376 if test "x$enableval" = "xyes" ; then
1378 [asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n")],
1381 AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])
1382 build_cpu_neon="yes"
1393 if test "x$build_cpu_neon" = "xyes" ; then
1394 AC_TRY_COMPILE([#include <arm_neon.h>],
1395 [asm volatile ("vqadd.u8 d0, d1, d0\n")],
1398 AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])
1399 build_cpu_neon="yes"
1408 #######################################
1411 AC_MSG_CHECKING(whether to build c code)
1412 AC_ARG_ENABLE(cpu-c,
1413 AC_HELP_STRING([--enable-cpu-c], [enable C code]),
1415 if test "x$enableval" = "xyes" ; then
1417 AC_DEFINE(BUILD_C, 1, [Build plain C code])
1424 AC_MSG_RESULT($build_cpu_c)
1425 if test "x$build_cpu_c" = "xyes" ; then
1426 AC_DEFINE(BUILD_C, 1, [Build plain C code])
1431 #######################################
1433 want_evas_magic_debug="yes"
1434 AC_MSG_CHECKING(whether to check magic for evas object)
1435 AC_ARG_ENABLE(evas-magic-debug,
1437 [--disable-evas-magic-debug],
1438 [disable MAGIC_DEBUG check when people pass in wrong object type. [[default=enabled]]]
1440 [ want_evas_magic_debug="$enableval" ]
1442 AC_MSG_RESULT($want_evas_magic_debug)
1444 AM_CONDITIONAL(EVAS_MAGIC_DEBUG, test "x$want_evas_magic_debug" = "xyes")
1445 if test "x$want_evas_magic_debug" = "xyes"; then
1446 AC_DEFINE(EVAS_MAGIC_DEBUG, 1, [complain when people pass in wrong object types etc.])
1450 #######################################
1452 want_word_cache="no"
1453 AC_MSG_CHECKING(whether to enable caching of rendered words)
1454 AC_ARG_ENABLE(word-cache,
1456 [--enable-word-cache],
1457 [Enable experimental word caching to speed up rendering [[default=disabled]]]
1459 [ want_word_cache="$enableval" ]
1461 AC_MSG_RESULT($want_word_cache)
1463 AM_CONDITIONAL(WORD_CACHE, test "x$want_word_cache" = "xyes")
1464 if test "x$want_word_cache" = "xyes"; then
1465 AC_DEFINE(WORD_CACHE, 1, [Experimental word caching to speed up text rendering.])
1468 #######################################
1470 want_metric_cache="no"
1471 AC_MSG_CHECKING(whether to enable caching of rendered metrics)
1472 AC_ARG_ENABLE(metric-cache,
1474 [--enable-metric-cache],
1475 [Enable experimental metric caching to speed up rendering [[default=disabled]]]
1477 [ want_metric_cache="$enableval" ]
1479 AC_MSG_RESULT($want_metric_cache)
1481 AM_CONDITIONAL(METRIC_CACHE, test "x$want_metric_cache" = "xyes")
1482 if test "x$want_metric_cache" = "xyes"; then
1483 AC_DEFINE(METRIC_CACHE, 1, [Experimental metric caching to speed up text rendering.])
1488 #####################################################################
1489 ## ARGB engine options
1491 #######################################
1492 ## Nearest sampling scaler
1493 EVAS_CHECK_SCALER([scale-sample], [sampling scaler], [scaler_sample="yes"], [scaler_sample="no"])
1494 ## Smooth super and sub sampling scaler
1495 EVAS_CHECK_SCALER([scale-smooth], [smooth scaler], [scaler_smooth="yes"], [scaler_smooth="no"])
1497 #######################################
1498 ## YUV -> ARGB converter
1501 AC_MSG_CHECKING(whether to build yuv converter code)
1502 AC_ARG_ENABLE(convert-yuv,
1503 AC_HELP_STRING([--enable-convert-yuv], [enable yuv converter code]),
1505 if test "x$enableval" = "xyes" ; then
1507 AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
1514 AC_MSG_RESULT($conv_yuv)
1515 if test "x$conv_yuv" = "xyes" ; then
1516 AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
1521 #####################################################################
1522 ## Output rendering features
1524 #######################################
1525 ## Small dither mask instead of big one (lower quality)
1526 EVAS_CHECK_DITHER([small-dither-mask], [small dither mask], [conv_small_dither="yes"], [conv_small_dither="no"])
1527 ## Alternate Line dither mask instead of big one (lower quality - but fastest)
1528 EVAS_CHECK_DITHER([line-dither-mask], [line dither mask], [conv_line_dither="yes"], [conv_line_dither="no"])
1529 ## No dither mask at all for 16bpp
1530 EVAS_CHECK_DITHER([no-dither-mask], [conversion to 16bpp without dither mask], [conv_no_dither="yes"], [conv_no_dither="no"])
1532 #######################################
1533 ## Convert to 8bpp RGB 332
1534 EVAS_CONVERT_COLOR(8, RGB, 332, [yes])
1535 ## Convert to 8bpp RGB 666
1536 EVAS_CONVERT_COLOR(8, RGB, 666, [yes])
1537 ## Convert to 8bpp RGB 232
1538 EVAS_CONVERT_COLOR(8, RGB, 232, [yes])
1539 ## Convert to 8bpp RGB 222
1540 EVAS_CONVERT_COLOR(8, RGB, 222, [yes])
1541 ## Convert to 8bpp RGB 221
1542 EVAS_CONVERT_COLOR(8, RGB, 221, [yes])
1543 ## Convert to 8bpp RGB 121
1544 EVAS_CONVERT_COLOR(8, RGB, 121, [yes])
1545 ## Convert to 8bpp RGB 111
1546 EVAS_CONVERT_COLOR(8, RGB, 111, [yes])
1547 ## Convert to 16bpp RGB 565
1548 EVAS_CONVERT_COLOR(16, RGB, 565)
1549 ## Convert to 16bpp BGR 565
1550 EVAS_CONVERT_COLOR(16, BGR, 565)
1551 ## Convert to 16bpp RGB 555
1552 EVAS_CONVERT_COLOR(16, RGB, 555)
1553 ## Convert to 16bpp RGB 444
1554 EVAS_CONVERT_COLOR(16, RGB, 444)
1556 #######################################
1557 ## Convert to 16bpp RGB 565 (444 ipaq)
1558 conv_16_rgb_ipq="yes"
1559 AC_MSG_CHECKING(whether to build 16bpp 565 (444 ipaq) converter code)
1560 AC_ARG_ENABLE(convert-16-rgb-ipq,
1561 AC_HELP_STRING([--disable-convert-16-rgb-ipq], [disable 16bpp 565 (444 ipaq) converter code]),
1563 if test "x$enableval" = "xyes" ; then
1564 AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
1565 conv_16_rgb_ipq="yes"
1567 conv_16_rgb_ipq="no"
1570 if test "x$conv_16_rgb_ipq" = "xyes" ; then
1571 AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
1575 AC_MSG_RESULT($conv_16_rgb_ipq)
1577 #######################################
1578 ## Convert to 16bpp RGB with rotation of 0
1579 EVAS_CONVERT_ROT(16, RGB, 0)
1580 ## Convert to 16bpp RGB with rotation of 180
1581 EVAS_CONVERT_ROT(16, RGB, 180)
1582 ## Convert to 16bpp RGB with rotation of 270
1583 EVAS_CONVERT_ROT(16, RGB, 270)
1584 ## Convert to 16bpp RGB with rotation of 90
1585 EVAS_CONVERT_ROT(16, RGB, 90)
1587 #######################################
1588 ## Convert to 24bpp RGB 888
1589 EVAS_CONVERT_COLOR(24, RGB, 888)
1590 ## Convert to 24bpp BGR 888
1591 EVAS_CONVERT_COLOR(24, BGR, 888)
1592 ## Convert to 32bpp RGB 8888
1593 EVAS_CONVERT_COLOR(32, RGB, 8888)
1594 ## Convert to 32bpp RGBX 8888
1595 EVAS_CONVERT_COLOR(32, RGBX, 8888)
1596 ## Convert to 32bpp BGR 8888
1597 EVAS_CONVERT_COLOR(32, BGR, 8888)
1598 ## Convert to 32bpp BGRX 8888
1599 EVAS_CONVERT_COLOR(32, BGRX, 8888)
1601 #######################################
1602 ## Convert to 24bpp RGB 666 (666 ezx)
1603 conv_24_rgb_ezx="yes"
1604 AC_MSG_CHECKING(whether to build 24bpp 666 (666 ezx) converter code)
1605 AC_ARG_ENABLE(convert-24-rgb-ezx,
1606 AC_HELP_STRING([--disable-convert-24-rgb-ezx], [disable 24bpp 666 (666 ezx) converter code]),
1608 if test "x$enableval" = "xyes" ; then
1609 AC_DEFINE(BUILD_CONVERT_24_RGB_666, 1, [24bpp 666 (666 ezx) Converter Support])
1610 conv_24_rgb_ezx="yes"
1612 conv_24_rgb_ezx="no"
1615 if test "x$conv_24_rgb_ezx" = "xyes" ; then
1616 AC_DEFINE(BUILD_CONVERT_24_RGB_666, 1, [24bpp 666 (666 ezx) Converter Support])
1620 AC_MSG_RESULT($conv_24_rgb_ezx)
1622 #######################################
1623 ## Convert to 32bpp RGB 666 (666 ezx)
1624 conv_32_rgb_ezx="yes"
1625 AC_MSG_CHECKING(whether to build 32bpp 666 (666 ezx) converter code)
1626 AC_ARG_ENABLE(convert-32-rgb-ezx,
1627 AC_HELP_STRING([--disable-convert-32-rgb-ezx], [disable 32bpp 666 (666 ezx) converter code]),
1629 if test "x$enableval" = "xyes" ; then
1630 AC_DEFINE(BUILD_CONVERT_32_RGB_666, 1, [32bpp 666 (666 ezx) Converter Support])
1631 conv_32_rgb_ezx="yes"
1633 conv_32_rgb_ezx="no"
1636 if test "x$conv_32_rgb_ezx" = "xyes" ; then
1637 AC_DEFINE(BUILD_CONVERT_32_RGB_666, 1, [32bpp 666 (666 ezx) Converter Support])
1641 AC_MSG_RESULT($conv_32_rgb_ezx)
1643 #######################################
1644 ## Convert to 32bpp RGB with rotation of 0
1645 EVAS_CONVERT_ROT(32, RGB, 0)
1646 ## Convert to 32bpp RGB with rotation of 180
1647 EVAS_CONVERT_ROT(32, RGB, 180)
1648 ## Convert to 32bpp RGB with rotation of 270
1649 EVAS_CONVERT_ROT(32, RGB, 270)
1650 ## Convert to 32bpp RGB with rotation of 90
1651 EVAS_CONVERT_ROT(32, RGB, 90)
1653 #######################################
1654 ## Convert to 8bpp grayscale with 256 value, no palette
1655 EVAS_CONVERT_COLOR(8, GRY, 1)
1656 ## Convert to 8bpp grayscale with 16 value, no palette
1657 EVAS_CONVERT_COLOR(8, GRY, 16)
1659 #######################################
1660 ## Convert to 8bpp grayscale, 64-palette
1661 conv_8_grayscale_64="yes"
1662 AC_MSG_CHECKING(whether to build 8bpp grayscale 64-palette converter code)
1663 AC_ARG_ENABLE(convert-8-grayscale-64,
1664 AC_HELP_STRING([--disable-convert-8-grayscale-64], [disable 8bpp grayscale 64-palette converter code]),
1666 if test "x$enableval" = "xyes"; then
1667 AC_DEFINE(BUILD_CONVERT_8_GRAYSCALE_64, 1, [8bpp Grayscale 64-palette Converter Support])
1668 conv_8_grayscale_64="yes"
1670 conv_8_grayscale_64="no"
1673 if test "x$conv_8_grayscale_64" = "xyes"; then
1674 AC_DEFINE(BUILD_CONVERT_8_GRAYSCALE_64, 1, [32bpp Grayscale 64-palette Converter Support])
1678 AC_MSG_RESULT($conv_8_grayscale_64)
1684 AC_MSG_CHECKING(whether to enable build with valgrind)
1685 AC_ARG_ENABLE(valgrind,
1686 AC_HELP_STRING([--enable-valgrind], [enable valgrind fixes to stop false reports]),
1687 [ want_valgrind=$enableval ]
1689 AC_MSG_RESULT($want_valgrind)
1691 if test x$want_valgrind = "xyes"; then
1692 PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
1694 AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
1696 requirement_evas="valgrind ${requirement_evas}"
1699 if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then
1700 AC_MSG_ERROR([Valgrind not found (strict dependencies checking)])
1708 install_examples="yes"
1709 AC_ARG_ENABLE([install-examples],
1710 AC_HELP_STRING([--disable-install-examples],
1711 [disable installing examples (compiled or just source).
1712 @<:@default==enabled@:>@]),
1714 if test "x${enableval}" = "xyes" ; then
1715 install_examples="yes"
1717 install_examples="no"
1720 [install_examples="yes"])
1721 AM_CONDITIONAL([INSTALL_EXAMPLES], [test "x${install_examples}" = "xyes"])
1724 AC_ARG_ENABLE([build-examples],
1725 AC_HELP_STRING([--enable-build-examples],
1726 [enable building examples (this requires extra denpendencies. if you don't have them installed yet, don't build with this option or it will fail. build again when you have it, overriding the previous installation). @<:@default==disabled@:>@]),
1728 if test "x${enableval}" = "xyes" ; then
1729 build_examples="yes"
1730 # put in here the dependencies for Evas' examples. they are
1731 # meant to be 'real world' usage examples, thus one will be
1732 # using higher level libraries on these programs
1733 PKG_CHECK_MODULES([ECORE_EVAS], [ecore-evas ecore], [], [build_examples="no"])
1734 PKG_CHECK_MODULES([EDJE], [edje],
1735 [edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc],
1736 [build_examples="no"])
1742 [build_examples="no"])
1743 AM_CONDITIONAL([BUILD_EXAMPLES], [test "x${build_examples}" = "xyes"])
1745 ## Unit tests, coverage
1747 EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
1749 EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"])
1750 EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS}"
1751 EVAS_LIBS="${EVAS_LIBS} ${EFL_COVERAGE_LIBS}"
1752 if test "x$enable_coverage" = "xyes" ; then
1753 EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_DEBUG_CFLAGS}"
1756 AC_SUBST(EVAS_CFLAGS)
1759 #####################################################################
1762 AC_SUBST(altivec_cflags)
1763 AC_SUBST(pthread_cflags)
1764 AC_SUBST(pthread_libs)
1765 AC_SUBST(requirement_evas)
1768 #####################################################################
1777 evas-opengl-cocoa.pc
1778 evas-software-buffer.pc
1779 evas-software-x11.pc
1780 evas-software-8-x11.pc
1781 evas-software-16-x11.pc
1782 evas-software-gdi.pc
1783 evas-software-ddraw.pc
1784 evas-software-16-ddraw.pc
1786 evas-software-16-wince.pc
1787 evas-software-sdl.pc
1795 src/lib/canvas/Makefile
1796 src/lib/file/Makefile
1797 src/lib/cache/Makefile
1798 src/lib/cserve/Makefile
1799 src/lib/engines/Makefile
1800 src/lib/engines/common/Makefile
1801 src/lib/engines/common/evas_op_add/Makefile
1802 src/lib/engines/common/evas_op_blend/Makefile
1803 src/lib/engines/common/evas_op_copy/Makefile
1804 src/lib/engines/common/evas_op_mask/Makefile
1805 src/lib/engines/common/evas_op_mul/Makefile
1806 src/lib/engines/common/evas_op_sub/Makefile
1807 src/lib/engines/common_8/Makefile
1808 src/lib/engines/common_16/Makefile
1809 src/modules/Makefile
1810 src/modules/engines/Makefile
1811 src/modules/engines/software_generic/Makefile
1812 src/modules/engines/software_gdi/Makefile
1813 src/modules/engines/software_ddraw/Makefile
1814 src/modules/engines/direct3d/Makefile
1815 src/modules/engines/software_16_wince/Makefile
1816 src/modules/engines/software_x11/Makefile
1817 src/modules/engines/fb/Makefile
1818 src/modules/engines/buffer/Makefile
1819 src/modules/engines/directfb/Makefile
1820 src/modules/engines/gl_common/Makefile
1821 src/modules/engines/gl_x11/Makefile
1822 src/modules/engines/gl_sdl/Makefile
1823 src/modules/engines/gl_cocoa/Makefile
1824 src/modules/engines/software_sdl/Makefile
1825 src/modules/engines/software_8/Makefile
1826 src/modules/engines/software_8_x11/Makefile
1827 src/modules/engines/software_16/Makefile
1828 src/modules/engines/software_16_x11/Makefile
1829 src/modules/engines/software_16_ddraw/Makefile
1830 src/modules/engines/software_16_sdl/Makefile
1831 src/modules/loaders/Makefile
1832 src/modules/loaders/edb/Makefile
1833 src/modules/loaders/eet/Makefile
1834 src/modules/loaders/gif/Makefile
1835 src/modules/loaders/jpeg/Makefile
1836 src/modules/loaders/png/Makefile
1837 src/modules/loaders/tiff/Makefile
1838 src/modules/loaders/xpm/Makefile
1839 src/modules/loaders/bmp/Makefile
1840 src/modules/loaders/ico/Makefile
1841 src/modules/loaders/tga/Makefile
1842 src/modules/loaders/svg/Makefile
1843 src/modules/loaders/pmaps/Makefile
1844 src/modules/loaders/wbmp/Makefile
1845 src/modules/loaders/psd/Makefile
1846 src/modules/loaders/generic/Makefile
1847 src/modules/savers/Makefile
1848 src/modules/savers/edb/Makefile
1849 src/modules/savers/eet/Makefile
1850 src/modules/savers/jpeg/Makefile
1851 src/modules/savers/png/Makefile
1852 src/modules/savers/tiff/Makefile
1853 src/static_deps/Makefile
1854 src/static_deps/liblinebreak/Makefile
1855 src/lib/include/Makefile
1856 src/examples/Makefile
1862 #####################################################################
1865 if test "x$build_pthreads" = "xno" ; then
1866 if test "x$build_async_render" = "xyes" ; then
1867 echo "ERROR: PThreads off, but async rendering on. Async rendering"
1868 echo " needs thread support."
1871 if test "x$build_pipe_render" = "xyes" ; then
1872 echo "ERROR: PThreads off, but pipe rendering on. Pipe rendering"
1873 echo " needs thread support."
1878 if test "x${has_pthreads}" = "xno" ; then
1879 if test "x$build_async_preload" = "xyes" ; then
1880 echo "ERROR: PThreads off, but Async Preload on. Async Preload"
1881 echo " needs thread support."
1886 #####################################################################
1892 echo "------------------------------------------------------------------------"
1893 echo "$PACKAGE $VERSION"
1894 echo "------------------------------------------------------------------------"
1896 echo "Configuration Options Summary:"
1899 echo " Software Memory Buffer.....: $have_evas_engine_buffer"
1900 echo " Software X11...............: $have_evas_engine_software_x11 (Xlib: $have_evas_engine_software_xlib) (XCB: $have_evas_engine_software_xcb)"
1901 echo $ECHO_N " OpenGL X11.................: $have_evas_engine_gl_x11 (Xlib: $have_evas_engine_gl_xlib) (XCB: $have_evas_engine_gl_xcb) $ECHO_C"
1902 if test "x$have_evas_engine_gl_x11" = "xyes"; then
1903 echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)"
1907 echo " Software GDI...............: $have_evas_engine_software_gdi"
1908 echo " Software DirectDraw........: $have_evas_engine_software_ddraw"
1909 echo " Direct3d...................: $have_evas_engine_direct3d"
1910 echo " Software SDL...............: $have_evas_engine_software_sdl (primitive: $sdl_primitive)"
1911 echo $ECHO_N " OpenGL SDL.................: $have_evas_engine_gl_sdl $ECHO_C"
1912 if test "x$have_evas_engine_gl_sdl" = "xyes"; then
1913 echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)"
1917 echo " OpenGL Cocoa...............: $have_evas_engine_gl_cocoa"
1918 echo " Software Framebuffer.......: $have_evas_engine_fb"
1919 echo " DirectFB...................: $have_evas_engine_directfb"
1920 echo " Software 8bit grayscale....: $have_evas_engine_software_8"
1921 # FIXME: kill software 16bit
1922 echo " Software 16bit ............: $have_evas_engine_software_16"
1923 echo " Software 16bit X11.........: $have_evas_engine_software_16_x11"
1924 echo " Software 16bit Directdraw..: $have_evas_engine_software_16_ddraw"
1925 echo " Software 16bit WinCE.......: $have_evas_engine_software_16_wince"
1926 echo " Software 16bit SDL.........: $have_evas_engine_software_16_sdl (primitive: $sdl_primitive)"
1928 echo "Image Loaders:"
1929 echo " BMP.....................: $have_evas_image_loader_bmp"
1930 echo " EDB.....................: $have_evas_image_loader_edb"
1931 echo " EET.....................: $have_evas_image_loader_eet"
1932 echo " GENERIC.................: $have_evas_image_loader_generic"
1933 echo " GIF.....................: $have_evas_image_loader_gif"
1934 echo " ICO.....................: $have_evas_image_loader_ico"
1935 echo " JPEG....................: $have_evas_image_loader_jpeg (region: $have_jpeg_region)"
1936 echo " PMAPS...................: $have_evas_image_loader_pmaps"
1937 echo " PNG.....................: $have_evas_image_loader_png"
1938 echo " PSD.....................: $have_evas_image_loader_psd"
1939 echo " SVG.....................: $have_evas_image_loader_svg"
1940 echo " TGA.....................: $have_evas_image_loader_tga"
1941 echo " TIFF....................: $have_evas_image_loader_tiff"
1942 echo " WBMP....................: $have_evas_image_loader_wbmp"
1943 echo " XPM.....................: $have_evas_image_loader_xpm"
1945 echo "Font Sourcing Systems:"
1946 echo " EET.....................: $have_evas_font_loader_eet"
1948 echo "Font Searching Systems:"
1949 echo " Fontconfig..............: $have_fontconfig"
1951 echo "Font Rendering Helpers:"
1952 echo " Fribidi.................: $have_fribidi"
1953 echo " Harfbuzz................: $have_harfbuzz"
1954 echo " liblinebreak............: $have_linebreak"
1955 # FIXME: add non freetype2 font engine support
1956 # FIXME: make freetype2 optional
1958 echo "CPU Specific Extensions:"
1959 echo " Fallback C Code.........: $build_cpu_c"
1960 echo " MMX.....................: $build_cpu_mmx"
1961 echo " SSE.....................: $build_cpu_sse"
1962 echo " SSE3....................: $build_cpu_sse3"
1963 echo " ALTIVEC.................: $build_cpu_altivec"
1964 echo " NEON....................: $build_cpu_neon"
1965 echo " Thread Support..........: $build_pthreads"
1968 echo " MAGIC_DEBUG.............: $want_evas_magic_debug"
1969 echo " Cache Server............: $want_evas_cserve"
1972 dnl ... DISABLED! some testing has shown that this seems to have some
1973 dnl nasty bugs on both x86 and arm (tegra2 dual core tested), so just
1974 dnl disabling this for now until it can be fixed
1976 echo " Threaded Pipe Rendering.: $build_pipe_render"
1977 echo " Async Pipe Rendering....: $build_async_render"
1978 echo " Async Events............: $build_async_events"
1979 echo " Async Image Preload.....: $build_async_preload"
1981 echo " Word Cache..............: $want_word_cache"
1982 echo " Metric Cache............: $want_metric_cache"
1984 echo "ARGB Software Engine Options:"
1985 echo " Sampling Scaler.........: $scaler_sample"
1986 echo " Smooth Scaler...........: $scaler_smooth"
1987 # FIXME: add an mmx scaler routine
1988 echo " YUV Converter...........: $conv_yuv"
1989 # FIXME: add more YUV format and colorvariant support
1991 echo "ARGB Conversion Options:"
1992 echo " Smaller Dither Mask.....: $conv_small_dither"
1993 echo " Line Dither Mask........: $conv_line_dither"
1994 echo " No Dither Mask for 16bpp: $conv_no_dither"
1995 echo " 8bpp RGB 332............: $conv_8_rgb_332"
1996 echo " 8bpp RGB 666............: $conv_8_rgb_666"
1997 echo " 8bpp RGB 232............: $conv_8_rgb_232"
1998 echo " 8bpp RGB 222............: $conv_8_rgb_222"
1999 echo " 8bpp RGB 221............: $conv_8_rgb_221"
2000 echo " 8bpp RGB 121............: $conv_8_rgb_121"
2001 echo " 8bpp RGB 111............: $conv_8_rgb_111"
2002 echo " 8bpp Grayscale (256)....: $conv_8_gry_1"
2003 echo " 8bpp Grayscale (16).....: $conv_8_gry_16"
2004 echo " 8bpp Grayscale 64-pal...: $conv_8_grayscale_64"
2005 # FIXME: add grayscale and B&W support to standard x converters
2006 echo " 16bpp RGB 565...........: $conv_16_rgb_565"
2007 echo " 16bpp BGR 565...........: $conv_16_bgr_565"
2008 echo " 16bpp RGB 555...........: $conv_16_rgb_555"
2009 echo " 16bpp RGB 444...........: $conv_16_rgb_444"
2010 echo " 16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq"
2011 # FIXME: add 555 (444 ipaq) support
2012 # FIXME: add 30bpp support
2013 # FIXME: add palletted support (ugh!)
2014 # FIXME: add 8bpp and below rotation
2015 echo " 16bpp Rotation 0........: $conv_16_rgb_rot_0"
2016 echo " 16bpp Rotation 90.......: $conv_16_rgb_rot_90"
2017 echo " 16bpp Rotation 180......: $conv_16_rgb_rot_180"
2018 echo " 16bpp Rotation 270......: $conv_16_rgb_rot_270"
2019 echo " 24bpp RGB 888...........: $conv_24_rgb_888"
2020 echo " 24bpp BGR 888...........: $conv_24_bgr_888"
2021 echo " 24bpp RGB 666 (666 ezx).: $conv_24_rgb_ezx"
2022 # FIXME: add 24bpp rotation
2023 echo " 32bpp RGB 8888..........: $conv_32_rgb_8888"
2024 echo " 32bpp RGBX 8888.........: $conv_32_rgbx_8888"
2025 echo " 32bpp BGR 8888..........: $conv_32_bgr_8888"
2026 echo " 32bpp BGRX 8888.........: $conv_32_bgrx_8888"
2027 echo " 32bpp RGB 666 (666 ezx).: $conv_32_rgb_ezx"
2028 echo " 32bpp Rotation 0........: $conv_32_rgb_rot_0"
2029 echo " 32bpp Rotation 90.......: $conv_32_rgb_rot_90"
2030 echo " 32bpp Rotation 180......: $conv_32_rgb_rot_180"
2031 echo " 32bpp Rotation 270......: $conv_32_rgb_rot_270"
2033 echo "Documentation.............: ${build_doc}"
2034 echo "Examples..................: install:${install_examples} build:${build_examples}"
2035 if test "x${enable_tests}" = "xyes" ; then
2036 echo "Tests.....................: ${enable_tests} (make check)"
2038 echo "Tests.....................: ${enable_tests}"
2040 if test "x${enable_coverage}" = "xyes" ; then
2041 echo "Coverage..................: ${enable_coverage} (make coverage)"
2043 echo "Coverage..................: ${enable_coverage}"
2046 echo "Compilation............: make (or gmake)"
2047 echo " CPPFLAGS.............: $CPPFLAGS"
2048 echo " CFLAGS...............: $CFLAGS"
2049 echo " CXXFLAGS.............: $CXXFLAGS"
2050 echo " LDFLAGS..............: $LDFLAGS"
2052 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
2053 echo " prefix...............: $prefix"
2055 if test "x${have_static_module}" = "xyes" ; then
2056 echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Evas."
2057 echo " You must know what you are doing, or else you will have a lot of"
2058 echo " problems. And Kenny will be killed."
2059 echo " Think about that."