Make evas quit barfing on gles11 and gles20
[profile/ivi/evas.git] / configure.in
1 # get rid of that stupid cache mechanism
2 rm -f config.cache
3
4 AC_INIT(evas, 0.9.9.043, enlightenment-devel@lists.sourceforge.net)
5 AC_PREREQ(2.52)
6 AC_CONFIG_SRCDIR(configure.in)
7 AC_CANONICAL_BUILD
8 AC_CANONICAL_HOST
9 AC_ISC_POSIX
10
11 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
12 AM_CONFIG_HEADER(config.h)
13
14 AC_PROG_CXX
15 AC_PROG_CC
16 AM_PROG_CC_STDC
17 AC_HEADER_STDC
18 AC_C_BIGENDIAN
19 AC_C_CONST
20
21 AC_LIBTOOL_WIN32_DLL
22 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
23 AC_PROG_LIBTOOL
24
25 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
26 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
27 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
28 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
29 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
30 AC_SUBST(version_info)
31
32 LT_PROG_RC
33 AC_FUNC_ALLOCA
34
35 MODULE_ARCH="$host_os-$host_cpu"
36 AC_SUBST(MODULE_ARCH)
37 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
38
39 PKG_PROG_PKG_CONFIG
40
41 WIN32_CFLAGS=""
42 lt_no_undefined=""
43 lt_enable_auto_import=""
44 case "$host_os" in
45         mingw*|cegcc*)
46                 PKG_CHECK_MODULES(EVIL, evil)
47                 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
48                 dnl needed for correct definition of EAPI
49                 AC_DEFINE(EFL_EVAS_BUILD, 1, [Define to mention that evas is built])
50                 if test "$host_os" = "cegcc" ; then
51                         WIN32_CFLAGS="-mwin32"
52                         lt_enable_auto_import="-Wl,--enable-auto-import"
53                 fi
54                 lt_no_undefined="-no-undefined"
55                 ;;
56 esac
57 AC_SUBST(WIN32_CFLAGS)
58 AC_SUBST(lt_no_undefined)
59 AC_SUBST(lt_enable_auto_import)
60
61 x_dir=""
62 x_cflags=""
63 x_libs=""
64 gl_dir=""
65 gl_cflags=""
66 gl_libs=""
67 qt_dir=""
68 qt_cflags=""
69 qt_libs=""
70 qt_moc="moc"
71
72 dnl when used, that option makes configure script fails when
73 dnl a requirement is selected, but not met.
74 AC_ARG_ENABLE(strict,
75   AC_HELP_STRING(
76     [enable strict mode]),
77   [use_strict="yes"],
78   [use_strict="no"]
79 )
80
81
82 #####################################################################
83
84 # blah-config style checks
85 # qtdir setting
86 AC_ARG_WITH(qtdir,
87 AC_HELP_STRING([--with-qtdir=QT_DIR], [use qt directory specified]),
88 [
89   qt_dir=$withval;
90   echo "using "$qt_dir" for qt directory.";
91 ], [
92   qt_dir="/opt/Qtopia";
93 ])
94
95 # check for freetype
96 PKG_CHECK_MODULES(FREETYPE, freetype2 >= 9.3.0)
97
98 #######################################
99 ## Simple X11 build/link
100
101 AC_ARG_ENABLE(simple-x11,
102   AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
103   [ want_evas_simple_x11=$enableval ]
104 )
105
106 #######################################
107 ## FontConfig
108
109 want_fontconfig="auto"
110 have_fontconfig="no"
111 AC_ARG_ENABLE(fontconfig,
112   AC_HELP_STRING(
113     [--disable-fontconfig],
114     [disable fontconfig for finding fonts. [[default=enabled]]]
115   ),
116   [ want_fontconfig=$enableval ]
117 )
118
119 if test "x$want_fontconfig" = "xyes" -o "x$want_fontconfig" = "xauto" ; then
120   # Check if really available
121   PKG_CHECK_MODULES(FONTCONFIG, fontconfig,
122     [
123       have_fontconfig="yes"
124       AC_DEFINE(HAVE_FONTCONFIG, 1, [have fontconfig searching capabilities])
125     ],
126     [
127       if test "x$want_fontconfig" = "xyes" -a "x$use_strict" = "xyes" ; then
128         AC_MSG_ERROR([Fontconfig not found (strict dependencies checking)])
129       fi
130     ])
131 fi
132
133 ###############
134 ## dlopen
135
136 dlopen_libs=""
137 case "$host_os" in
138   mingw32ce*|cegcc*)
139 dnl managed by evil
140     AC_DEFINE(HAVE_DLADDR)
141   ;;
142   mingw*)
143 dnl nothing on mingw platform
144   ;;
145   *)
146     AC_CHECK_FUNCS(dlopen, res=yes, res=no)
147     if test "x$res" = "xyes"; then
148       AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
149     else
150       AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
151       if test "x$res" = "xyes"; then
152         AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
153         dlopen_libs=-ldl
154       else
155         AC_MSG_ERROR(Cannot find dlopen)
156       fi
157     fi
158 esac
159 AC_SUBST(dlopen_libs)
160
161 AC_CHECK_HEADER(fnmatch.h, , AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file. MinGW users: see the INSTALL file]))
162
163 fnmatch_libs=""
164 AC_CHECK_FUNCS(fnmatch, res=yes, res=no)
165 if test "x$res" = "xno"; then
166   AC_CHECK_LIB(fnmatch, fnmatch, res=yes fnmatch_libs="-lfnmatch", res=no)
167   dnl Test for compilation with MinGW.
168   dnl fnmatch function is in the libiberty library
169   if test "x$res" = "xno"; then
170     AC_CHECK_LIB(iberty, fnmatch, res=yes fnmatch_libs="-liberty", res=no)
171   fi
172   if test "x$res" = "xno"; then
173     AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty])
174   fi
175 fi
176
177 AC_SUBST(fnmatch_libs)
178
179 #####################################################################
180 ## Engines
181
182 #######################################
183 ## Check if we should build the software_ddraw engine
184 want_evas_software_ddraw="auto";
185 have_evas_software_ddraw="no";
186
187 AC_MSG_CHECKING(whether software directdraw backend is to be built)
188 AC_ARG_ENABLE(software-ddraw,
189   AC_HELP_STRING([--enable-software-ddraw], [enable the Software DirectDraw rendering backend]),
190   [ want_evas_software_ddraw=$enableval ]
191 )
192 AC_MSG_RESULT($want_evas_software_ddraw)
193
194 if test "x$want_evas_software_ddraw" = "xyes" -o "x$want_evas_software_ddraw" = "xauto" ; then
195   AC_CHECK_HEADER(ddraw.h,
196     [
197       have_evas_software_ddraw="yes"
198       AC_DEFINE(BUILD_ENGINE_SOFTWARE_DDRAW, 1, [Software DirectDraw Rendering Backend])
199       ddraw_libs="-lddraw"
200     ],
201     [
202       if test "x$want_evas_software_ddraw"  = "xyes" -a "x$use_strict" = "xyes" ; then
203         AC_MSG_ERROR([DirectDraw not found (strict dependencies checking)])
204       fi
205     ]
206   )
207 fi
208 AC_MSG_CHECKING(whether software directdraw backend will be built)
209 AC_MSG_RESULT($have_evas_software_ddraw)
210 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_DDRAW, test "x$have_evas_software_ddraw" = "xyes")
211
212 #######################################
213 ## Check if we should build the 16bit software_ddraw engine
214 want_evas_software_16_ddraw="auto";
215 have_evas_software_16_ddraw="no";
216
217 AC_MSG_CHECKING(whether 16 bit software directdraw backend is to be built)
218 AC_ARG_ENABLE(software-16-ddraw,
219   AC_HELP_STRING([--enable-software-16-ddraw], [enable the 16bit Software DirectDraw rendering backend]),
220   [ want_evas_software_16_ddraw=$enableval ]
221 )
222 AC_MSG_RESULT($want_evas_software_16_ddraw)
223
224 if test "x$want_evas_software_16_ddraw" = "xyes" -o "x$want_evas_software_16_ddraw" = "xauto"; then
225   AC_CHECK_HEADER(ddraw.h,
226     [
227       AC_DEFINE(BUILD_ENGINE_SOFTWARE_16_DDRAW, 1, [16bit Software DirectDraw Rendering Backend])
228       ddraw_16_libs="-lddraw -lgdi32"
229       have_evas_software_16_ddraw="yes"
230     ],
231     [
232       if test "x$want_evas_software_16_ddraw"  = "xyes" -a "x$use_strict" = "xyes" ; then
233         AC_MSG_ERROR([DirectDraw not found (strict dependencies checking)])
234       fi
235     ]
236   )
237 fi
238 AC_MSG_CHECKING(whether 16 bits software directdraw backend will be built)
239 AC_MSG_RESULT($have_evas_software_16_ddraw)
240 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16_DDRAW, test "x$have_evas_software_16_ddraw" = "xyes")
241
242
243 #######################################
244 ## Check if we should build the direct3d engine
245 want_evas_direct3d="auto";
246 have_evas_direct3d="no";
247
248 AC_MSG_CHECKING(whether direct3d backend is to be built)
249 AC_ARG_ENABLE(direct3d,
250   AC_HELP_STRING([--enable-direct3d], [enable the Direct3D rendering backend]),
251   [ want_evas_direct3d=$enableval ]
252 )
253 AC_MSG_RESULT($want_evas_direct3d)
254
255 if test "x$want_evas_direct3d" = "xyes"; then
256   AC_CHECK_HEADERS(d3d9.h d3dx9.h,
257     [
258       AC_DEFINE(BUILD_ENGINE_DIRECT3D, 1, [Direct3D Rendering Backend])
259       direct3d_libs="-ld3d9 -ld3dx9d"
260       have_evas_direct3d="yes"
261     ],
262     [
263       if test "x$want_evas_direct3d"  = "xyes" -a "x$use_strict" = "xyes" ; then
264         AC_MSG_ERROR([Direct3D not found (strict dependencies checking)])
265       fi
266     ]
267   )
268 fi
269 AC_MSG_CHECKING(whether direct3d backend will be built)
270 AC_MSG_RESULT($have_evas_direct3d)
271 AM_CONDITIONAL(BUILD_ENGINE_DIRECT3D, test "x$have_evas_direct3d" = "xyes")
272
273
274 #######################################
275 ## Check if we should build the 16bit software_wince engine
276 want_evas_software_16_wince="auto";
277 have_evas_software_16_wince="no";
278
279 AC_MSG_CHECKING(whether 16 bit software WinCE backend is to be built)
280 AC_ARG_ENABLE(software-16-wince,
281   AC_HELP_STRING([--enable-software-16-wince], [enable the 16bit Software WinCE rendering backend]),
282   [ want_evas_software_16_wince=$enableval ]
283 )
284 AC_MSG_RESULT($want_evas_software_16_wince)
285
286 if test "x$want_evas_software_16_wince" = "xyes" -o "x$want_evas_software_16_wince" = "xauto"; then
287   AC_CHECK_HEADER(windows.h,
288     [
289       AC_DEFINE(BUILD_ENGINE_SOFTWARE_16_WINCE, 1, [16bit Software WinCE Rendering Backend])
290       wince_16_libs=""
291       have_evas_software_16_wince="yes"
292     ],
293     [
294       if test "x$want_evas_software_16_wince"  = "xyes" -a "x$use_strict" = "xyes" ; then
295         AC_MSG_ERROR([WinCE not found (strict dependencies checking)])
296       fi
297     ]
298   )
299 fi
300 AC_MSG_CHECKING(whether 16 bits software WinCE backend will be built)
301 AC_MSG_RESULT($have_evas_software_16_wince)
302 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16_WINCE, test "x$have_evas_software_16_wince" = "xyes")
303
304
305 #######################################
306 ## Check if we should build the software_x11 engine
307 want_evas_software_x11="auto";
308 have_evas_software_x11="no";
309
310 AC_MSG_CHECKING(whether software x11 backend is to be built)
311 AC_ARG_ENABLE(software-x11,
312   AC_HELP_STRING([--disable-software-x11], [disable the Software X11 rendering backend]),
313   [ want_evas_software_x11=$enableval ]
314 )
315 AC_MSG_RESULT($want_evas_software_x11)
316
317 if test "x$want_evas_software_x11" = "xyes" -o "x$want_evas_software_x11" = "xauto"; then
318   AC_PATH_X
319   AC_PATH_XTRA
320   AC_CHECK_HEADER(X11/X.h,
321     [
322       AC_DEFINE(BUILD_ENGINE_SOFTWARE_X11, 1, [Software X11 Rendering Backend])
323       if test "x$want_evas_simple_x11" = "xyes"; then
324         x_libs="${x_libs} -lX11 -lXext"
325       else      
326         x_dir=${x_dir:-/usr/X11R6}
327         x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
328         x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
329       fi
330       have_evas_software_x11="yes"
331     ],
332     [
333       if test "x$want_evas_software_x11" = "xyes" -a "x$use_strict" = "xyes" ; then
334         AC_MSG_ERROR([X11 not found (strict dependencies checking)])
335       fi
336     ]
337   )
338 fi
339 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, test "x$have_evas_software_x11" = "xyes")
340
341 #######################################
342 ## Check if we should build the software_x11 16bit engine
343 want_evas_software_16_x11="no";
344 have_evas_software_16_x11="no";
345
346 AC_MSG_CHECKING(whether software 16bit x11 backend is to be built)
347 AC_ARG_ENABLE(software-16-x11,
348   AC_HELP_STRING([--enable-software-16-x11], [enable the Software 16bit X11 rendering backend]),
349   [ want_evas_software_16_x11=$enableval ]
350 )
351 AC_MSG_RESULT($want_evas_software_16_x11)
352
353 if test "x$want_evas_software_16_x11" = "xyes"; then
354   AC_PATH_X
355   AC_PATH_XTRA
356   AC_CHECK_HEADER(X11/X.h,
357     [
358       AC_DEFINE(BUILD_ENGINE_SOFTWARE_16_X11, 1, [Software 16bit X11 Rendering Backend])
359       if test "x$want_evas_simple_x11" = "xyes"; then
360         x_libs="${x_libs} -lX11 -lXext"
361       else      
362         x_dir=${x_dir:-/usr/X11R6}
363         x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
364         x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
365       fi
366       have_evas_software_16_x11="yes"
367     ],
368     [
369       if test "x$want_evas_sofware_16_x11" = "xyes" -a "x$use_strict" = "xyes" ; then
370         AC_MSG_ERROR([X11 not found (strict dependencies checking)])
371       fi
372     ]
373   )
374 fi
375 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16_X11, test "x$have_evas_software_16_x11" = "xyes")
376
377 #######################################
378 ## Check if we should build the software_xcb engine
379 want_evas_software_xcb="no";
380 have_evas_software_xcb="no";
381
382 AC_MSG_CHECKING(whether software xcb backend is to be built)
383 AC_ARG_ENABLE(software-xcb,
384   AC_HELP_STRING([--enable-software-xcb], [enable the Software XCB rendering backend]),
385   [ want_evas_software_xcb=$enableval ]
386 )
387 AC_MSG_RESULT($want_evas_software_xcb)
388
389 if test "x$want_evas_software_xcb" = "xyes"; then
390   PKG_CHECK_MODULES(
391     XCB,
392     xcb xcb-shm xcb-image pixman-1,
393     [
394       AC_DEFINE(BUILD_ENGINE_SOFTWARE_XCB, 1, [Software XCB Rendering Backend])
395       have_evas_software_xcb="yes"
396     ],
397     [
398       if test "x$want_evas_software_xcb" = "xyes" -a "x$use_strict" = "xyes" ; then
399         AC_MSG_ERROR([XCB not found (strict dependencies checking)])
400       fi
401     ]
402   )
403 fi
404 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_XCB, test "x$have_evas_software_xcb" = "xyes")
405
406 #######################################
407 ## Check if we should build the directfb engine
408 #want_evas_directfb="no";
409 #have_evas_directfb="no";
410 #
411 #AC_MSG_CHECKING(whether directfb backend is to be built)
412 #AC_ARG_ENABLE(directfb,
413 #  AC_HELP_STRING([--enable-directfb], [enable the DirectFB rendering backend]),
414 #  [ want_evas_directfb=$enableval ]
415 #)
416 #AC_MSG_RESULT($want_evas_directfb)
417 #
418 #if test "x$want_evas_directfb" = "xyes"; then
419 #  PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.16,
420 #    [
421 #      AC_DEFINE(BUILD_ENGINE_DIRECTFB, 1, [DirectFB Rendering Backend])
422 #      have_evas_directfb="yes"
423 #    ],
424 #    [
425 #      if test "x$want_evas_directfb" = "xyes" -a "x$use_strict" = "xyes" ; then
426 #        AC_MSG_ERROR([DirectFB not found (strict dependencies checking)])
427 #      fi
428 #    ]
429 #  )
430 #fi
431 #AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, test "x$have_evas_directfb" = "xyes")
432
433 #######################################
434 ## Check if we should build the sdl engine
435 want_evas_sdl="no";
436 have_evas_sdl="no";
437 ENGINE_SDL_PRG="";
438
439 AC_MSG_CHECKING(whether SDL backend is to be built)
440 AC_ARG_ENABLE(sdl,
441   AC_HELP_STRING([--enable-sdl], [enable the SDL rendering backend]),
442   [ want_evas_sdl=$enableval ]
443 )
444 AC_MSG_RESULT($want_evas_sdl)
445
446 if test "x$want_evas_sdl" = "xyes"; then
447   PKG_CHECK_MODULES(SDL, sdl >= 1.2.0,
448     [
449       have_evas_sdl="yes"
450       ENGINE_SDL_PRG="evas_sdl_test"
451       AC_DEFINE(BUILD_ENGINE_SDL, 1, [SDL Rendering Backend])
452     ],
453     [
454       if test "x$want_evas_sdl" = "xyes" -a "x$use_strict" = "xyes" ; then
455         AC_MSG_ERROR([Sdl not found (strict dependencies checking)])
456       fi
457     ]
458   )
459 fi
460 AM_CONDITIONAL(BUILD_ENGINE_SDL, test "x$have_evas_sdl" = "xyes")
461
462 ## Check if we want to use some SDL primitive
463 sdl_primitive="no";
464
465 AC_MSG_CHECKING(whether to use SDL primitive when possible)
466 AC_ARG_ENABLE(sdl-primitive,
467   AC_HELP_STRING([--enable-sdl-primitive], []),
468   [ sdl_primitive=$enableval ]
469 )
470 AC_MSG_RESULT($sdl_primitive)
471
472 if test "x$sdl_primitive" = "xyes"; then
473   AC_DEFINE(ENGINE_SDL_PRIMITIVE, 1, [Use SDL primitive when possible])
474 fi
475
476 #######################################
477 ## Check if we should build the fb engine
478 want_evas_fb="no";
479 have_evas_fb="no";
480
481 AC_MSG_CHECKING(whether fb backend is to be built)
482 AC_ARG_ENABLE(fb,
483   AC_HELP_STRING([--enable-fb], [enable the FB rendering backend]),
484   [ want_evas_fb=$enableval ]
485 )
486 AC_MSG_RESULT($want_evas_fb)
487
488 if test "x$want_evas_fb" = "xyes"; then
489   AC_CHECK_HEADER(linux/fb.h,
490     [
491       AC_DEFINE(BUILD_ENGINE_FB, 1, [Linux FB Rendering Backend])
492       have_evas_fb="yes"
493     ],
494     [
495       if test "x$want_evas_fb" = "xyes" -a "x$use_strict" = "xyes" ; then
496         AC_MSG_ERROR([FB not found (strict dependencies checking)])
497       fi
498     ]
499   )
500 fi
501 AM_CONDITIONAL(BUILD_ENGINE_FB, test "x$have_evas_fb" = "xyes")
502
503 #######################################
504 ## Check if we should build the buffer engine
505 want_evas_buffer="yes"
506 have_evas_buffer="no"
507
508 AC_MSG_CHECKING(whether buffer backend is to be built)
509 AC_ARG_ENABLE(buffer,
510   AC_HELP_STRING([--disable-buffer], [disable the Buffer rendering backend]),
511   [ want_evas_buffer=$enableval ]
512 )
513 AC_MSG_RESULT($want_evas_buffer)
514
515 if test "x$want_evas_buffer" = "xyes"; then
516   AC_DEFINE(BUILD_ENGINE_BUFFER, 1, [Buffer Rendering Backend])
517   have_evas_buffer="yes"
518 fi
519 AM_CONDITIONAL(BUILD_ENGINE_BUFFER, test "x$have_evas_buffer" = "xyes")
520
521 #######################################
522 ## Check if we should build the software_qtopia engine
523 want_evas_qtopia="no";
524 have_evas_qtopia="no";
525
526 AC_MSG_CHECKING(whether software qtopia backend is to be built)
527 AC_ARG_ENABLE(software-qtopia,
528   AC_HELP_STRING([--enable-software-qtopia], [enable the Software Qtopia rendering backend]),
529   [ want_evas_qtopia=$enableval ]
530 )
531 AC_MSG_RESULT($want_evas_qtopia)
532
533 if test "x$want_evas_qtopia" = "xyes"; then
534   AC_LANG_PUSH(C++)
535   AC_CHECK_HEADER(qdirectpainter_qws.h,
536     [
537       AC_DEFINE(BUILD_ENGINE_SOFTWARE_QTOPIA, 1, [Qtopia Rendering Backend])
538       qt_cflags="-fno-exceptions -fno-rtti -I"$qt_dir"/include"
539       qt_libs="-L"$qt_dir"/lib -lqte -lqpe"
540       qt_moc=$qt_dir"/bin/moc"
541       have_evas_qtopia="yes"
542     ],
543     [
544       if test "x$want_evas_qtopia" = "xyes" -a "x$use_strict" = "xyes" ; then
545         AC_MSG_ERROR([Qtopia not found (strict dependencies checking)])
546       fi
547     ],
548     [
549       #include <qwidget.h>
550       #include <qnamespace.h>
551       #include <qbrush.h>
552       #include <qpainter.h>
553     ]
554   )
555   AC_LANG_POP(C++)
556 fi
557 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, test "x$have_evas_qtopia" = "xyes")
558
559 #######################################
560 ## Check if we should build the gl_x11 engine
561 want_evas_gl_x11="no";
562 have_evas_gl_x11="no";
563
564 AC_MSG_CHECKING(whether gl x11 backend is to be built)
565 AC_ARG_ENABLE(gl-x11,
566   AC_HELP_STRING([--enable-gl-x11], [enable the OpenGL X11 display engine]),
567   [ want_evas_gl_x11=$enableval ]
568 )
569 AC_MSG_RESULT($want_evas_gl_x11)
570
571 if test "x$want_evas_gl_x11" = "xyes"; then
572   AC_PATH_X
573   AC_PATH_XTRA
574   AC_CHECK_HEADERS(GL/gl.h GL/glu.h X11/X.h,
575     [
576       AC_DEFINE(BUILD_ENGINE_GL_X11, 1, [OpenGL X11 Rendering Backend])
577       if test "x$want_evas_simple_x11" = "xyes"; then
578         x_libs="${x_libs} -lX11 -lXext"
579       else      
580         x_dir=${x_dir:-/usr/X11R6}
581         x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
582         x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
583         gl_cflags="-I/usr/include"
584       fi
585       gl_libs="-lGL -lGLU -lpthread"
586       gl_dir=""
587       have_evas_gl_x11="yes"
588     ],
589     [
590       if test "x$want_evas_gl_x11" = "xyes" -a "x$use_strict" = "xyes" ; then
591         AC_MSG_ERROR([OpenGL X11 not found (strict dependencies checking)])
592       fi
593     ]
594   )
595 fi
596 AM_CONDITIONAL(BUILD_ENGINE_GL_X11, test "x$have_evas_gl_x11" = "xyes")
597
598 #######################################
599 ## Check if we should build the gl_glew engine
600 want_evas_gl_glew="no";
601 have_evas_gl_glew="no";
602
603 AC_MSG_CHECKING(whether gl glew backend is to be built)
604 AC_ARG_ENABLE(gl-glew,
605   AC_HELP_STRING([--enable-gl-glew], [enable the OpenGL Glew display engine]),
606   [ want_evas_gl_glew=$enableval ]
607 )
608 AC_MSG_RESULT($want_evas_gl_glew)
609
610 if test "x$want_evas_gl_glew" = "xyes" -o "x$want_evas_gl_glew" = "xauto"; then
611   AC_CHECK_HEADERS(GL/gl.h GL/glu.h GL/glew.h,
612     [
613       AC_DEFINE(BUILD_ENGINE_GL_GLEW, 1, [OpenGL Glew Rendering Backend])
614       glew_libs="-lglew32 -lopengl32 -lgdi32"
615       gl_libs="-lglu32"
616       have_evas_gl_glew="yes"
617     ],
618     [
619       if test "x$want_evas_gl_glew" = "xyes" -a "x$use_strict" = "xyes" ; then
620         AC_MSG_ERROR([OpenGL Glew not found (strict dependencies checking)])
621       fi
622     ]
623   )
624 fi
625 AC_MSG_CHECKING(whether gl glew backend will be built)
626 AC_MSG_RESULT($have_evas_gl_glew)
627 AM_CONDITIONAL(BUILD_ENGINE_GL_GLEW, test "x$have_evas_gl_glew" = "xyes")
628
629 # common gl
630 have_evas_gl_common="no"
631 if test "x$have_evas_gl_x11" = "xyes" -o "x$have_evas_gl_glew" = "xyes"; then
632   AC_DEFINE(BUILD_ENGINE_GL_COMMON, 1, [Generic OpenGL Rendering Support])
633   have_evas_gl_common="yes"
634 fi
635 AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, test "x$have_evas_gl_common" = "xyes")
636
637 #######################################
638 ## Check if we should build the cairo_x11 engine
639 have_evas_cairo_common="no";
640 want_evas_cairo_x11="no";
641 have_evas_cairo_x11="no";
642
643 #AC_MSG_CHECKING(whether cairo x11 backend is to be built)
644 #AC_ARG_ENABLE(cairo-x11,
645 #  AC_HELP_STRING([--enable-cairo-x11], [enable the Cairo X11 display engine]),
646 #  [ want_evas_cairo_x11=$enableval ]
647 #)
648 #AC_MSG_RESULT($want_evas_cairo_x11)
649
650 if test "x$want_evas_cairo_x11" = "xyes"; then
651   PKG_CHECK_MODULES(CAIRO, cairo >= 1.0.0,
652     [
653       have_evas_cairo_common="yes"
654       AC_CHECK_HEADER(X11/X.h,
655         [
656           AC_DEFINE(BUILD_ENGINE_CAIRO_X11, 1, [Cairo X11 Rendering Backend])
657           AC_DEFINE(BUILD_ENGINE_CAIRO_COMMON, 1, [Generic Cairo Rendering Support])
658           if test "x$want_evas_simple_x11" = "xyes"; then
659             x_libs="${x_libs} -lX11 -lXext"
660           else      
661             x_dir=${x_dir:-/usr/X11R6}
662             x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
663             x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
664           fi
665           have_evas_cairo_x11="yes"
666         ], [
667           have_evas_cairo_common="no"
668           have_evas_cairo_x11="no"
669         ]
670       )
671     ],
672     [
673       have_evas_cairo_common="no"
674       have_evas_cairo_x11="no"
675     ]
676   )
677 fi
678 AM_CONDITIONAL(BUILD_ENGINE_CAIRO_X11, test "x$have_evas_cairo_x11" = "xyes")
679 AM_CONDITIONAL(BUILD_ENGINE_CAIRO_COMMON, test "x$have_evas_cairo_common" = "xyes")
680
681 #######################################
682 ## Check if we should build the xrender_x11 engine
683 want_evas_xrender_x11="auto";
684 have_evas_xrender_x11="no";
685
686 AC_MSG_CHECKING(whether xrender x11 backend is to be built)
687 AC_ARG_ENABLE(xrender-x11,
688   AC_HELP_STRING([--disable-xrender-x11], [disable the XRender X11 rendering backend]),
689   [ want_evas_xrender_x11=$enableval ]
690 )
691 AC_MSG_RESULT($want_evas_xrender_x11)
692
693 if test "x$want_evas_xrender_x11" = "xyes" -o "x$want_evas_xrender_x11" = "xauto"; then
694   AC_PATH_X
695   AC_PATH_XTRA
696   AC_CHECK_HEADERS(X11/X.h X11/extensions/Xrender.h,
697     [
698       AC_DEFINE(BUILD_ENGINE_XRENDER_X11, 1, [XRender X11 Rendering Backend])
699       if test "x$want_evas_simple_x11" = "xyes"; then
700         x_libs="${x_libs} -lX11 -lXext"
701       else      
702         x_dir=${x_dir:-/usr/X11R6}
703         x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
704         x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
705       fi
706       have_evas_xrender_x11="yes"
707     ],
708     [
709       if test "x$want_evas_xrender_x11" = "xyes" -a "x$use_strict" = "xyes" ; then
710         AC_MSG_ERROR([XRender X11 not found (strict dependencies checking)])
711       fi
712     ]
713   )
714 fi
715 AM_CONDITIONAL(BUILD_ENGINE_XRENDER_X11, test "x$have_evas_xrender_x11" = "xyes")
716
717 #######################################
718 ## Check if we should build the xrender_xcb engine
719 want_evas_xrender_xcb="no";
720 have_evas_xrender_xcb="no";
721
722 AC_MSG_CHECKING(whether xrender xcb backend is to be built)
723 AC_ARG_ENABLE(xrender-xcb,
724   AC_HELP_STRING([--enable-xrender-xcb], [enable the Xrender XCB rendering backend]),
725   [ want_evas_xrender_xcb=$enableval ]
726 )
727 AC_MSG_RESULT($want_evas_xrender_xcb)
728
729 if test "x$want_evas_xrender_xcb" = "xyes"; then
730   PKG_CHECK_MODULES(
731     XCBRENDER,
732     xcb xcb-shm xcb-render xcb-image,
733     [
734       AC_DEFINE(BUILD_ENGINE_XRENDER_XCB, 1, [Xrender XCB Rendering Backend])
735       have_evas_xrender_xcb="yes"
736     ],
737     [
738       if test "x$want_evas_xrender_xcb" = "xyes" -a "x$use_strict" = "xyes" ; then
739         AC_MSG_ERROR([XRender XCB not found (strict dependencies checking)])
740       fi
741     ]
742   )
743 fi
744 AM_CONDITIONAL(BUILD_ENGINE_XRENDER_XCB, test "x$have_evas_xrender_xcb" = "xyes")
745
746 #######################################
747 ## Check if we should build the glitz_x11 engine
748 want_evas_glitz_x11="no";
749 have_evas_glitz_x11="no";
750
751 AC_MSG_CHECKING(whether glitz x11 backend is to be built)
752 AC_ARG_ENABLE(glitz-x11,
753   AC_HELP_STRING([--enable-glitz-x11], [enable the Glitz X11 rendering backend]),
754   [ want_evas_glitz_x11=$enableval ]
755 )
756 AC_MSG_RESULT($want_evas_glitz_x11)
757
758 if test "x$want_evas_glitz_x11" = "xyes"; then
759   AC_PATH_X
760   AC_PATH_XTRA
761   AC_CHECK_HEADER(X11/X.h,
762     [
763       PKG_CHECK_MODULES(GLITZ, glitz glitz-glx,
764         [
765           if test "x$want_evas_simple_x11" = "xyes"; then
766             x_libs="${x_libs} -lX11 -lXext"
767           else      
768             x_dir=${x_dir:-/usr/X11R6}
769             x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
770             x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
771           fi
772           AC_DEFINE(BUILD_ENGINE_GLITZ_X11, 1, [Glitz X11 Rendering Backend])
773           have_evas_glitz_x11="yes"
774         ],
775         [
776           if test "x$want_evas_glitz_gl_x11" = "xyes" -a "x$use_strict" = "xyes" ; then
777             AC_MSG_ERROR([Glitz X11 not found (strict dependencies checking)])
778           fi
779         ]
780       )
781     ],
782     [
783       if test "x$want_evas_glitz_gl_x11" = "xyes" -a "x$use_strict" = "xyes" ; then
784         AC_MSG_ERROR([Glitz X11 not found (strict dependencies checking)])
785       fi
786     ]
787   )
788 fi
789 AM_CONDITIONAL(BUILD_ENGINE_GLITZ_X11, test "x$have_evas_glitz_x11" = "xyes")
790
791 #####################################################################
792 ## Image loaders
793
794 #######################################
795 ## GIF
796 want_gif="auto";
797 have_gif="no";
798
799 AC_MSG_CHECKING(whether to enable gif image loader)
800 AC_ARG_ENABLE(image-loader-gif,
801   AC_HELP_STRING([--disable-image-loader-gif], [disable GIF image loader]),
802   [ want_gif=$enableval ]
803 )
804 AC_MSG_RESULT($want_gif)
805
806 if test "x$want_gif" = "xyes" -o "x$want_gif" = "xauto"; then
807   AC_CHECK_HEADER(gif_lib.h,
808     [
809       AC_CHECK_LIB(gif, DGifOpenFileName,
810         [
811           gif_libs="-lgif"
812           have_gif="yes"
813         ],
814         [
815           AC_CHECK_LIB(ungif, DGifOpenFileName,
816             [
817               gif_libs="-lungif"
818               have_gif="yes"
819             ],
820             [ have_gif="no" ]
821           )
822         ]
823      )
824     ],
825     [ have_gif="no" ]
826   )
827 fi
828
829 if test "x$have_gif" = "xyes"; then
830   AC_DEFINE(BUILD_LOADER_GIF, 1, [GIF Image Loader Support])
831   gif_cflags=""
832 else
833   if test "x$want_gif" = "xyes" -a "x$use_strict" = "xyes" ; then
834     AC_MSG_ERROR([GIF not found (strict dependencies checking)])
835   fi
836 fi
837
838 AM_CONDITIONAL(BUILD_LOADER_GIF, test "x$have_gif" = "xyes")
839
840 #######################################
841 ## PNG
842 want_png="auto";
843 have_png="no";
844
845 AC_MSG_CHECKING(whether to enable png image loader)
846 AC_ARG_ENABLE(image-loader-png,
847   AC_HELP_STRING([--disable-image-loader-png], [disable PNG image loader]),
848   [ want_png=$enableval ]
849 )
850 AC_MSG_RESULT($want_png)
851
852 if test "x$want_png" = "xyes" -o "x$want_png" = "xauto"; then
853   PKG_CHECK_EXISTS(libpng12,
854     [ PKG_CHECK_MODULES(PNG, libpng12, [ have_png="yes" ], [ have_png="no"]) ],
855     [
856       PKG_CHECK_EXISTS(libpng10,
857         [ PKG_CHECK_MODULES(PNG, libpng10, [ have_png="yes" ], [ have_png="no"]) ],
858         [ PKG_CHECK_MODULES(PNG, libpng, [ have_png="yes" ], [ have_png="no"]) ]
859       )
860     ]
861   )
862 fi
863
864 if test "x$want_png" = "xyes" -a ! "x$have_png" = "xyes" -a "x$use_strict" = "xyes" ; then
865   AC_MSG_ERROR([PNG not found (strict dependencies checking)])
866 fi
867
868 AM_CONDITIONAL(BUILD_LOADER_PNG, test "x$have_png" = "xyes")
869
870 #######################################
871 ## JPEG
872 want_jpeg="auto";
873 have_jpeg="no";
874
875 AC_MSG_CHECKING(whether to enable jpeg image loader)
876 AC_ARG_ENABLE(image-loader-jpeg,
877   AC_HELP_STRING([--disable-image-loader-jpeg], [disable JPEG image loader]),
878   [ want_jpeg=$enableval ]
879 )
880 AC_MSG_RESULT($want_jpeg)
881
882 if test "x$want_jpeg" = "xyes" -o "x$want_jpeg" = "xauto"; then
883   AC_CHECK_HEADER(jpeglib.h,
884     [
885       AC_DEFINE(BUILD_LOADER_JPEG, 1, [JPEG Image Loader Support])
886       jpeg_cflags=""
887       jpeg_libs="-ljpeg"
888       have_jpeg="yes"
889       have_jpeg_saver="yes"
890     ],
891     [
892       if test "x$want_jpeg" = "xyes" -a "x$use_strict" = "xyes" ; then
893         AC_MSG_ERROR(JPEG not found (strict dependencies checking))
894       fi
895     ]
896   )
897 fi
898 dnl Windows has no sigsetjmp function, nor equivalent.
899 dnl So we disable the jpeg saver.
900 case "$host_os" in
901    mingw*|cegcc*)
902    have_jpeg_saver="no"
903    ;;
904 esac
905 AM_CONDITIONAL(BUILD_LOADER_JPEG, test "x$have_jpeg" = "xyes")
906 AM_CONDITIONAL(BUILD_SAVER_JPEG, test "x$have_jpeg_saver" = "xyes")
907
908 #######################################
909 ## EET
910 #
911 # first, check whether the user WANTS to use EET
912 want_eet_image_loader="auto"
913 want_eet_font_loader="auto"
914 have_eet=no
915 AC_ARG_ENABLE(image-loader-eet,
916   AC_HELP_STRING(
917     [--disable-image-loader-eet],
918     [disable EET image loader. [[default=enabled]]]
919   ),
920   [want_eet_image_loader=$enableval]
921 )
922
923 AC_ARG_ENABLE(font-loader-eet,
924   AC_HELP_STRING(
925     [--disable-font-loader-eet],
926     [disable EET font loader. [[default=enabled]]]
927   ),
928   [want_eet_font_loader=$enableval]
929 )
930
931 # next, if she does, check whether EET is available
932 if test "x$want_eet_image_loader" = "xyes" -o "x$want_eet_font_loader" = "xyes" -o "x$want_eet_image_loader" = "xauto" -o "x$want_eet_font_loader" = "xauto"; then
933   PKG_CHECK_MODULES(EET, eet >= 1.0.1, [have_eet="yes"],
934     [
935       if test "x$want_eet_image_loader" = "xyes" -a "x$use_strict" = "xyes" -o "x$want_eet_font_loader" = "xyes" -a "x$use_strict" = "xyes"; then
936         AC_MSG_ERROR([EET not found (strict dependencies checking)])
937       fi
938     ]
939   )
940 fi
941
942 # finally, spew out the result
943 AC_MSG_CHECKING(whether to enable eet font loader)
944 if test "x$want_eet_font_loader" = "xyes" -o "x$want_eet_font_loader" = "xauto" -a "x$have_eet" = "xyes"; then
945   AC_DEFINE(BUILD_FONT_LOADER_EET, 1, [EET Font Loader Support])
946   have_eet_font_loader="yes"
947 else
948   have_eet_font_loader="no"
949 fi
950 AC_MSG_RESULT($have_eet_font_loader)
951
952 AC_MSG_CHECKING(whether to enable eet image loader)
953 if test "x$want_eet_image_loader" = "xyes" -o "x$want_eet_image_loader" = "xauto" -a "x$have_eet" = "xyes"; then
954   AC_DEFINE(BUILD_LOADER_EET, 1, [EET Image Loader Support])
955   have_eet_image_loader="yes"
956 else
957   have_eet_image_loader="no"
958 fi
959 AC_MSG_RESULT($have_eet_image_loader)
960
961 AM_CONDITIONAL(BUILD_LOADER_EET, test "x$have_eet_image_loader" = "xyes")
962
963 #######################################
964 ## EDB
965 #
966 # first, check whether the user WANTS to use EDB
967 have_edb=no
968 AC_ARG_ENABLE(image-loader-edb,
969   AC_HELP_STRING(
970     [--enable-image-loader-edb],
971     [enable EDB image loader.]
972   ),
973   [want_edb_image_loader=$enableval],
974   [want_edb_image_loader=no]
975 )
976
977 # next, if she does, check whether EDB is available
978 if test "$want_edb_image_loader" = yes; then
979   PKG_CHECK_MODULES(EDB, edb, have_edb=yes, have_edb=no)
980 fi
981
982 # finally, spew out the result
983 AC_MSG_CHECKING(whether to enable edb image loader)
984 if test "$want_edb_image_loader" = yes -a "$have_edb" = yes; then
985   AC_DEFINE(BUILD_LOADER_EDB, 1, [EDB Image Loader Support])
986   have_edb_image_loader=yes
987 else
988   have_edb_image_loader=no
989 fi
990 AC_MSG_RESULT($have_edb_image_loader)
991
992 AM_CONDITIONAL(BUILD_LOADER_EDB, test $have_edb_image_loader = yes)
993
994 #######################################
995 ## TIFF
996 want_tiff="auto";
997 have_tiff="no";
998
999 AC_MSG_CHECKING(whether to enable tiff image loader)
1000 AC_ARG_ENABLE(image-loader-tiff,
1001   AC_HELP_STRING([--disable-image-loader-tiff], [disable TIFF image loader]),
1002   [ want_tiff=$enableval ]
1003 )
1004 AC_MSG_RESULT($want_tiff)
1005
1006 if test "x$want_tiff" = "xyes" -o "x$want_tiff" = "xauto"; then
1007   AC_CHECK_HEADER(tiffio.h,
1008     [
1009       AC_CHECK_LIB(tiff, TIFFReadScanline,
1010         [
1011           tiff_libs="-ltiff"
1012           have_tiff="yes"
1013         ],
1014         [
1015           AC_CHECK_LIB(tiff, TIFFReadScanline,
1016             [
1017               tiff_libs="-ltiff -ljpeg -lz -lm"
1018               have_tiff="yes"
1019             ],
1020             [
1021               AC_CHECK_LIB(tiff34, TIFFReadScanline,
1022                 [
1023                   tiff_libs="-ltiff34 -ljpeg -lz -lm"
1024                   have_tiff="yes"
1025                 ],
1026                 [
1027                   have_tiff="no"
1028                 ]
1029               )
1030             ]
1031           )
1032         ]
1033       )
1034     ],
1035     [ have_tiff="no" ]
1036   )
1037 fi
1038
1039 if test "x$have_tiff" = "xyes"; then
1040   AC_DEFINE(BUILD_LOADER_TIFF, 1, [TIFF Image Loader Support])
1041   tiff_cflags=""
1042 else
1043   if test "x$want_tiff" = "xyes" -a "x$use_strict" = "xyes" ; then
1044     AC_MSG_ERROR([TIFF not found (strict dependencies checking)])
1045   fi
1046 fi
1047
1048 AM_CONDITIONAL(BUILD_LOADER_TIFF, test x$have_tiff = xyes)
1049
1050 #######################################
1051 ## XPM
1052 have_xpm="yes";
1053 AC_MSG_CHECKING(whether to enable xpm image loader)
1054 AC_ARG_ENABLE(image-loader-xpm,
1055   AC_HELP_STRING([--disable-image-loader-xpm], [disable XPM image loader]),
1056   [ have_xpm=$enableval ]
1057 )
1058 AC_MSG_RESULT($have_xpm)
1059
1060 xpm_cflags=""
1061 xpm_libs=""
1062
1063 AM_CONDITIONAL(BUILD_LOADER_XPM, test x$have_xpm = xyes)
1064
1065 #######################################
1066 ## SVG
1067 want_svg="auto";
1068 have_svg="no";
1069
1070 AC_MSG_CHECKING(whether to enable svg image loader)
1071 AC_ARG_ENABLE(image-loader-svg,
1072   AC_HELP_STRING([--disable-image-loader-svg], [disable SVG image loader]),
1073   [ want_svg=$enableval ]
1074 )
1075 AC_MSG_RESULT($want_svg)
1076
1077 svg_cflags=""
1078 svg_libs=""
1079 if test "x$want_svg" = "xyes" -o "x$want_svg" = "xauto"; then
1080   # Check if really available
1081   PKG_CHECK_MODULES(SVG, librsvg-2.0 >= 2.14.0,
1082     [ have_svg="yes" ],
1083     [ have_svg="no" ]
1084   )
1085   if test "x$have_svg" = "xyes"; then
1086     PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg,
1087       [
1088         have_svg="yes"
1089         svg_cflags="$SVG_CFLAGS $CAIRO_SVG_CFLAGS"
1090         svg_libs="$SVG_LIBS $CAIRO_SVG_LIBS"
1091       ],
1092       [
1093         PKG_CHECK_MODULES(LIBSVG_CAIRO, libsvg-cairo,
1094           [
1095             have_svg="yes"
1096             svg_cflags="$SVG_CFLAGS $LIBSVG_CAIRO_CFLAGS"
1097             svg_libs="$SVG_LIBS $LIBSVG_CAIRO_LIBS"
1098           ],
1099           [
1100             have_svg="no"
1101           ]
1102         )
1103       ]
1104     )
1105   fi
1106 fi
1107
1108 if test "x$want_svg" = "xyes" -a ! "x$have_svg" = "xyes" -a "x$use_strict" = "xyes" ; then
1109   AC_MSG_ERROR([SVG not found (strict dependencies checking)])
1110 fi
1111
1112 AM_CONDITIONAL(BUILD_LOADER_SVG, test x$have_svg = xyes)
1113
1114 #######################################
1115 ## PMAPS
1116 have_pmaps="yes";
1117 AC_MSG_CHECKING(whether to enable pmaps image loader)
1118 AC_ARG_ENABLE(image-loader-pmaps,
1119   AC_HELP_STRING([--disable-image-loader-pmaps], [disable PMAPS image loader]),
1120   [ have_pmaps=$enableval ]
1121 )
1122 AC_MSG_RESULT($have_pmaps)
1123
1124 pmaps_cflags=""
1125 pmaps_libs=""
1126
1127 AM_CONDITIONAL(BUILD_LOADER_PMAPS, test x$have_pmaps = xyes)
1128
1129
1130 #####################################################################
1131 ## Cpu based optimizations
1132
1133 #######################################
1134 ## PTHREADS
1135 pthread_cflags=""
1136 pthread_libs=""
1137 build_pthreads="no"
1138 has_pthreads="no"
1139 # sched_getaffinity pthread_attr_setaffinity_np
1140 AC_CHECK_HEADERS(pthread.h sched.h,
1141       [
1142         AC_CHECK_LIB(pthread, pthread_attr_setaffinity_np,
1143           [
1144             AC_CHECK_LIB(pthread, pthread_barrier_wait,
1145               [
1146                 build_pthreads="yes"
1147                 has_pthreads="yes"
1148               ],
1149               [ build_pthreads="no" ]
1150             )
1151           ],
1152           [ build_pthreads="no" ]
1153         )
1154       ],
1155       [ build_pthreads="no" ]
1156 )
1157 ### disable pthreads by default for now - some wierd deadlock issue with
1158 # barriers (makes no sense)
1159 #build_pthreads="no"
1160 AC_MSG_CHECKING(whether to build pthread code)
1161 AC_ARG_ENABLE(pthreads,
1162   AC_HELP_STRING([--enable-pthreads], [enable threaded rendering]),
1163   [
1164       if test "x$enableval" = "xyes" ; then
1165         if test "x$build_pthreads" = "xyes"; then
1166           AC_MSG_RESULT(yes)
1167           AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
1168           build_pthreads="yes"
1169           pthread_cflags=""
1170           pthread_libs="-lpthread"
1171         else
1172           if "x$use_strict" = "xyes"; then
1173             AC_MSG_ERROR(pthreads headers or functions not found (strict dependencies checking))
1174           else
1175             AC_MSG_RESULT(no: pthread headers or functions not found)
1176           fi
1177         fi
1178       else
1179         AC_MSG_RESULT(no)
1180         build_pthreads="no"
1181       fi
1182   ],
1183   [
1184     AC_MSG_RESULT($build_pthreads)
1185     if test "x$build_pthreads" = "xyes" ; then
1186       AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
1187       pthread_cflags=""
1188       pthread_libs="-lpthread"
1189     fi
1190   ]
1191 )
1192
1193 #######################################
1194 ## Async events
1195 build_async_events="auto"
1196 AC_MSG_CHECKING(whether to build Async Events support)
1197 AC_ARG_ENABLE(async-events,
1198   AC_HELP_STRING([--enable-async-events], [enable async events support]),
1199   [ build_async_events=$enableval ]
1200 )
1201 AC_MSG_RESULT($build_async_events)
1202
1203 AC_MSG_CHECKING(whether we can build Async Events support)
1204 if test \( "x$build_async_events" = "xyes" -o "x$build_async_events" = "xauto" \) -a "x$has_pthreads" = "xyes"; then
1205   AC_MSG_RESULT(yes)
1206   AC_DEFINE(BUILD_ASYNC_EVENTS, 1, [Build async events support])
1207   build_async_events="yes"
1208 else
1209   AC_MSG_RESULT(no)
1210   build_async_events="no"
1211 fi
1212
1213 #######################################
1214 ## MMX
1215 build_cpu_mmx="no"
1216 case $host_cpu in
1217   i*86)
1218     build_cpu_mmx="yes"
1219     ;;
1220   x86_64)
1221     build_cpu_mmx="yes"
1222     ;;
1223 esac
1224 AC_MSG_CHECKING(whether to build mmx code)
1225 AC_ARG_ENABLE(cpu-mmx,
1226   AC_HELP_STRING([--enable-cpu-mmx], [enable mmx code]),
1227   [
1228       if test "x$enableval" = "xyes" ; then
1229         AC_MSG_RESULT(yes)
1230         AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
1231         build_cpu_mmx="yes"
1232       else
1233         AC_MSG_RESULT(no)
1234         build_cpu_mmx="no"
1235       fi
1236   ],
1237   [
1238     AC_MSG_RESULT($build_cpu_mmx)
1239     if test "x$build_cpu_mmx" = "xyes" ; then
1240       AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
1241     fi
1242   ]
1243 )
1244
1245 #######################################
1246 ## SSE
1247 build_cpu_sse="no"
1248 case $host_cpu in
1249   i*86)
1250     build_cpu_sse="yes"
1251     ;;
1252   x86_64)
1253     build_cpu_sse="yes"
1254     ;;
1255 esac
1256 AC_MSG_CHECKING(whether to build sse code)
1257 AC_ARG_ENABLE(cpu-sse,
1258   AC_HELP_STRING([--enable-cpu-sse], [enable sse code]),
1259   [
1260       if test "x$enableval" = "xyes" ; then
1261         AC_MSG_RESULT(yes)
1262         AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
1263         build_cpu_sse="yes"
1264       else
1265         AC_MSG_RESULT(no)
1266         build_cpu_sse="no"
1267       fi
1268   ],
1269   [
1270     AC_MSG_RESULT($build_cpu_sse)
1271     if test "x$build_cpu_sse" = "xyes" ; then
1272       AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
1273     fi
1274   ]
1275 )
1276
1277 #######################################
1278 ## ALTIVEC
1279 build_cpu_altivec="no"
1280 case $host_cpu in
1281   *power* | *ppc*)
1282     build_cpu_altivec="auto"
1283     ;;
1284 esac
1285 altivec_cflags=""
1286 AC_MSG_CHECKING(whether to build altivec code)
1287 AC_ARG_ENABLE(cpu-altivec,
1288   AC_HELP_STRING([--enable-cpu-altivec], [enable altivec code]),
1289   [ build_cpu_altivec=$enableval ],
1290   [
1291     if test ! "x$build_cpu_altivec" = "xauto"; then
1292       build_cpu_altivec="no"
1293     fi
1294   ]
1295 )
1296 AC_MSG_RESULT($build_cpu_altivec)
1297
1298 if test "x$build_cpu_altivec" = "xyes"; then
1299    AC_CHECK_HEADER(altivec.h,
1300      [
1301         AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1302         AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
1303         build_cpu_altivec="yes"
1304      ],
1305      [
1306        save_CFLAGS=$CFLAGS
1307        save_CPPFLAGS=$CPPFLAGS
1308        CFLAGS=$CFLAGS" -maltivec"
1309        CPPFLAGS=$CPPFLAGS" -maltivec"
1310        unset ac_cv_header_altivec_h
1311        AC_CHECK_HEADER(altivec.h,
1312          [
1313             AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1314             AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
1315             build_cpu_altivec="yes"
1316          ],
1317          [
1318             if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then
1319               AC_MSG_ERROR(Altivec not found (strict dependencies checking))
1320             fi
1321             build_cpu_altivec="no"
1322          ]
1323        )
1324        CFLAGS=$save_CFLAGS
1325        CPPFLAGS=$save_CPPFLAGS
1326      ]
1327    )
1328 fi
1329
1330 if test "x$build_cpu_altivec" = "xyes"; then
1331    AC_MSG_CHECKING(whether to use altivec compiler flag)
1332    if test "x$GCC" = "xyes"; then
1333       if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then
1334          altivec_cflags="-faltivec"
1335          AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1336       elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then
1337          altivec_cflags="-maltivec"
1338          AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1339       fi
1340    fi
1341    AC_MSG_RESULT($altivec_cflags)
1342    CFLAGS="$CFLAGS $altivec_cflags"
1343 fi
1344
1345
1346 #######################################
1347 ## C
1348 build_cpu_c="no"
1349 build_cpu_c="yes"
1350 AC_MSG_CHECKING(whether to build c code)
1351 AC_ARG_ENABLE(cpu-c,
1352   AC_HELP_STRING([--enable-cpu-c], [enable C code]),
1353   [
1354       if test "x$enableval" = "xyes" ; then
1355         AC_MSG_RESULT(yes)
1356         AC_DEFINE(BUILD_C, 1, [Build plain C code])
1357         build_cpu_c="yes"
1358       else
1359         AC_MSG_RESULT(no)
1360         build_cpu_c="no"
1361       fi
1362   ], [
1363       AC_MSG_RESULT($build_cpu_c)
1364       if test "x$build_cpu_c" = "xyes" ; then
1365         AC_DEFINE(BUILD_C, 1, [Build plain C code])
1366       fi
1367   ]
1368 )
1369
1370 #####################################################################
1371 ## ARGB engine options
1372
1373 #######################################
1374 ## Nearest sampling scaler
1375 scaler_sample="no"
1376 scaler_sample="yes"
1377 AC_MSG_CHECKING(whether to build sampling scaler)
1378 AC_ARG_ENABLE(scale-sample,
1379   AC_HELP_STRING([--enable-scale-sample], [enable sampling scaler code]),
1380   [
1381       if test "x$enableval" = "xyes" ; then
1382         AC_MSG_RESULT(yes)
1383         AC_DEFINE(BUILD_SCALE_SAMPLE, 1, [Sampling Scaler Support])
1384         scaler_sample="yes"
1385       else
1386         AC_MSG_RESULT(no)
1387         scaler_sample="no"
1388       fi
1389   ], [
1390       AC_MSG_RESULT($scaler_sample)
1391       if test "x$scaler_sample" = "xyes" ; then
1392         AC_DEFINE(BUILD_SCALE_SAMPLE, 1, [Sampling Scaler Support])
1393       fi
1394   ]
1395 )
1396
1397 #######################################
1398 ## Smooth super and sub sampling scaler
1399 scaler_smooth="no"
1400 scaler_smooth="yes"
1401 AC_MSG_CHECKING(whether to build smooth scaler)
1402 AC_ARG_ENABLE(scale-smooth,
1403   AC_HELP_STRING([--enable-scale-smooth], [enable smooth scaler code]),
1404   [
1405       if test "x$enableval" = "xyes" ; then
1406         AC_MSG_RESULT(yes)
1407         AC_DEFINE(BUILD_SCALE_SMOOTH, 1, [Smooth Scaler Support])
1408         scaler_smooth="yes"
1409       else
1410         AC_MSG_RESULT(no)
1411         scaler_smooth="no"
1412       fi
1413   ], [
1414       AC_MSG_RESULT($scaler_smooth)
1415       if test "x$scaler_smooth" = "xyes" ; then
1416         AC_DEFINE(BUILD_SCALE_SMOOTH, 1, [Smooth Scaler Support])
1417       fi
1418   ]
1419 )
1420
1421 #######################################
1422 ## YUV -> ARGB converter
1423 conv_yuv="no"
1424 conv_yuv="yes"
1425 AC_MSG_CHECKING(whether to build yuv converter code)
1426 AC_ARG_ENABLE(convert-yuv,
1427   AC_HELP_STRING([--enable-convert-yuv], [enable yuv converter code]),
1428   [
1429       if test "x$enableval" = "xyes" ; then
1430         AC_MSG_RESULT(yes)
1431         AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
1432         conv_yuv="yes"
1433       else
1434         AC_MSG_RESULT(no)
1435         conv_yuv="no"
1436       fi
1437   ], [
1438       AC_MSG_RESULT($conv_yuv)
1439       if test "x$conv_yuv" = "xyes" ; then
1440         AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
1441       fi
1442   ]
1443 )
1444
1445 #####################################################################
1446 ## Output rendering features
1447
1448 #######################################
1449 ## Small dither mask instead of big one (lower quality)
1450 conv_small_dither="no"
1451 AC_MSG_CHECKING(whether to build small dither mask code)
1452 AC_ARG_ENABLE(small-dither-mask,
1453   AC_HELP_STRING([--enable-small-dither-mask], [enable small dither mask code]),
1454   [
1455       if test "x$enableval" = "xyes" ; then
1456         AC_MSG_RESULT(yes)
1457         AC_DEFINE(BUILD_SMALL_DITHER_MASK, 1, [Small Dither Mask Support])
1458         conv_small_dither="yes"
1459       else
1460         AC_MSG_RESULT(no)
1461         conv_small_dither="no"
1462       fi
1463   ], [
1464       AC_MSG_RESULT($conv_small_dither)
1465       if test "x$conv_small_dither" = "xyes" ; then
1466         AC_DEFINE(BUILD_SMALL_DITHER_MASK, 1, [Small Dither Mask Support])
1467       fi
1468   ]
1469 )
1470
1471 #######################################
1472 ## No dither mask at all for 16bpp
1473 conv_no_dither="no"
1474 AC_MSG_CHECKING(whether to build without dither mask for 16bpp)
1475 AC_ARG_ENABLE(no-dither-mask,
1476   AC_HELP_STRING([--enable-no-dither-mask], [enable conversion to 16bpp without dither mask]),
1477   [
1478       if test "x$enableval" = "xyes" ; then
1479         AC_MSG_RESULT(yes)
1480         AC_DEFINE(BUILD_NO_DITHER_MASK, 1, [No Dither Mask Support])
1481         conv_no_dither="yes"
1482       else
1483         AC_MSG_RESULT(no)
1484         conv_no_dither="no"
1485       fi
1486   ], [
1487       AC_MSG_RESULT($conv_no_dither)
1488       if test "x$conv_no_dither" = "xyes" ; then
1489         AC_DEFINE(BUILD_NO_DITHER_MASK, 1, [No Dither Mask Support])
1490       fi
1491   ]
1492 )
1493
1494 #######################################
1495 ## Convert to 8bpp RGB 332
1496 EVAS_CONVERT_COLOR(8, RGB, 332, [yes])
1497 ## Convert to 8bpp RGB 666
1498 EVAS_CONVERT_COLOR(8, RGB, 666, [yes])
1499 ## Convert to 8bpp RGB 232
1500 EVAS_CONVERT_COLOR(8, RGB, 232, [yes])
1501 ## Convert to 8bpp RGB 222
1502 EVAS_CONVERT_COLOR(8, RGB, 222, [yes])
1503 ## Convert to 8bpp RGB 221
1504 EVAS_CONVERT_COLOR(8, RGB, 221, [yes])
1505 ## Convert to 8bpp RGB 121
1506 EVAS_CONVERT_COLOR(8, RGB, 121, [yes])
1507 ## Convert to 8bpp RGB 111
1508 EVAS_CONVERT_COLOR(8, RGB, 111, [yes])
1509 ## Convert to 16bpp RGB 565
1510 EVAS_CONVERT_COLOR(16, RGB, 565)
1511 ## Convert to 16bpp BGR 565
1512 EVAS_CONVERT_COLOR(16, BGR, 565)
1513 ## Convert to 16bpp RGB 555
1514 EVAS_CONVERT_COLOR(16, RGB, 555)
1515 ## Convert to 16bpp RGB 444
1516 EVAS_CONVERT_COLOR(16, RGB, 444)
1517
1518 #######################################
1519 ## Convert to 16bpp RGB 565 (444 ipaq)
1520 conv_16_rgb_ipq="yes"
1521 AC_MSG_CHECKING(whether to build 16bpp 565 (444 ipaq) converter code)
1522 AC_ARG_ENABLE(convert-16-rgb-ipq,
1523   AC_HELP_STRING([--disable-convert-16-rgb-ipq], [disable 16bpp 565 (444 ipaq) converter code]),
1524   [
1525       if test "x$enableval" = "xyes" ; then
1526         AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
1527         conv_16_rgb_ipq="yes"
1528       else
1529         conv_16_rgb_ipq="no"
1530       fi
1531   ], [
1532       if test "x$conv_16_rgb_ipq" = "xyes" ; then
1533         AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
1534       fi
1535   ]
1536 )
1537 AC_MSG_RESULT($conv_16_rgb_ipq)
1538
1539 #######################################
1540 ## Convert to 16bpp RGB with rotation of 0
1541 EVAS_CONVERT_ROT(16, RGB, 0)
1542 ## Convert to 16bpp RGB with rotation of 180
1543 EVAS_CONVERT_ROT(16, RGB, 180)
1544 ## Convert to 16bpp RGB with rotation of 270
1545 EVAS_CONVERT_ROT(16, RGB, 270)
1546 ## Convert to 16bpp RGB with rotation of 90
1547 EVAS_CONVERT_ROT(16, RGB, 90)
1548
1549 #######################################
1550 ## Convert to 24bpp RGB 888
1551 EVAS_CONVERT_COLOR(24, RGB, 888)
1552 ## Convert to 24bpp BGR 888
1553 EVAS_CONVERT_COLOR(24, BGR, 888)
1554 ## Convert to 32bpp RGB 8888
1555 EVAS_CONVERT_COLOR(32, RGB, 8888)
1556 ## Convert to 32bpp RGBX 8888
1557 EVAS_CONVERT_COLOR(32, RGBX, 8888)
1558 ## Convert to 32bpp BGR 8888
1559 EVAS_CONVERT_COLOR(32, BGR, 8888)
1560 ## Convert to 32bpp BGRX 8888
1561 EVAS_CONVERT_COLOR(32, BGRX, 8888)
1562
1563 #######################################
1564 ## Convert to 32bpp RGB with rotation of 0
1565 EVAS_CONVERT_ROT(32, RGB, 0)
1566 ## Convert to 32bpp RGB with rotation of 180
1567 EVAS_CONVERT_ROT(32, RGB, 180)
1568 ## Convert to 32bpp RGB with rotation of 270
1569 EVAS_CONVERT_ROT(32, RGB, 270)
1570 ## Convert to 32bpp RGB with rotation of 90
1571 EVAS_CONVERT_ROT(32, RGB, 90)
1572
1573 ## valgrind
1574 want_valgrind="no"
1575 have_valgrind="no"
1576
1577 AC_MSG_CHECKING(whether to enable build with valgrind)
1578 AC_ARG_ENABLE(valgrind,
1579   AC_HELP_STRING([--enable-valgrind], [enable valgrind fixes to stop false reports]),
1580   [ want_valgrind=$enableval ]
1581 )
1582 AC_MSG_RESULT($want_valgrind)
1583
1584 if test x$want_valgrind = "xyes"; then
1585   PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
1586     [
1587       AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
1588       have_valgrind=yes
1589     ],
1590     [
1591       if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then
1592         AC_MSG_ERROR([Valgrind not found (strict dependencies checking)])
1593       fi
1594     ]
1595   )
1596 fi
1597
1598 ### if software 16 x11 is enabled - build software_16 (the generic 16bit
1599 ### engine). later enable it fb_16 or other "16" bit engines are enabled.
1600 have_evas_software_16="no"
1601 if test "x$have_evas_software_16_x11" = "xyes"; then
1602    have_evas_software_16="yes"
1603 fi
1604 if test "x$have_evas_sdl" = "xyes"; then
1605    have_evas_software_16="yes"
1606 fi
1607 if test "x$have_evas_software_16_ddraw" = "xyes"; then
1608    have_evas_software_16="yes"
1609 fi
1610 if test "x$have_evas_software_16_wince" = "xyes"; then
1611    have_evas_software_16="yes"
1612 fi
1613 AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16, test "x$have_evas_software_16" = "xyes")
1614
1615 #####################################################################
1616 ## Fill in flags
1617
1618 AC_SUBST(ddraw_libs)
1619 AC_SUBST(ddraw_16_libs)
1620 AC_SUBST(direct3d_libs)
1621
1622 AC_SUBST(glew_libs)
1623
1624 AC_SUBST(x_cflags)
1625 AC_SUBST(x_libs)
1626
1627 AC_SUBST(gl_cflags)
1628 AC_SUBST(gl_libs)
1629
1630 AC_SUBST(qt_cflags)
1631 AC_SUBST(qt_libs)
1632 AC_SUBST(qt_moc)
1633
1634 AC_SUBST(gif_cflags)
1635 AC_SUBST(gif_libs)
1636 AC_SUBST(jpeg_cflags)
1637 AC_SUBST(jpeg_libs)
1638 AC_SUBST(tiff_cflags)
1639 AC_SUBST(tiff_libs)
1640 AC_SUBST(xpm_cflags)
1641 AC_SUBST(xpm_libs)
1642 AC_SUBST(svg_cflags)
1643 AC_SUBST(svg_libs)
1644 AC_SUBST(pmaps_cflags)
1645 AC_SUBST(pmaps_libs)
1646 AC_SUBST(altivec_cflags)
1647 AC_SUBST(pthread_cflags)
1648 AC_SUBST(pthread_libs)
1649
1650 #####################################################################
1651 ## Output
1652
1653 AC_OUTPUT([
1654 Makefile
1655 evas-cairo-x11.pc
1656 evas-fb.pc
1657 evas-glitz-x11.pc
1658 evas-opengl-glew.pc
1659 evas-opengl-x11.pc
1660 evas-software-buffer.pc
1661 evas-software-qtopia.pc
1662 evas-software-x11.pc
1663 evas-software-16-x11.pc
1664 evas-software-xcb.pc
1665 evas-xrender-x11.pc
1666 evas-xrender-xcb.pc
1667 evas-software-ddraw.pc
1668 evas-software-16-ddraw.pc
1669 evas-direct3d.pc
1670 evas-software-16-wince.pc
1671 evas-software-sdl.pc
1672 evas.pc
1673 src/Makefile
1674 src/lib/Makefile
1675 src/lib/canvas/Makefile
1676 src/lib/data/Makefile
1677 src/lib/file/Makefile
1678 src/lib/imaging/Makefile
1679 src/lib/cache/Makefile
1680 src/lib/engines/Makefile
1681 src/lib/engines/common/Makefile
1682 src/lib/engines/common/evas_op_add/Makefile
1683 src/lib/engines/common/evas_op_blend/Makefile
1684 src/lib/engines/common/evas_op_copy/Makefile
1685 src/lib/engines/common/evas_op_mask/Makefile
1686 src/lib/engines/common/evas_op_mul/Makefile
1687 src/lib/engines/common/evas_op_sub/Makefile
1688 src/lib/engines/common_16/Makefile
1689 src/modules/Makefile
1690 src/modules/engines/Makefile
1691 src/modules/engines/software_generic/Makefile
1692 src/modules/engines/software_ddraw/Makefile
1693 src/modules/engines/direct3d/Makefile
1694 src/modules/engines/software_16_wince/Makefile
1695 src/modules/engines/software_x11/Makefile
1696 src/modules/engines/software_xcb/Makefile
1697 src/modules/engines/fb/Makefile
1698 src/modules/engines/buffer/Makefile
1699 src/modules/engines/software_win32_gdi/Makefile
1700 src/modules/engines/software_qtopia/Makefile
1701 src/modules/engines/gl_common/Makefile
1702 src/modules/engines/gl_glew/Makefile
1703 src/modules/engines/gl_x11/Makefile
1704 src/modules/engines/cairo_common/Makefile
1705 src/modules/engines/cairo_x11/Makefile
1706 src/modules/engines/xrender_x11/Makefile
1707 src/modules/engines/xrender_xcb/Makefile
1708 src/modules/engines/software_sdl/Makefile
1709 src/modules/engines/glitz_x11/Makefile
1710 src/modules/engines/software_16/Makefile
1711 src/modules/engines/software_16_x11/Makefile
1712 src/modules/engines/software_16_ddraw/Makefile
1713 src/modules/engines/software_16_sdl/Makefile
1714 src/modules/loaders/Makefile
1715 src/modules/loaders/edb/Makefile
1716 src/modules/loaders/eet/Makefile
1717 src/modules/loaders/gif/Makefile
1718 src/modules/loaders/jpeg/Makefile
1719 src/modules/loaders/png/Makefile
1720 src/modules/loaders/tiff/Makefile
1721 src/modules/loaders/xpm/Makefile
1722 src/modules/loaders/svg/Makefile
1723 src/modules/loaders/pmaps/Makefile
1724 src/modules/savers/Makefile
1725 src/modules/savers/edb/Makefile
1726 src/modules/savers/eet/Makefile
1727 src/modules/savers/jpeg/Makefile
1728 src/modules/savers/png/Makefile
1729 src/modules/savers/tiff/Makefile
1730 src/lib/include/Makefile
1731 README
1732 evas.spec
1733 ])
1734
1735 #####################################################################
1736 ## Info
1737
1738 echo
1739 echo
1740 echo
1741 echo "------------------------------------------------------------------------"
1742 echo "$PACKAGE $VERSION"
1743 echo "------------------------------------------------------------------------"
1744 echo
1745 echo "Configuration Options Summary:"
1746 echo
1747 echo "Engines:"
1748 echo "  Software Memory Buffer.....: $have_evas_buffer"
1749 echo "  Software X11...............: $have_evas_software_x11"
1750 echo "  XRender X11................: $have_evas_xrender_x11"
1751 echo "  OpenGL X11.................: $have_evas_gl_x11"
1752 echo "  Glitz X11..................: $have_evas_glitz_x11"
1753 echo "  Cairo X11..................: $have_evas_cairo_x11"
1754 echo "  Software XCB...............: $have_evas_software_xcb"
1755 echo "  XRender XCB................: $have_evas_xrender_xcb"
1756 echo "  Software DirectDraw........: $have_evas_software_ddraw"
1757 echo "  Direct3d...................: $have_evas_direct3d"
1758 echo "  OpenGL Glew................: $have_evas_gl_glew"
1759 echo "  Software SDL...............: $have_evas_sdl (primitive: $sdl_primitive)"
1760 echo "  Software Framebuffer.......: $have_evas_fb"
1761 echo "  Software Qtopia............: $have_evas_qtopia"
1762 echo "  Software 16bit ............: $have_evas_software_16"
1763 echo "  Software 16bit X11.........: $have_evas_software_16_x11"
1764 echo "  Software 16bit Directdraw..: $have_evas_software_16_ddraw"
1765 echo "  Software 16bit WinCE.......: $have_evas_software_16_wince"
1766 echo "  Software 16bit SDL.........: $have_evas_sdl (primitive: $sdl_primitive)"
1767 # FIXME: opengl engine needs to be fixed and tested lots for all drivers
1768 # FIXME: xrender engine to be written
1769 echo
1770 echo "Image Loaders:"
1771 echo "  GIF.....................: $have_gif"
1772 echo "  PNG.....................: $have_png"
1773 echo "  JPEG....................: $have_jpeg"
1774 echo "  EET.....................: $have_eet_image_loader"
1775 echo "  EDB.....................: $have_edb_image_loader"
1776 echo "  TIFF....................: $have_tiff"
1777 echo "  XPM.....................: $have_xpm"
1778 echo "  SVG.....................: $have_svg"
1779 echo "  PMAPS...................: $have_pmaps"
1780 # FIXME: need to add modular image loader system
1781 # FIXME: add more image loader modules
1782 echo
1783 echo "Font Sourcing Systems:"
1784 echo "  EET.....................: $have_eet_font_loader"
1785 echo
1786 echo "Font Searching Systems:"
1787 echo "  Fontconfig..............: $have_fontconfig"
1788 # FIXME: add non freetype2 font engine support
1789 # FIXME: make freetype2 optional
1790 echo
1791 echo "CPU Specific Extensions:"
1792 echo "  Fallback C Code.........: $build_cpu_c"
1793 echo "  MMX.....................: $build_cpu_mmx"
1794 echo "  SSE.....................: $build_cpu_sse"
1795 echo "  ALTIVEC.................: $build_cpu_altivec"
1796 echo "  Thread Support..........: $build_pthreads"
1797 echo
1798 echo "Async Events..............: $build_async_events"
1799 echo
1800 echo "ARGB Software Engine Options:"
1801 echo "  Sampling Scaler.........: $scaler_sample"
1802 echo "  Smooth Scaler...........: $scaler_smooth"
1803 # FIXME: add an mmx scaler routine
1804 echo "  YUV Converter...........: $conv_yuv"
1805 # FIXME: add more YUV format and colorvariant support
1806 echo
1807 echo "ARGB Conversion Options:"
1808 echo "  Smaller Dither Mask.....: $conv_small_dither"
1809 echo "  No Dither Mask for 16bpp: $conv_no_dither"
1810 echo "  8bpp RGB 332............: $conv_8_rgb_332"
1811 echo "  8bpp RGB 666............: $conv_8_rgb_666"
1812 echo "  8bpp RGB 232............: $conv_8_rgb_232"
1813 echo "  8bpp RGB 222............: $conv_8_rgb_222"
1814 echo "  8bpp RGB 221............: $conv_8_rgb_221"
1815 echo "  8bpp RGB 121............: $conv_8_rgb_121"
1816 echo "  8bpp RGB 111............: $conv_8_rgb_111"
1817 # FIXME: add grayscale and B&W support
1818 echo "  16bpp RGB 565...........: $conv_16_rgb_565"
1819 echo "  16bpp BGR 565...........: $conv_16_bgr_565"
1820 echo "  16bpp RGB 555...........: $conv_16_rgb_555"
1821 echo "  16bpp RGB 444...........: $conv_16_rgb_444"
1822 echo "  16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq"
1823 # FIXME: add 555 (444 ipaq) support
1824 # FIXME: add 24bpp 666 support
1825 # FIXME: add 32bpp 666 support
1826 # FIXME: add 30bpp support
1827 # FIXME: add palletted support
1828 # FIXME: add 8bpp and below rotation
1829 echo "  16bpp Rotation 0........: $conv_16_rgb_rot_0"
1830 echo "  16bpp Rotation 90.......: $conv_16_rgb_rot_90"
1831 echo "  16bpp Rotation 180......: $conv_16_rgb_rot_180"
1832 echo "  16bpp Rotation 270......: $conv_16_rgb_rot_270"
1833 echo "  24bpp RGB 888...........: $conv_24_rgb_888"
1834 echo "  24bpp BGR 888...........: $conv_24_bgr_888"
1835 # FIXME: add 24bpp rotation
1836 echo "  32bpp RGB 8888..........: $conv_32_rgb_8888"
1837 echo "  32bpp RGBX 8888.........: $conv_32_rgbx_8888"
1838 echo "  32bpp BGR 8888..........: $conv_32_bgr_8888"
1839 echo "  32bpp BGRX 8888.........: $conv_32_bgrx_8888"
1840 echo "  32bpp Rotation 0........: $conv_32_rgb_rot_0"
1841 echo "  32bpp Rotation 90.......: $conv_32_rgb_rot_90"
1842 echo "  32bpp Rotation 180......: $conv_32_rgb_rot_180"
1843 echo "  32bpp Rotation 270......: $conv_32_rgb_rot_270"
1844 echo
1845 echo "------------------------------------------------------------------------"
1846 echo
1847 echo "Now type 'make' ('gmake' on some systems) to compile $PACKAGE,"
1848 echo "and then afterwards as root (or the user who will install this), type"
1849 echo "'make install'. Change users with 'su' or 'sudo' appropriately."
1850 echo