diff options
Diffstat (limited to 'libraries/ecore/configure.ac')
-rw-r--r-- | libraries/ecore/configure.ac | 2058 |
1 files changed, 2058 insertions, 0 deletions
diff --git a/libraries/ecore/configure.ac b/libraries/ecore/configure.ac new file mode 100644 index 0000000..78806c1 --- /dev/null +++ b/libraries/ecore/configure.ac | |||
@@ -0,0 +1,2058 @@ | |||
1 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
2 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
3 | m4_define([v_maj], [1]) | ||
4 | m4_define([v_min], [1]) | ||
5 | m4_define([v_mic], [0]) | ||
6 | m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) | ||
7 | m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))]) | ||
8 | ##-- When released, remove the dnl on the below line | ||
9 | 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 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
20 | |||
21 | AC_INIT([ecore], [v_ver], [enlightenment-devel@lists.sourceforge.net]) | ||
22 | AC_PREREQ([2.52]) | ||
23 | AC_CONFIG_SRCDIR([configure.ac]) | ||
24 | AC_CONFIG_MACRO_DIR([m4]) | ||
25 | |||
26 | AC_CONFIG_HEADERS([config.h]) | ||
27 | AH_TOP([ | ||
28 | #ifndef EFL_CONFIG_H__ | ||
29 | #define EFL_CONFIG_H__ | ||
30 | ]) | ||
31 | AH_BOTTOM([ | ||
32 | #endif /* EFL_CONFIG_H__ */ | ||
33 | ]) | ||
34 | |||
35 | AM_INIT_AUTOMAKE([1.6 dist-bzip2]) | ||
36 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
37 | |||
38 | AC_GNU_SOURCE | ||
39 | |||
40 | AC_LIBTOOL_WIN32_DLL | ||
41 | define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl | ||
42 | AC_PROG_LIBTOOL | ||
43 | |||
44 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
45 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
46 | m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) | ||
47 | m4_ifdef([v_rel], , [m4_define([v_rel], [])]) | ||
48 | AC_DEFINE_UNQUOTED(VERS_MAJ, [v_maj], [Major version]) | ||
49 | AC_DEFINE_UNQUOTED(VERS_MIN, [v_min], [Minor version]) | ||
50 | AC_DEFINE_UNQUOTED(VERS_MIC, [v_mic], [Micro version]) | ||
51 | AC_DEFINE_UNQUOTED(VERS_REV, [v_rev], [Revison]) | ||
52 | version_info="lt_cur:lt_rev:lt_age" | ||
53 | release_info="v_rel" | ||
54 | AC_SUBST(version_info) | ||
55 | AC_SUBST(release_info) | ||
56 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
57 | ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## | ||
58 | VMAJ=v_maj | ||
59 | AC_SUBST(VMAJ) | ||
60 | |||
61 | m4_ifdef([AM_GNU_GETTEXT_VERSION], [ | ||
62 | AM_GNU_GETTEXT_VERSION([0.17]) | ||
63 | ]) | ||
64 | |||
65 | m4_ifdef([AM_GNU_GETTEXT], [ | ||
66 | AM_GNU_GETTEXT([external]) | ||
67 | po_makefile_in=po/Makefile.in | ||
68 | have_po="yes" | ||
69 | ],[ | ||
70 | have_po="no" | ||
71 | ]) | ||
72 | AC_SUBST(LTLIBINTL) | ||
73 | |||
74 | if test "x${POSUB}" = "x" ; then | ||
75 | have_po="no" | ||
76 | fi | ||
77 | |||
78 | AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"]) | ||
79 | |||
80 | with_max_log_level="<unset>" | ||
81 | AC_ARG_WITH(internal-maximum-log-level, | ||
82 | [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER], | ||
83 | [limit ecore internal log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])], | ||
84 | [ | ||
85 | if test "x${withval}" != "xno"; then | ||
86 | if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then | ||
87 | AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}]) | ||
88 | AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.]) | ||
89 | with_max_log_level="${withval}" | ||
90 | else | ||
91 | AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.]) | ||
92 | fi | ||
93 | fi | ||
94 | ], [:]) | ||
95 | |||
96 | |||
97 | ### Default options with respect to host | ||
98 | |||
99 | AC_CANONICAL_BUILD | ||
100 | AC_CANONICAL_HOST | ||
101 | |||
102 | # dependencies and options | ||
103 | want_curl="no" | ||
104 | want_local_sockets="yes" | ||
105 | want_abstract_sockets="no" | ||
106 | want_gnutls="no" | ||
107 | want_openssl="no" | ||
108 | want_cares="no" | ||
109 | want_cipher="no" | ||
110 | want_signature="no" | ||
111 | want_poll="yes" | ||
112 | want_inotify="no" | ||
113 | want_notify_win32="no" | ||
114 | want_tslib="no" | ||
115 | want_glib="no" | ||
116 | |||
117 | # core modules | ||
118 | want_ecore_con="yes" | ||
119 | want_ecore_ipc="yes" | ||
120 | want_ecore_file="yes" | ||
121 | #want_ecore_config="no" | ||
122 | want_ecore_imf="no" | ||
123 | want_ecore_input="yes" | ||
124 | |||
125 | # graphic system modules | ||
126 | want_evas_simple_x11="no" | ||
127 | want_ecore_x_xcb="no" | ||
128 | want_ecore_x="no" | ||
129 | want_ecore_win32="no" | ||
130 | want_ecore_cocoa="no" | ||
131 | want_ecore_sdl="no" | ||
132 | want_ecore_psl1ght="no" | ||
133 | want_ecore_fb="no" | ||
134 | want_ecore_directfb="no" | ||
135 | want_ecore_wince="no" | ||
136 | |||
137 | # ecore_x options (both xlib and xcb) | ||
138 | want_ecore_x_composite="yes" | ||
139 | want_ecore_x_damage="yes" | ||
140 | want_ecore_x_dpms="yes" | ||
141 | want_ecore_x_randr="yes" | ||
142 | want_ecore_x_render="yes" | ||
143 | want_ecore_x_screensaver="yes" | ||
144 | want_ecore_x_shape="yes" | ||
145 | want_ecore_x_gesture="no" | ||
146 | want_ecore_x_sync="yes" | ||
147 | want_ecore_x_xfixes="yes" | ||
148 | want_ecore_x_xinerama="yes" | ||
149 | want_ecore_x_xprint="yes" | ||
150 | want_ecore_x_xtest="yes" | ||
151 | want_ecore_x_cursor="yes" | ||
152 | want_ecore_x_input="yes" | ||
153 | want_ecore_x_dri="yes" | ||
154 | |||
155 | # ecore_evas modules | ||
156 | want_ecore_evas="yes" | ||
157 | want_ecore_evas_software_buffer="yes" | ||
158 | want_ecore_evas_software_x11="no" | ||
159 | want_ecore_evas_opengl_x11="no" | ||
160 | want_ecore_evas_software_16_x11="no" | ||
161 | want_ecore_evas_software_8_x11="no" | ||
162 | want_ecore_evas_software_xcb="no" | ||
163 | want_ecore_evas_software_gdi="no" | ||
164 | want_ecore_evas_software_ddraw="no" | ||
165 | want_ecore_evas_direct3d="no" | ||
166 | want_ecore_evas_opengl_glew="no" | ||
167 | want_ecore_evas_software_16_ddraw="no" | ||
168 | want_ecore_evas_software_sdl="no" | ||
169 | want_ecore_evas_gl_sdl="no" | ||
170 | want_ecore_evas_gl_cocoa="no" | ||
171 | want_ecore_evas_psl1ght="no" | ||
172 | want_ecore_evas_directfb="no" | ||
173 | want_ecore_evas_fb="no" | ||
174 | want_ecore_evas_software_16_wince="no" | ||
175 | want_ecore_evas_ews="yes" | ||
176 | |||
177 | # ecore_imf modules | ||
178 | want_ecore_imf_xim="no" | ||
179 | |||
180 | case "$host_os" in | ||
181 | mingw32ce* | cegcc*) | ||
182 | want_ecore_con="no" | ||
183 | want_ecore_ipc="no" | ||
184 | want_ecore_wince="yes" | ||
185 | want_ecore_evas_software_16_wince="yes" | ||
186 | ;; | ||
187 | mingw*) | ||
188 | want_notify_win32="yes" | ||
189 | want_curl="yes" | ||
190 | want_glib="auto" | ||
191 | want_gnutls="auto" | ||
192 | want_openssl="auto" | ||
193 | want_ecore_imf="yes" | ||
194 | want_ecore_win32="yes" | ||
195 | want_ecore_evas_software_gdi="yes" | ||
196 | want_ecore_evas_software_ddraw="yes" | ||
197 | want_ecore_evas_direct3d="yes" | ||
198 | want_ecore_evas_opengl_glew="yes" | ||
199 | want_ecore_evas_software_16_ddraw="auto" | ||
200 | want_ecore_evas_software_sdl="yes" | ||
201 | want_ecore_evas_gl_sdl="yes" | ||
202 | ;; | ||
203 | darwin*) | ||
204 | want_curl="yes" | ||
205 | want_glib="auto" | ||
206 | want_gnutls="auto" | ||
207 | want_openssl="auto" | ||
208 | want_ecore_imf="yes" | ||
209 | want_ecore_cocoa="yes" | ||
210 | want_ecore_evas_software_sdl="yes" | ||
211 | want_ecore_evas_gl_sdl="yes" | ||
212 | want_ecore_evas_gl_cocoa="yes" | ||
213 | ;; | ||
214 | *) | ||
215 | want_curl="yes" | ||
216 | want_glib="auto" | ||
217 | want_abstract_sockets="yes" | ||
218 | want_gnutls="auto" | ||
219 | want_openssl="auto" | ||
220 | want_cipher="yes" | ||
221 | want_signature="yes" | ||
222 | want_inotify="yes" | ||
223 | want_tslib="yes" | ||
224 | want_ecore_fb="yes" | ||
225 | want_ecore_imf="yes" | ||
226 | want_ecore_x="yes" | ||
227 | want_ecore_evas_software_x11="yes" | ||
228 | want_ecore_evas_opengl_x11="yes" | ||
229 | want_ecore_evas_software_16_x11="yes" | ||
230 | want_ecore_evas_software_8_x11="yes" | ||
231 | want_ecore_evas_software_xcb="no" | ||
232 | want_ecore_evas_software_sdl="yes" | ||
233 | want_ecore_evas_gl_sdl="yes" | ||
234 | want_ecore_evas_gl_cocoa="no" | ||
235 | want_ecore_evas_directfb="yes" | ||
236 | want_ecore_evas_fb="yes" | ||
237 | want_ecore_imf_xim="yes" | ||
238 | ;; | ||
239 | esac | ||
240 | |||
241 | case "$host_vendor" in | ||
242 | ps3*) | ||
243 | want_local_sockets="no" | ||
244 | ;; | ||
245 | esac | ||
246 | requirements_ecore="" | ||
247 | requirements_ecore_con="" | ||
248 | #requirements_ecore_config="" | ||
249 | requirements_ecore_directfb="" | ||
250 | requirements_ecore_evas="" | ||
251 | requirements_ecore_fb="" | ||
252 | requirements_ecore_file="" | ||
253 | requirements_ecore_imf="" | ||
254 | requirements_ecore_imf_evas="" | ||
255 | requirements_ecore_input="" | ||
256 | requirements_ecore_input_evas="" | ||
257 | requirements_ecore_ipc="" | ||
258 | requirements_ecore_cocoa="" | ||
259 | requirements_ecore_sdl="" | ||
260 | requirements_ecore_psl1ght="" | ||
261 | requirements_ecore_x="" | ||
262 | requirements_ecore_win32="" | ||
263 | requirements_ecore_wince="" | ||
264 | requirements_ecore_imf_xim="" | ||
265 | |||
266 | AC_CHECK_DECL([MAXHOSTNAMELEN],[FOUND_MAXHOSTNAMELEN=yes]) | ||
267 | |||
268 | if test x$FOUND_MAXHOSTNAMELEN != xyes ; then | ||
269 | AC_MSG_CHECKING([for header that defines MAXHOSTNAMELEN]) | ||
270 | |||
271 | FOUND_MAXHOSTNAMELEN='not found' | ||
272 | |||
273 | AC_COMPILE_IFELSE( | ||
274 | AC_LANG_PROGRAM([#include <sys/param.h>], | ||
275 | [int h = MAXHOSTNAMELEN;]), | ||
276 | [FOUND_MAXHOSTNAMELEN='sys/param.h' | ||
277 | AC_DEFINE(NEED_SYS_PARAM_H,1, | ||
278 | [Define to 1 if you need <sys/param.h> to define MAXHOSTNAMELEN])]) | ||
279 | |||
280 | AC_COMPILE_IFELSE( | ||
281 | AC_LANG_PROGRAM([#include <netdb.h>], | ||
282 | [int h = MAXHOSTNAMELEN;]), | ||
283 | [FOUND_MAXHOSTNAMELEN='netdb.h' | ||
284 | AC_DEFINE(NEED_NETDB_H,1, | ||
285 | [Define to 1 if you need <netdb.h> to define MAXHOSTNAMELEN])]) | ||
286 | |||
287 | AC_MSG_RESULT([$FOUND_MAXHOSTNAMELEN]) | ||
288 | fi | ||
289 | |||
290 | ### Additional options to configure | ||
291 | |||
292 | want_glib_integration_always=no | ||
293 | AC_ARG_ENABLE(glib-integration-always, | ||
294 | AC_HELP_STRING([--enable-glib-integration-always], [enable glib integration when ecore_init() is called always]), | ||
295 | [want_glib_integration_always=$enableval]) | ||
296 | |||
297 | if test "x${want_glib_integration_always}" = "xyes" ; then | ||
298 | AC_DEFINE([GLIB_INTEGRATION_ALWAYS], [1], [Always integrate glib if support compiled]) | ||
299 | want_glib=yes | ||
300 | fi | ||
301 | |||
302 | want_g_main_loop=no | ||
303 | AC_ARG_ENABLE(g-main-loop, | ||
304 | AC_HELP_STRING([--enable-g-main-loop], [ecore_main_loop based on g_main_loop]), | ||
305 | [want_g_main_loop=$enableval]) | ||
306 | |||
307 | if test "x${want_g_main_loop}" = "xyes" ; then | ||
308 | AC_DEFINE([USE_G_MAIN_LOOP], [1], [Use g_main_loop in ecore]) | ||
309 | want_glib=yes | ||
310 | fi | ||
311 | |||
312 | if test "x${want_glib_integration_always}" = "xyes" -a "x${want_g_main_loop}" = "xyes"; then | ||
313 | AC_MSG_ERROR([--enable-glib-integration-always and --enable-glib-main-loop are mutually exclusive]) | ||
314 | fi | ||
315 | |||
316 | # local sockets (ecore_con.c) | ||
317 | AC_ARG_ENABLE([local-sockets], | ||
318 | [AC_HELP_STRING([--disable-local-sockets], [disable local sockets.])], | ||
319 | [ | ||
320 | if test "x${enableval}" = "xyes" ; then | ||
321 | want_ecore_con_local_sockets="yes" | ||
322 | else | ||
323 | want_ecore_con_local_sockets="no" | ||
324 | fi | ||
325 | ], | ||
326 | [want_ecore_con_local_sockets=${want_local_sockets}]) | ||
327 | |||
328 | if test "x${want_ecore_con_local_sockets}" = "xyes" ; then | ||
329 | AC_DEFINE([HAVE_LOCAL_SOCKETS], [1], [Have local sockets support]) | ||
330 | fi | ||
331 | |||
332 | # abstract sockets (ecore_con.c) | ||
333 | AC_ARG_ENABLE([abstract-sockets], | ||
334 | [AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])], | ||
335 | [ | ||
336 | if test "x${enableval}" = "xyes" ; then | ||
337 | want_ecore_con_abstract_sockets="yes" | ||
338 | else | ||
339 | want_ecore_con_abstract_sockets="no" | ||
340 | fi | ||
341 | ], | ||
342 | [want_ecore_con_abstract_sockets=${want_abstract_sockets}]) | ||
343 | |||
344 | if test "x${want_ecore_con_abstract_sockets}" = "xyes" ; then | ||
345 | AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace]) | ||
346 | fi | ||
347 | |||
348 | # Simple X11 build/link | ||
349 | |||
350 | AC_ARG_ENABLE(simple-x11, | ||
351 | AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]), | ||
352 | [want_evas_simple_x11=$enableval]) | ||
353 | |||
354 | # XIM | ||
355 | AC_ARG_ENABLE([xim], | ||
356 | [AC_HELP_STRING([--disable-xim], [disable X Input Method.])], | ||
357 | [ | ||
358 | if test "x${enableval}" = "xyes" ; then | ||
359 | want_xim="yes" | ||
360 | else | ||
361 | want_xim="no" | ||
362 | fi | ||
363 | ], | ||
364 | [want_xim="yes"]) | ||
365 | |||
366 | if test "x${want_xim}" = "xyes" ; then | ||
367 | AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method]) | ||
368 | fi | ||
369 | |||
370 | # Unit tests | ||
371 | |||
372 | EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"]) | ||
373 | |||
374 | ### Checks for programs | ||
375 | |||
376 | m4_ifdef([AC_PROG_OBJC], | ||
377 | [ | ||
378 | AC_PROG_OBJC | ||
379 | _AM_DEPENDENCIES(OBJC) | ||
380 | ], | ||
381 | [ | ||
382 | AC_CHECK_TOOL([OBJC], [gcc]) | ||
383 | AC_SUBST([OBJC]) | ||
384 | AC_SUBST([OBJCFLAGS]) | ||
385 | ]) | ||
386 | m4_ifndef([am__fastdepOBJC], [ | ||
387 | AM_CONDITIONAL([am__fastdepOBJC], [false]) | ||
388 | ]) | ||
389 | |||
390 | AC_PROG_CXX | ||
391 | AC_PROG_CC | ||
392 | |||
393 | have_gnu_objc=${ac_cv_objc_compiler_gnu} | ||
394 | |||
395 | # doxygen program for documentation building | ||
396 | |||
397 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) | ||
398 | |||
399 | m4_ifdef([v_mic], | ||
400 | [ | ||
401 | EFL_COMPILER_FLAG([-Wall]) | ||
402 | EFL_COMPILER_FLAG([-W]) | ||
403 | ]) | ||
404 | |||
405 | # The first call to PKG_CHECK_MODULES is done conditionally, | ||
406 | # so we should include this here: | ||
407 | PKG_PROG_PKG_CONFIG | ||
408 | |||
409 | # Check whether pkg-config supports Requires.private | ||
410 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | ||
411 | pkgconfig_requires_private="Requires.private" | ||
412 | else | ||
413 | pkgconfig_requires_private="Requires" | ||
414 | fi | ||
415 | AC_SUBST(pkgconfig_requires_private) | ||
416 | |||
417 | ### Checks for some build time option | ||
418 | have_backtrace="no" | ||
419 | AC_CHECK_FUNCS([backtrace], [have_backtrace="yes"], []) | ||
420 | |||
421 | want_ecore_timer_dump="yes" | ||
422 | |||
423 | AC_ARG_ENABLE([ecore-timer-dump], | ||
424 | [AC_HELP_STRING([--disable-ecore-timer-dump], [disable tracking of timer allocation. @<:@default=enable@:>@])], | ||
425 | [want_ecore_timer_dump=$enableval], []) | ||
426 | |||
427 | if test "x$want_ecore_timer_dump" = "xyes" -a "x$have_backtrace" = "xyes"; then | ||
428 | AC_DEFINE(WANT_ECORE_TIMER_DUMP, [1], [Want Ecore_Timer dump infrastructure]) | ||
429 | fi | ||
430 | |||
431 | ### Checks for libraries | ||
432 | |||
433 | # Evil library for compilation on Windows | ||
434 | |||
435 | case "$host_os" in | ||
436 | mingw*) | ||
437 | PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0]) | ||
438 | AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed]) | ||
439 | requirements_ecore="evil ${requirements_ecore}" | ||
440 | requirements_ecore_evas="evil ${requirements_ecore_evas}" | ||
441 | requirements_ecore_file="evil ${requirements_ecore_file}" | ||
442 | requirements_ecore_imf="evil ${requirements_ecore_imf}" | ||
443 | requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}" | ||
444 | EFL_ECORE_BUILD="-DEFL_ECORE_BUILD" | ||
445 | EFL_ECORE_CON_BUILD="-DEFL_ECORE_CON_BUILD" | ||
446 | EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD" | ||
447 | EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD" | ||
448 | EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD" | ||
449 | EFL_ECORE_IMF_EVAS_BUILD="-DEFL_ECORE_IMF_EVAS_BUILD" | ||
450 | EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD" | ||
451 | EFL_ECORE_INPUT_EVAS_BUILD="-DEFL_ECORE_INPUT_EVAS_BUILD" | ||
452 | EFL_ECORE_IPC_BUILD="-DEFL_ECORE_IPC_BUILD" | ||
453 | ;; | ||
454 | esac | ||
455 | |||
456 | have_win32="" | ||
457 | have_wince="" | ||
458 | case "$host_os" in | ||
459 | mingw32ce* | cegcc*) | ||
460 | EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD" | ||
461 | requirements_ecore_wince="evil ${requirements_ecore_wince}" | ||
462 | have_wince="yes" | ||
463 | ;; | ||
464 | mingw*) | ||
465 | EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD" | ||
466 | EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD" | ||
467 | requirements_ecore_win32="evil ${requirements_ecore_win32}" | ||
468 | requirements_ecore_sdl="evil ${requirements_ecore_sdl}" | ||
469 | have_win32="yes" | ||
470 | ;; | ||
471 | esac | ||
472 | |||
473 | have_ps3="" | ||
474 | case "$host_vendor" in | ||
475 | ps3*) | ||
476 | have_ps3="yes" | ||
477 | PKG_CHECK_MODULES([ESCAPE], [escape]) | ||
478 | CFLAGS="$CFLAGS $ESCAPE_CFLAGS" | ||
479 | AC_DEFINE(HAVE_ESCAPE, 1, [Set to 1 if Escape library is installed]) | ||
480 | EFL_ECORE_PSL1GHT_BUILD="-DEFL_ECORE_PSL1GHT_BUILD" | ||
481 | requirements_ecore="escape ${requirements_ecore}" | ||
482 | requirements_ecore_evas="escape ${requirements_ecore_evas}" | ||
483 | requirements_ecore_file="escape ${requirements_ecore_file}" | ||
484 | requirements_ecore_imf="escape ${requirements_ecore_imf}" | ||
485 | requirements_ecore_imf_evas="escape ${requirements_ecore_imf_evas}" | ||
486 | requirements_ecore_sdl="escape ${requirements_ecore_sdl}" | ||
487 | want_ecore_psl1ght="yes" | ||
488 | want_ecore_evas_psl1ght="yes" | ||
489 | ;; | ||
490 | esac | ||
491 | |||
492 | AC_SUBST(EFL_ECORE_BUILD) | ||
493 | AC_SUBST(EFL_ECORE_CON_BUILD) | ||
494 | AC_SUBST(EFL_ECORE_EVAS_BUILD) | ||
495 | AC_SUBST(EFL_ECORE_FILE_BUILD) | ||
496 | AC_SUBST(EFL_ECORE_IMF_BUILD) | ||
497 | AC_SUBST(EFL_ECORE_IMF_EVAS_BUILD) | ||
498 | AC_SUBST(EFL_ECORE_INPUT_BUILD) | ||
499 | AC_SUBST(EFL_ECORE_INPUT_EVAS_BUILD) | ||
500 | AC_SUBST(EFL_ECORE_IPC_BUILD) | ||
501 | AC_SUBST(EFL_ECORE_WINCE_BUILD) | ||
502 | AC_SUBST(EFL_ECORE_WIN32_BUILD) | ||
503 | AC_SUBST(EFL_ECORE_SDL_BUILD) | ||
504 | AC_SUBST(EFL_ECORE_PSL1GHT_BUILD) | ||
505 | |||
506 | AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes") | ||
507 | AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes") | ||
508 | AM_CONDITIONAL(ECORE_HAVE_PS3, test "x${have_ps3}" = "xyes") | ||
509 | |||
510 | WIN32_LIBS="" | ||
511 | case "$host_os" in | ||
512 | mingw32ce* | cegcc*) | ||
513 | WIN32_LIBS="-lws2" | ||
514 | dlopen_libs="-ldl" | ||
515 | ;; | ||
516 | mingw*) | ||
517 | WIN32_LIBS="-lws2_32" | ||
518 | dlopen_libs="-ldl" | ||
519 | ;; | ||
520 | *) | ||
521 | AC_CHECK_LIB([c], [dlopen], | ||
522 | [], | ||
523 | [AC_CHECK_LIB([dl], [dlopen], | ||
524 | [dlopen_libs=-ldl]) | ||
525 | ]) | ||
526 | AC_CHECK_LIB([c], [clock_gettime], | ||
527 | [AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])], | ||
528 | [AC_CHECK_LIB([rt], [clock_gettime], | ||
529 | [ | ||
530 | rt_libs=-lrt | ||
531 | AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()]) | ||
532 | ]) | ||
533 | ]) | ||
534 | ;; | ||
535 | esac | ||
536 | AC_SUBST(WIN32_LIBS) | ||
537 | AC_SUBST(dlopen_libs) | ||
538 | AC_SUBST(rt_libs) | ||
539 | |||
540 | # Eina library | ||
541 | |||
542 | PKG_CHECK_MODULES(EINA, [eina >= 1.1.0]) | ||
543 | #FIXME check all the requirements when the eina move will be finished | ||
544 | requirements_ecore="eina >= 1.1.0 ${requirements_ecore}" | ||
545 | requirements_ecore_con="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_con}" | ||
546 | #requirements_ecore_config="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_config}" | ||
547 | requirements_ecore_directfb="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_directfb}" | ||
548 | requirements_ecore_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_evas}" | ||
549 | requirements_ecore_fb="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_fb}" | ||
550 | requirements_ecore_file="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_file}" | ||
551 | requirements_ecore_imf="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_imf}" | ||
552 | requirements_ecore_imf_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_imf_evas}" | ||
553 | requirements_ecore_input="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_input}" | ||
554 | requirements_ecore_input_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_input_evas}" | ||
555 | requirements_ecore_ipc="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_ipc}" | ||
556 | requirements_ecore_cocoa="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_cocoa}" | ||
557 | requirements_ecore_sdl="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_sdl}" | ||
558 | requirements_ecore_psl1ght="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_sdl}" | ||
559 | requirements_ecore_win32="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_win32}" | ||
560 | requirements_ecore_wince="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_wince}" | ||
561 | requirements_ecore_x="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_x}" | ||
562 | |||
563 | |||
564 | # glib support (main loop integration) | ||
565 | AC_ARG_ENABLE([glib], | ||
566 | [AC_HELP_STRING([--disable-glib], [disable glib support. @<:@default=detect@:>@])], | ||
567 | [want_glib=$enableval], []) | ||
568 | |||
569 | if test "x$want_glib" != "xno"; then | ||
570 | PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"]) | ||
571 | else | ||
572 | have_glib="no" | ||
573 | fi | ||
574 | if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then | ||
575 | AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.]) | ||
576 | elif test "x$have_glib" = "xyes"; then | ||
577 | AC_DEFINE(HAVE_GLIB, [1], [Have GLib]) | ||
578 | requirements_ecore="glib-2.0 ${requirements_ecore}" | ||
579 | fi | ||
580 | |||
581 | |||
582 | # SDL library (ecore_sdl) | ||
583 | |||
584 | have_sdl="no" | ||
585 | PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"]) | ||
586 | if test "x${have_sdl}" != "xyes" ; then | ||
587 | SDL_CONFIG="sdl-config" | ||
588 | AC_ARG_WITH([sdl-config], | ||
589 | [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])], | ||
590 | [ | ||
591 | SDL_CONFIG=$withval | ||
592 | AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config]) | ||
593 | ]) | ||
594 | |||
595 | AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH]) | ||
596 | |||
597 | if test -n "$SDL_CONFIG" ; then | ||
598 | SDL_CFLAGS=`$SDL_CONFIG --cflags` | ||
599 | SDL_LIBS=`$SDL_CONFIG --libs` | ||
600 | AC_SUBST(SDL_CFLAGS) | ||
601 | AC_SUBST(SDL_LIBS) | ||
602 | have_sdl="yes" | ||
603 | fi | ||
604 | fi | ||
605 | |||
606 | if test "x${have_sdl}" = "xyes" ; then | ||
607 | PKG_CHECK_EXISTS([sdl >= 1.3.0], | ||
608 | [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])]) | ||
609 | fi | ||
610 | |||
611 | |||
612 | # DirectFB library (ecore_directfb) | ||
613 | |||
614 | PKG_CHECK_MODULES([DIRECTFB], | ||
615 | [directfb >= 0.9.16], | ||
616 | [have_directfb="yes"], | ||
617 | [have_directfb="no"]) | ||
618 | |||
619 | |||
620 | # Eet library (ecore_config) | ||
621 | |||
622 | #PKG_CHECK_MODULES([EET], | ||
623 | # [eet >= 1.4.0], | ||
624 | # [have_eet="yes"], | ||
625 | # [have_eet="no"]) | ||
626 | |||
627 | |||
628 | # Xlib and XCB (ecore_x) | ||
629 | |||
630 | have_x="no" | ||
631 | have_ecore_x="no" | ||
632 | have_ecore_x_xlib="no" | ||
633 | have_ecore_x_xcb="no" | ||
634 | |||
635 | x_dir=""; | ||
636 | x_includes=""; | ||
637 | x_cflags=""; | ||
638 | x_libs=""; | ||
639 | |||
640 | ecore_x_libs_private="" | ||
641 | |||
642 | AC_ARG_ENABLE(ecore-x-composite, | ||
643 | [AC_HELP_STRING([--disable-ecore-x-composite], | ||
644 | [disable the ecore_x support for Xcomposite extension. | ||
645 | @<:@default=detect@:>@])], | ||
646 | [want_ecore_x_composite=$enableval]) | ||
647 | |||
648 | AC_ARG_ENABLE(ecore-x-damage, | ||
649 | [AC_HELP_STRING([--disable-ecore-x-damage], | ||
650 | [disable the ecore_x support for Xdamage extension. | ||
651 | @<:@default=detect@:>@])], | ||
652 | [want_ecore_x_damage=$enableval]) | ||
653 | |||
654 | AC_ARG_ENABLE(ecore-x-dpms, | ||
655 | [AC_HELP_STRING([--disable-ecore-x-dpms], | ||
656 | [disable the ecore_x support for Xdpms extension. | ||
657 | @<:@default=detect@:>@])], | ||
658 | [want_ecore_x_dpms=$enableval]) | ||
659 | |||
660 | AC_ARG_ENABLE(ecore-x-randr, | ||
661 | [AC_HELP_STRING([--disable-ecore-x-randr], | ||
662 | [disable the ecore_x support for Xrandr extension. | ||
663 | @<:@default=detect@:>@])], | ||
664 | [want_ecore_x_randr=$enableval]) | ||
665 | |||
666 | AC_ARG_ENABLE(ecore-x-render, | ||
667 | [AC_HELP_STRING([--disable-ecore-x-render], | ||
668 | [disable the ecore_x support for Xrender extension. | ||
669 | @<:@default=detect@:>@])], | ||
670 | [want_ecore_x_render=$enableval]) | ||
671 | |||
672 | AC_ARG_ENABLE(ecore-x-screensaver, | ||
673 | [AC_HELP_STRING([--disable-ecore-x-screensaver], | ||
674 | [disable the ecore_x support for Xscreensaver extension. | ||
675 | @<:@default=detect@:>@])], | ||
676 | [want_ecore_x_screensaver=$enableval]) | ||
677 | |||
678 | AC_ARG_ENABLE(ecore-x-shape, | ||
679 | [AC_HELP_STRING([--disable-ecore-x-shape], | ||
680 | [disable the ecore_x support for Xshape extension. | ||
681 | @<:@default=detect@:>@])], | ||
682 | [want_ecore_x_shape=$enableval]) | ||
683 | |||
684 | AC_ARG_ENABLE(ecore-x-gesture, | ||
685 | [AC_HELP_STRING([--enable-ecore-x-gesture], | ||
686 | [enable the ecore_x support for Xgesture extension. | ||
687 | @<:@default=detect@:>@])], | ||
688 | [want_ecore_x_gesture=$enableval]) | ||
689 | |||
690 | AC_ARG_ENABLE(ecore-x-sync, | ||
691 | [AC_HELP_STRING([--disable-ecore-x-sync], | ||
692 | [disable the ecore_x support for Xsync extension. | ||
693 | @<:@default=detect@:>@])], | ||
694 | [want_ecore_x_sync=$enableval]) | ||
695 | |||
696 | AC_ARG_ENABLE(ecore-x-xfixes, | ||
697 | [AC_HELP_STRING([--disable-ecore-x-xfixes], | ||
698 | [disable the ecore_x support for Xfixes extension. | ||
699 | @<:@default=detect@:>@])], | ||
700 | [want_ecore_x_xfixes=$enableval]) | ||
701 | |||
702 | AC_ARG_ENABLE(ecore-x-xinerama, | ||
703 | [AC_HELP_STRING([--disable-ecore-x-xinerama], | ||
704 | [disable the ecore_x support for Xinerama extension. | ||
705 | @<:@default=detect@:>@])], | ||
706 | [want_ecore_x_xinerama=$enableval]) | ||
707 | |||
708 | AC_ARG_ENABLE(ecore-x-xprint, | ||
709 | [AC_HELP_STRING([--disable-ecore-x-xprint], | ||
710 | [disable the ecore_x support for Xprint extension. | ||
711 | @<:@default=detect@:>@])], | ||
712 | [want_ecore_x_xprint=$enableval]) | ||
713 | |||
714 | AC_ARG_ENABLE(ecore-x-xtest, | ||
715 | [AC_HELP_STRING([--disable-ecore-x-xtest], | ||
716 | [disable the ecore_x support for Xtest extension. | ||
717 | @<:@default=detect@:>@])], | ||
718 | [want_ecore_x_xtest=$enableval]) | ||
719 | |||
720 | AC_ARG_ENABLE(ecore-x-cursor, | ||
721 | [AC_HELP_STRING([--disable-ecore-x-cursor], | ||
722 | [disable the ecore_x support for Xcursor extension. | ||
723 | @<:@default=detect@:>@])], | ||
724 | [want_ecore_x_cursor=$enableval]) | ||
725 | |||
726 | AC_ARG_ENABLE(ecore-x-input, | ||
727 | [AC_HELP_STRING([--disable-ecore-x-input], | ||
728 | [disable the ecore_x support for Xinput/Xinput2 extension. | ||
729 | @<:@default=detect@:>@])], | ||
730 | [want_ecore_x_input=$enableval]) | ||
731 | |||
732 | AC_ARG_ENABLE(ecore-x-dri, | ||
733 | [AC_HELP_STRING([--disable-ecore-x-dri], | ||
734 | [disable the ecore_x support for DRI extension. | ||
735 | @<:@default=detect@:>@])], | ||
736 | [want_ecore_x_dri=$enableval]) | ||
737 | |||
738 | AC_ARG_ENABLE(ecore-x-xcb, | ||
739 | [AC_HELP_STRING([--enable-ecore-x-xcb], | ||
740 | [enable the ecore_x module with XCB backend. @<:@default=disabled@:>@])], | ||
741 | [want_ecore_x_xcb=$enableval]) | ||
742 | |||
743 | AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built) | ||
744 | AC_MSG_RESULT($want_ecore_x_xcb) | ||
745 | |||
746 | if test "x$want_ecore_x_xcb" = "xyes" ; then | ||
747 | |||
748 | AC_MSG_CHECKING([keysym definitions]) | ||
749 | KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 | ||
750 | FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" | ||
751 | for i in $FILES; do | ||
752 | if test -f "$KEYSYMDEFDIR/$i"; then | ||
753 | KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" | ||
754 | elif test "x$i" = "xkeysymdef.h"; then | ||
755 | AC_MSG_ERROR([Cannot find keysymdef.h]) | ||
756 | fi | ||
757 | done | ||
758 | AC_MSG_RESULT([$KEYSYMDEFS]) | ||
759 | AC_SUBST(KEYSYMDEFS) | ||
760 | |||
761 | have_iconv="no" | ||
762 | AC_ARG_WITH([iconv-link], | ||
763 | AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]), | ||
764 | [ | ||
765 | LIBS="$withval $LIBS" | ||
766 | have_iconv="yes" | ||
767 | ]) | ||
768 | |||
769 | AC_MSG_CHECKING(for explicit iconv link options) | ||
770 | if test "x${iconv_libs}" = "x" ; then | ||
771 | AC_MSG_RESULT([no explicit iconv link option]) | ||
772 | else | ||
773 | AC_MSG_RESULT([$iconv_libs]) | ||
774 | fi | ||
775 | |||
776 | if test "x${have_iconv}" = "xno" ; then | ||
777 | AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"]) | ||
778 | |||
779 | if test "x${have_iconv}" = "xyes" ; then | ||
780 | AC_MSG_CHECKING([whether iconv() is in libc]) | ||
781 | |||
782 | AC_LINK_IFELSE( | ||
783 | [AC_LANG_PROGRAM( | ||
784 | [[ | ||
785 | #include <stdlib.h> | ||
786 | #include <iconv.h> | ||
787 | ]], | ||
788 | [[ | ||
789 | iconv_t ic; | ||
790 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
791 | ]])], | ||
792 | [have_iconv="yes"], | ||
793 | [have_iconv="no"]) | ||
794 | |||
795 | AC_MSG_RESULT([${have_iconv}]) | ||
796 | fi | ||
797 | |||
798 | if test "x${have_iconv}" = "xno" ; then | ||
799 | AC_MSG_CHECKING([whether iconv() is in libiconv.a]) | ||
800 | |||
801 | LIBS_save="${LIBS}" | ||
802 | LIBS="-liconv $LIBS" | ||
803 | AC_LINK_IFELSE( | ||
804 | [AC_LANG_PROGRAM( | ||
805 | [[ | ||
806 | #include <stdlib.h> | ||
807 | #include <iconv.h> | ||
808 | ]], | ||
809 | [[ | ||
810 | iconv_t ic; | ||
811 | size_t count; | ||
812 | count = iconv(ic, NULL, NULL, NULL, NULL); | ||
813 | ]])], | ||
814 | [have_iconv="yes"], | ||
815 | [ | ||
816 | have_iconv="no" | ||
817 | LIBS=${LIBS_save} | ||
818 | ]) | ||
819 | |||
820 | AC_MSG_RESULT([${have_iconv}]) | ||
821 | fi | ||
822 | |||
823 | if test "x${have_iconv}" = "xno" ; then | ||
824 | AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a]) | ||
825 | |||
826 | LIBS_save="${LIBS}" | ||
827 | LIBS="-liconv_plug $LIBS" | ||
828 | AC_LINK_IFELSE( | ||
829 | [AC_LANG_PROGRAM( | ||
830 | [[ | ||
831 | #include <stdlib.h> | ||
832 | #include <iconv.h> | ||
833 | ]], | ||
834 | [[ | ||
835 | iconv_t ic; | ||
836 | size_t count = iconv(ic, NULL, NULL, NULL, NULL); | ||
837 | ]])], | ||
838 | [have_iconv="yes"], | ||
839 | [ | ||
840 | have_iconv="no" | ||
841 | LIBS=${LIBS_save} | ||
842 | ]) | ||
843 | |||
844 | AC_MSG_RESULT([${have_iconv}]) | ||
845 | fi | ||
846 | |||
847 | if test "x${have_iconv}" = "xyes" ; then | ||
848 | AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed]) | ||
849 | fi | ||
850 | fi | ||
851 | |||
852 | PKG_CHECK_MODULES(ECORE_XCB, x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8, | ||
853 | [ have_ecore_x_xcb="yes" | ||
854 | requirements_ecore_x="x11-xcb xcb xcb-shm xcb-event xcb-icccm xcb-util xcb-image xcb-keysyms ${requirements_ecore_x}" | ||
855 | ], | ||
856 | [ | ||
857 | PKG_CHECK_MODULES(ECORE_XCB, x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms, | ||
858 | [ have_ecore_x_xcb="yes" | ||
859 | AC_DEFINE(OLD_XCB_VERSION, 1, [xcb version]) | ||
860 | requirements_ecore_x="x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" ], | ||
861 | [ have_ecore_x_xcb="no" ]) | ||
862 | ], | ||
863 | [have_ecore_x_xcb="no" ]) | ||
864 | |||
865 | if test "x$have_ecore_x_xcb" = "xyes" ; then | ||
866 | |||
867 | PKG_CHECK_MODULES([PIXMAN], | ||
868 | [pixman-1], | ||
869 | [ | ||
870 | have_pixman="yes" | ||
871 | AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering]) | ||
872 | requirements_ecore_x="pixman-1 ${requirements_ecore_x}" | ||
873 | ], | ||
874 | [ | ||
875 | if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then | ||
876 | AC_MSG_ERROR([Pixman not found (strict dependencies checking)]) | ||
877 | fi | ||
878 | ]) | ||
879 | |||
880 | if test "x$want_ecore_x_composite" != "xno"; then | ||
881 | PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite, | ||
882 | [ have_ecore_x_xcb_composite="yes" | ||
883 | requirements_ecore_x="xcb-composite ${requirements_ecore_x}" | ||
884 | AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ], | ||
885 | [ have_ecore_x_xcb_composite="no" ]) | ||
886 | else | ||
887 | have_ecore_x_xcb_composite="no" | ||
888 | AC_MSG_NOTICE("composite extension explicitly disabled") | ||
889 | fi | ||
890 | |||
891 | if test "x$want_ecore_x_damage" != "xno"; then | ||
892 | PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage, | ||
893 | [ have_ecore_x_xcb_damage="yes" | ||
894 | requirements_ecore_x="xcb-damage ${requirements_ecore_x}" | ||
895 | AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ], | ||
896 | [ have_ecore_x_xcb_damage="no" ]) | ||
897 | else | ||
898 | have_ecore_x_xcb_damage="no" | ||
899 | AC_MSG_NOTICE("damage extension explicitly disabled") | ||
900 | fi | ||
901 | |||
902 | if test "x$want_ecore_x_dpms" != "xno"; then | ||
903 | PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms, | ||
904 | [ have_ecore_x_xcb_dpms="yes" | ||
905 | requirements_ecore_x="xcb-dpms ${requirements_ecore_x}" | ||
906 | AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ], | ||
907 | [ have_ecore_x_xcb_dpms="no" ]) | ||
908 | else | ||
909 | have_ecore_x_xcb_dpms="no" | ||
910 | AC_MSG_NOTICE("dpms extension explicitly disabled") | ||
911 | fi | ||
912 | |||
913 | if test "x$want_ecore_x_randr" != "xno"; then | ||
914 | PKG_CHECK_MODULES(XCB_RANDR, xcb-randr, | ||
915 | [ have_ecore_x_xcb_randr="yes" | ||
916 | requirements_ecore_x="xcb-randr ${requirements_ecore_x}" | ||
917 | AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ], | ||
918 | [ have_ecore_x_xcb_randr="no" ]) | ||
919 | else | ||
920 | have_ecore_x_xcb_randr="no" | ||
921 | AC_MSG_NOTICE("randr extension explicitly disabled") | ||
922 | fi | ||
923 | |||
924 | if test "x$want_ecore_x_render" != "xno"; then | ||
925 | PKG_CHECK_MODULES(XCB_RENDER, xcb-render xcb-renderutil, | ||
926 | [ have_ecore_x_xcb_render="yes" | ||
927 | requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}" | ||
928 | AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ], | ||
929 | [ have_ecore_x_xcb_render="no" ]) | ||
930 | else | ||
931 | have_ecore_x_xcb_render="no" | ||
932 | AC_MSG_NOTICE("render extension explicitly disabled") | ||
933 | fi | ||
934 | |||
935 | if test "x$want_ecore_x_screensaver" != "xno"; then | ||
936 | PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver, | ||
937 | [ have_ecore_x_xcb_screensaver="yes" | ||
938 | requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}" | ||
939 | AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ], | ||
940 | [ have_ecore_x_xcb_screensaver="no" ]) | ||
941 | else | ||
942 | have_ecore_x_xcb_screensaver="no" | ||
943 | AC_MSG_NOTICE("screensaver extension explicitly disabled") | ||
944 | fi | ||
945 | |||
946 | if test "x$want_ecore_x_shape" != "xno"; then | ||
947 | PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape, | ||
948 | [ have_ecore_x_xcb_shape="yes" | ||
949 | requirements_ecore_x="xcb-shape ${requirements_ecore_x}" | ||
950 | AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ], | ||
951 | [ have_ecore_x_xcb_shape="no" ]) | ||
952 | else | ||
953 | have_ecore_x_xcb_shape="no" | ||
954 | AC_MSG_NOTICE("shape extension explicitly disabled") | ||
955 | fi | ||
956 | |||
957 | if test "x$want_ecore_x_gesture" != "xno"; then | ||
958 | PKG_CHECK_MODULES(XCB_XGESTURE, xcb-gesture, | ||
959 | [ have_ecore_x_xcb_gesture="yes" | ||
960 | requirements_ecore_x="xcb-gesture ${requirements_ecore_x}" | ||
961 | AC_DEFINE(ECORE_XCB_XGESTURE, 1, [Build support for XCB gesture]) ], | ||
962 | [ have_ecore_x_xcb_gesture="no" ]) | ||
963 | else | ||
964 | have_ecore_x_xcb_gesture="no" | ||
965 | AC_MSG_NOTICE("gesture extension explicitly disabled") | ||
966 | fi | ||
967 | |||
968 | if test "x$want_ecore_x_sync" != "xno"; then | ||
969 | PKG_CHECK_MODULES(XCB_SYNC, xcb-sync, | ||
970 | [ have_ecore_x_xcb_sync="yes" | ||
971 | requirements_ecore_x="xcb-sync ${requirements_ecore_x}" | ||
972 | AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ], | ||
973 | [ have_ecore_x_xcb_sync="no" ]) | ||
974 | else | ||
975 | have_ecore_x_xcb_sync="no" | ||
976 | AC_MSG_NOTICE("sync extension explicitly disabled") | ||
977 | fi | ||
978 | |||
979 | if test "x$want_ecore_x_xfixes" != "xno"; then | ||
980 | PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes, | ||
981 | [ have_ecore_x_xcb_xfixes="yes" | ||
982 | requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}" | ||
983 | AC_DEFINE(ECORE_XCB_XFIXES, 1, [Build support for XCB xfixes]) ], | ||
984 | [ have_ecore_x_xcb_xfixes="no" ]) | ||
985 | else | ||
986 | have_ecore_x_xcb_xfixes="no" | ||
987 | AC_MSG_NOTICE("xfixes extension explicitly disabled") | ||
988 | fi | ||
989 | |||
990 | if test "x$want_ecore_x_xinerama" != "xno"; then | ||
991 | PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama, | ||
992 | [ have_ecore_x_xcb_xinerama="yes" | ||
993 | requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}" | ||
994 | AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ], | ||
995 | [ have_ecore_x_xcb_xinerama="no" ]) | ||
996 | else | ||
997 | have_ecore_x_xcb_xinerama="no" | ||
998 | AC_MSG_NOTICE("xinerama extension explicitly disabled") | ||
999 | fi | ||
1000 | |||
1001 | if test "x$want_ecore_x_xprint" != "xno"; then | ||
1002 | PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint, | ||
1003 | [ have_ecore_x_xcb_xprint="yes" | ||
1004 | requirements_ecore_x="xcb-xprint ${requirements_ecore_x}" | ||
1005 | AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ], | ||
1006 | [ have_ecore_x_xcb_xprint="no" ]) | ||
1007 | else | ||
1008 | have_ecore_x_xcb_xprint="no" | ||
1009 | AC_MSG_NOTICE("xprint extension explicitly disabled") | ||
1010 | fi | ||
1011 | |||
1012 | if test "x$want_ecore_x_xtest" != "xno"; then | ||
1013 | PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest, | ||
1014 | [ have_ecore_x_xcb_xtest="yes" | ||
1015 | requirements_ecore_x="xcb-xtest ${requirements_ecore_x}" | ||
1016 | AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ], | ||
1017 | [ have_ecore_x_xcb_xtest="no" ]) | ||
1018 | else | ||
1019 | have_ecore_x_xcb_xtest="no" | ||
1020 | AC_MSG_NOTICE("xtest extension explicitly disabled") | ||
1021 | fi | ||
1022 | |||
1023 | # input extension disabled currently in xcb as xcb-input has some issues | ||
1024 | want_ecore_x_input="no" | ||
1025 | if test "x$want_ecore_x_input" != "xno"; then | ||
1026 | PKG_CHECK_MODULES(XCB_XINPUT, xcb-xinput, | ||
1027 | [ have_ecore_x_xcb_xinput="yes" | ||
1028 | requirements_ecore_x="xcb-xinput ${requirements_ecore_x}" | ||
1029 | AC_DEFINE(ECORE_XCB_XINPUT, 1, [Build support for XCB xinput]) ], | ||
1030 | [ have_ecore_x_xcb_xinput="no" ]) | ||
1031 | else | ||
1032 | have_ecore_x_xcb_xinput="no" | ||
1033 | AC_MSG_NOTICE("xinput extension explicitly disabled") | ||
1034 | fi | ||
1035 | |||
1036 | if test "x$want_ecore_x_cursor" != "xno"; then | ||
1037 | PKG_CHECK_MODULES(XCB_CURSOR, xcb-render xcb-renderutil, | ||
1038 | [ have_ecore_x_xcb_cursor="yes" | ||
1039 | requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}" | ||
1040 | AC_DEFINE(ECORE_XCB_CURSOR, 1, [Build support for XCB cursor]) ], | ||
1041 | [ have_ecore_x_xcb_cursor="no" ]) | ||
1042 | else | ||
1043 | have_ecore_x_xcb_cursor="no" | ||
1044 | AC_MSG_NOTICE("cursor extension explicitly disabled") | ||
1045 | fi | ||
1046 | |||
1047 | # if test "x$want_ecore_x_dri" != "xno"; then | ||
1048 | # PKG_CHECK_MODULES(XCB_DRI, xcb-dri2, | ||
1049 | # [ have_ecore_x_xcb_dri="yes" | ||
1050 | # requirements_ecore_x="xcb-dri2 ${requirements_ecore_x}" | ||
1051 | # AC_DEFINE(ECORE_XCB_DRI, 1, [Build support for XCB dri/dri2]) ], | ||
1052 | # [ have_ecore_x_xcb_dri="no" ]) | ||
1053 | # else | ||
1054 | # have_ecore_x_xcb_dri="no" | ||
1055 | # AC_MSG_NOTICE("dri extension explicitly disabled") | ||
1056 | # fi | ||
1057 | |||
1058 | AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.]) | ||
1059 | |||
1060 | x_cflags=$ECORE_XCB_CFLAGS | ||
1061 | x_libs=$ECORE_XCB_LIBS | ||
1062 | have_x="yes" | ||
1063 | |||
1064 | have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB" | ||
1065 | AC_SUBST(have_ecore_x_xcb_define) | ||
1066 | fi | ||
1067 | fi | ||
1068 | |||
1069 | if ! test "x$have_ecore_x_xcb" = "xyes" ; then | ||
1070 | AC_PATH_XTRA | ||
1071 | AC_CHECK_HEADER(X11/X.h, | ||
1072 | [ | ||
1073 | if test "x$want_evas_simple_x11" = "xyes"; then | ||
1074 | x_libs="${x_libs} -lX11 -lXext" | ||
1075 | else | ||
1076 | x_dir=${x_dir:-/usr/X11R6} | ||
1077 | x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} | ||
1078 | x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" | ||
1079 | fi | ||
1080 | have_ecore_x_xlib="yes" | ||
1081 | ] | ||
1082 | ) | ||
1083 | |||
1084 | if test "x$have_ecore_x_xlib" = "xyes"; then | ||
1085 | Xcursor_libs="" | ||
1086 | Xcursor_cflags="" | ||
1087 | use_Xcursor="no" | ||
1088 | PCFLAGS=$CFLAGS | ||
1089 | CFLAGS="$x_cflags $x_includes" | ||
1090 | |||
1091 | if test "x$want_ecore_x_cursor" = "xyes"; then | ||
1092 | AC_CHECK_HEADER(X11/Xcursor/Xcursor.h, | ||
1093 | [ | ||
1094 | AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor, | ||
1095 | [ | ||
1096 | AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor]) | ||
1097 | Xcursor_cflags="" | ||
1098 | Xcursor_libs="-lXcursor" | ||
1099 | use_Xcursor="yes" | ||
1100 | ], [ | ||
1101 | Xcursor_cflags="" | ||
1102 | Xcursor_libs="" | ||
1103 | use_Xcursor="no" | ||
1104 | ], [ | ||
1105 | $x_libs -lXrender | ||
1106 | ] | ||
1107 | ) | ||
1108 | ], [ | ||
1109 | Xcursor_cflags="" | ||
1110 | Xcursor_libs="" | ||
1111 | use_Xcursor="no" | ||
1112 | ], [ | ||
1113 | #include <X11/Xlib.h> | ||
1114 | ] | ||
1115 | ) | ||
1116 | CFLAGS=$PCFLAGS | ||
1117 | else | ||
1118 | Xcursor_cflags="" | ||
1119 | Xcursor_libs="" | ||
1120 | use_Xcursor="no" | ||
1121 | AC_MSG_NOTICE("Xcursor explicitly disabled") | ||
1122 | fi | ||
1123 | |||
1124 | AC_SUBST(Xcursor_cflags) | ||
1125 | AC_SUBST(Xcursor_libs) | ||
1126 | |||
1127 | ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat], [$want_ecore_x_xkb]) | ||
1128 | ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension], [$want_ecore_x_composite]) | ||
1129 | ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract], [$want_ecore_x_damage]) | ||
1130 | ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension], [$want_ecore_x_dpms]) | ||
1131 | if test "x$use_xdpms" = "xno" ; then | ||
1132 | ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension], [$want_ecore_x_dpms]) | ||
1133 | fi | ||
1134 | ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion], [$want_ecore_x_xfixes]) | ||
1135 | ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens], [$want_ecore_x_xinerama]) | ||
1136 | ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens], [$want_ecore_x_xprint]) | ||
1137 | ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent], [$want_ecore_x_randr]) | ||
1138 | ECORE_CHECK_X_EXTENSION([Xgesture], [gesture.h], [Xgesture], [XGestureQueryExtension], [$want_ecore_x_gesture]) | ||
1139 | ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat], [$want_ecore_x_render]) | ||
1140 | ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent], [$want_ecore_x_xtest]) | ||
1141 | ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput], [$want_ecore_x_screensaver]) | ||
1142 | ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice], [$want_ecore_x_input]) | ||
1143 | |||
1144 | ecore_x_libs_private="${Xcursor_libs} ${XKB_LIBS} ${XCOMPOSITE_LIBS} ${XGESTURE_LIBS} ${XDAMAGE_LIBS} ${XDPMS_LIBS} ${XFIXES_LIBS} ${XINERAMA_LIBS} ${XPRINT_LIBS} ${XRANDR_LIBS} ${XRENDER_LIBS} ${XTEST_LIBS} ${XSS_LIBS} ${XI2_LIBS}" | ||
1145 | |||
1146 | AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.]) | ||
1147 | have_x="yes" | ||
1148 | |||
1149 | have_ecore_x_xlib="yes" | ||
1150 | fi | ||
1151 | fi | ||
1152 | |||
1153 | AC_SUBST(x_cflags) | ||
1154 | AC_SUBST(x_includes) | ||
1155 | AC_SUBST(x_libs) | ||
1156 | AC_SUBST(ecore_x_libs_private) | ||
1157 | |||
1158 | AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes) | ||
1159 | AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes) | ||
1160 | |||
1161 | |||
1162 | # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas) | ||
1163 | |||
1164 | PKG_CHECK_MODULES([EVAS], [evas >= 1.1.0], | ||
1165 | [have_evas="yes"], | ||
1166 | [have_evas="no"]) | ||
1167 | |||
1168 | |||
1169 | ### Checks for header files | ||
1170 | |||
1171 | AC_CHECK_HEADERS([sys/select.h sys/prctl.h]) | ||
1172 | |||
1173 | EFL_CHECK_PATH_MAX | ||
1174 | |||
1175 | AC_HEADER_SYS_WAIT | ||
1176 | AC_SYS_LARGEFILE | ||
1177 | |||
1178 | have_addrinfo="no" | ||
1179 | case "$host_os" in | ||
1180 | mingw* | cegcc*) | ||
1181 | AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.]) | ||
1182 | AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.]) | ||
1183 | AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.]) | ||
1184 | have_addrinfo="yes" | ||
1185 | ;; | ||
1186 | *) | ||
1187 | AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h]) | ||
1188 | ;; | ||
1189 | esac | ||
1190 | |||
1191 | # ecore_con | ||
1192 | |||
1193 | AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h sys/socket.h sys/un.h ws2tcpip.h netdb.h]) | ||
1194 | |||
1195 | if test "x${ac_cv_header_netdb_h}" = "xyes" ; then | ||
1196 | have_addrinfo="yes" | ||
1197 | fi | ||
1198 | |||
1199 | # Framebuffer (ecore_fb) | ||
1200 | have_fb="no" | ||
1201 | AC_CHECK_HEADER([linux/fb.h], | ||
1202 | [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])]) | ||
1203 | |||
1204 | # Cocoa header files (ecore_cocoa) | ||
1205 | |||
1206 | if test "x${want_ecore_cocoa}" = "xyes" ; then | ||
1207 | cocoa_ldflags="" | ||
1208 | have_cocoa="no" | ||
1209 | m4_ifdef([AC_PROG_OBJC], | ||
1210 | [ | ||
1211 | if test "x${have_gnu_objc}" = "xyes" ; then | ||
1212 | AC_LANG_PUSH([Objective C]) | ||
1213 | LIBS_save="$LIBS" | ||
1214 | LIBS="$LIBS -framework Cocoa" | ||
1215 | AC_LINK_IFELSE( | ||
1216 | [AC_LANG_PROGRAM( | ||
1217 | [[ | ||
1218 | #include <Cocoa/Cocoa.h> | ||
1219 | ]], | ||
1220 | [[ | ||
1221 | NSWindow *window; | ||
1222 | window = [[NSWindow alloc] | ||
1223 | initWithContentRect:NSMakeRect(0, 0, 1, 1) | ||
1224 | styleMask:(NSTitledWindowMask) | ||
1225 | backing:NSBackingStoreBuffered | ||
1226 | defer:NO | ||
1227 | screen:nil | ||
1228 | ]; | ||
1229 | ]])], | ||
1230 | [ | ||
1231 | have_cocoa="yes" | ||
1232 | cocoa_ldflags="-framework Cocoa" | ||
1233 | ], | ||
1234 | [have_cocoa="no"]) | ||
1235 | LIBS="$LIBS_save" | ||
1236 | AC_MSG_CHECKING([whether Cocoa framework is supported]) | ||
1237 | AC_MSG_RESULT([${have_cocoa}]) | ||
1238 | AC_LANG_POP([Objective C]) | ||
1239 | fi | ||
1240 | ]) | ||
1241 | fi | ||
1242 | AC_SUBST(cocoa_ldflags) | ||
1243 | |||
1244 | want_epoll=yes | ||
1245 | AC_ARG_ENABLE(epoll, | ||
1246 | AC_HELP_STRING([--enable-epoll], [enable or disable epoll support]), | ||
1247 | [want_epoll=$enableval]) | ||
1248 | |||
1249 | if test "x${want_epoll}" = "xyes" ; then | ||
1250 | # check for epoll support | ||
1251 | AC_CHECK_HEADERS([sys/epoll.h]) | ||
1252 | fi | ||
1253 | |||
1254 | # timerfd_create | ||
1255 | AC_CHECK_HEADERS([sys/timerfd.h]) | ||
1256 | AC_CHECK_FUNCS(timerfd_create) | ||
1257 | |||
1258 | # thread support | ||
1259 | |||
1260 | EFL_CHECK_THREADS( | ||
1261 | [ | ||
1262 | if test "x${_efl_have_posix_threads}" = "xyes" ; then | ||
1263 | have_threads="POSIX" | ||
1264 | else | ||
1265 | if test "x${_efl_have_win32_threads}" = "xyes" ; then | ||
1266 | have_threads="Win32" | ||
1267 | else | ||
1268 | have_threads="no" | ||
1269 | fi | ||
1270 | fi | ||
1271 | ], | ||
1272 | [have_threads="no"]) | ||
1273 | |||
1274 | ### enable thread safety if we have threads, unless specifically asked not to | ||
1275 | if test "x${have_threads}" = "xno" | ||
1276 | then | ||
1277 | want_thread_safety="no" | ||
1278 | else | ||
1279 | want_thread_safety="no" # to be changed to yes when ready | ||
1280 | AC_ARG_ENABLE(thread-safety, | ||
1281 | AC_HELP_STRING([--enable-thread-safety], [enable or disable thread safety]), | ||
1282 | [want_thread_safety=$enableval]) | ||
1283 | fi | ||
1284 | |||
1285 | if test "x${want_thread_safety}" = "xyes" | ||
1286 | then | ||
1287 | AC_DEFINE([HAVE_THREAD_SAFETY], [1], [Define to enable thread safety]) | ||
1288 | fi | ||
1289 | |||
1290 | ### Checks for types | ||
1291 | AC_CHECK_SIZEOF(int, 4) | ||
1292 | AC_CHECK_SIZEOF(long, 4) | ||
1293 | |||
1294 | |||
1295 | ### Checks for structures | ||
1296 | |||
1297 | |||
1298 | ### Checks for compiler characteristics | ||
1299 | AC_PROG_CC_STDC | ||
1300 | AC_C_CONST | ||
1301 | AC_C_BIGENDIAN | ||
1302 | AC_HEADER_STDC | ||
1303 | AC_C___ATTRIBUTE__ | ||
1304 | |||
1305 | WIN32_CPPFLAGS="" | ||
1306 | WIN32_CFLAGS="" | ||
1307 | case "$host_os" in | ||
1308 | mingw32ce*) | ||
1309 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
1310 | ;; | ||
1311 | cegcc*) | ||
1312 | WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420" | ||
1313 | WIN32_CFLAGS="-mwin32" | ||
1314 | ;; | ||
1315 | mingw*) | ||
1316 | WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0501" | ||
1317 | ;; | ||
1318 | esac | ||
1319 | AC_SUBST(WIN32_CPPFLAGS) | ||
1320 | AC_SUBST(WIN32_CFLAGS) | ||
1321 | |||
1322 | |||
1323 | ### Checks for linker characteristics | ||
1324 | |||
1325 | # use --enable-auto-import on Windows | ||
1326 | |||
1327 | lt_enable_auto_import="" | ||
1328 | case "$host_os" in | ||
1329 | mingw* | cegcc*) | ||
1330 | lt_enable_auto_import="-Wl,--enable-auto-import" | ||
1331 | ;; | ||
1332 | esac | ||
1333 | AC_SUBST(lt_enable_auto_import) | ||
1334 | |||
1335 | ### Checks for library functions | ||
1336 | AC_ISC_POSIX | ||
1337 | AC_FUNC_ALLOCA | ||
1338 | AC_CHECK_FUNCS([gettimeofday strlcpy execvp]) | ||
1339 | |||
1340 | AC_COMPILE_IFELSE( | ||
1341 | [AC_LANG_PROGRAM( | ||
1342 | [[ | ||
1343 | #include <math.h> | ||
1344 | ]], | ||
1345 | [[ | ||
1346 | int i = isfinite(0); | ||
1347 | ]])], | ||
1348 | [ | ||
1349 | AC_DEFINE(HAVE_ISFINITE, 1, [Define to 1 if you have `isfinite', as a function or macro.]) | ||
1350 | have_isfinite="yes" | ||
1351 | ], | ||
1352 | [have_isfinite="no"]) | ||
1353 | |||
1354 | AC_MSG_CHECKING([for isfinite]) | ||
1355 | AC_MSG_RESULT([${have_isfinite}]) | ||
1356 | |||
1357 | have_atfile_source=auto | ||
1358 | AC_ARG_ENABLE([atfile-source], | ||
1359 | [AC_HELP_STRING([--disable-atfile-source], | ||
1360 | [disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@])], | ||
1361 | [ | ||
1362 | if test "x${enableval}" = "xyes" ; then | ||
1363 | have_atfile_source="yes" | ||
1364 | else | ||
1365 | have_atfile_source="no" | ||
1366 | fi], | ||
1367 | [have_atfile_source=auto]) | ||
1368 | |||
1369 | if ! test "x${have_atfile_source}" = "xno" ; then | ||
1370 | AC_CHECK_FUNCS(mkdirat, | ||
1371 | [ | ||
1372 | have_atfile_source="yes" | ||
1373 | AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists]) | ||
1374 | ], | ||
1375 | [ | ||
1376 | if test "x${have_atfile_source}" = "xyes" ; then | ||
1377 | AC_MSG_ERROR([required atfile-source but no mkdirat()]) | ||
1378 | fi | ||
1379 | have_atfile_source="no" | ||
1380 | ]) | ||
1381 | fi | ||
1382 | |||
1383 | ### Checks for optionnal feature | ||
1384 | AC_CHECK_FUNC([mallinfo], | ||
1385 | [ | ||
1386 | have_mallinfo="yes" | ||
1387 | AC_DEFINE(HAVE_MALLINFO, 1, [Gather memory statistic]) | ||
1388 | ], | ||
1389 | [have_mallinfo="no"]) | ||
1390 | |||
1391 | ### Ecore modules | ||
1392 | |||
1393 | ## Core modules | ||
1394 | |||
1395 | # ecore_con | ||
1396 | ECORE_CHECK_MODULE([con], [${want_ecore_con}], [Con], [${have_addrinfo}]) | ||
1397 | |||
1398 | have_curl="no" | ||
1399 | have_gnutls="no" | ||
1400 | have_openssl="no" | ||
1401 | have_cares="no" | ||
1402 | want_ipv6="yes" | ||
1403 | have_ipv6="no" | ||
1404 | |||
1405 | AC_ARG_ENABLE([ipv6], | ||
1406 | [AC_HELP_STRING([--disable-ipv6], | ||
1407 | [disable ipv6 functionality @<:@default=detect@:>@])], | ||
1408 | [ | ||
1409 | if test "x${enableval}" = "xyes" ; then | ||
1410 | want_ipv6="yes" | ||
1411 | else | ||
1412 | want_ipv6="no" | ||
1413 | fi], | ||
1414 | [want_ipv6="auto"]) | ||
1415 | |||
1416 | if test "x${have_ecore_con}" = "xyes" ; then | ||
1417 | |||
1418 | # Verify IPV6 availability in headers | ||
1419 | if test "x${want_ipv6}" != "xno" ; then | ||
1420 | AC_CHECK_TYPES([struct ipv6_mreq], | ||
1421 | [have_ipv6="yes"], | ||
1422 | [have_ipv6="no"], | ||
1423 | [[ | ||
1424 | #ifdef HAVE_NETINET_IN_H | ||
1425 | # include <netinet/in.h> | ||
1426 | #endif | ||
1427 | #ifdef HAVE_WS2TCPIP_H | ||
1428 | # include <ws2tcpip.h> | ||
1429 | #endif | ||
1430 | ]]) | ||
1431 | fi | ||
1432 | |||
1433 | if test "x${have_ipv6}" = "xyes" ; then | ||
1434 | AC_DEFINE(HAVE_IPV6, 1, [Define if IPV6 is supported]) | ||
1435 | fi | ||
1436 | |||
1437 | ECORE_CHECK_CURL([${want_curl}], | ||
1438 | [ | ||
1439 | have_curl="yes" | ||
1440 | requirements_ecore_con="libcurl ${requirements_ecore_con}" | ||
1441 | ], | ||
1442 | [have_curl="no"]) | ||
1443 | |||
1444 | ECORE_CHECK_GNUTLS([${want_gnutls}], | ||
1445 | [have_gnutls="yes"], | ||
1446 | [have_gnutls="no"]) | ||
1447 | |||
1448 | ECORE_CHECK_OPENSSL([${want_openssl}], | ||
1449 | [have_openssl="yes"], | ||
1450 | [have_openssl="no"]) | ||
1451 | |||
1452 | if test "x${have_gnutls}" = "xyes" ; then | ||
1453 | requirements_ecore_con="gnutls ${requirements_ecore_con}" | ||
1454 | # no need to add it to req_ecore_ipc, since they | ||
1455 | # depends on ecore_con anyway. | ||
1456 | else | ||
1457 | if test "x${have_openssl}" = "xyes" ; then | ||
1458 | requirements_ecore_con="openssl ${requirements_ecore_con}" | ||
1459 | # no need to add it to req_ecore_ipc, since they | ||
1460 | # depends on ecore_con anyway. | ||
1461 | fi | ||
1462 | fi | ||
1463 | |||
1464 | ECORE_CHECK_CARES([${want_cares}], | ||
1465 | [ | ||
1466 | have_cares="yes" | ||
1467 | requirements_ecore_con="libcares ${requirements_ecore_con}" | ||
1468 | ], | ||
1469 | [have_cares="no"]) | ||
1470 | |||
1471 | fi | ||
1472 | |||
1473 | AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"]) | ||
1474 | |||
1475 | # ecore_ipc | ||
1476 | ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}], | ||
1477 | [requirements_ecore_ipc="ecore-con >= 1.1.0 ${requirements_ecore_ipc}"]) | ||
1478 | |||
1479 | # ecore_file | ||
1480 | ECORE_CHECK_MODULE([file], [${want_ecore_file}], [File]) | ||
1481 | |||
1482 | have_poll="no" | ||
1483 | have_inotify="no" | ||
1484 | have_notify_win32="no" | ||
1485 | if test "x${have_ecore_file}" = "xyes" ; then | ||
1486 | ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"]) | ||
1487 | ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"]) | ||
1488 | ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"]) | ||
1489 | |||
1490 | if test "x${have_ecore_con}" = "xyes" ; then | ||
1491 | requirements_ecore_file="ecore-con >= 1.1.0 ${requirements_ecore_file}" | ||
1492 | else | ||
1493 | ECORE_CHECK_CURL([${want_curl}], | ||
1494 | [ | ||
1495 | have_curl="yes" | ||
1496 | requirements_ecore_file="libcurl ${requirements_ecore_file}" | ||
1497 | ], | ||
1498 | [have_curl="no"]) | ||
1499 | fi | ||
1500 | |||
1501 | fi | ||
1502 | |||
1503 | # ecore_config | ||
1504 | #ecore_config_deps="no" | ||
1505 | #if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then | ||
1506 | # ecore_config_deps="yes" | ||
1507 | #fi | ||
1508 | |||
1509 | #ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}], | ||
1510 | # [requirements_ecore_config="ecore-ipc >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 ${requirements_ecore_config}"]) | ||
1511 | |||
1512 | AM_CONDITIONAL(BUILD_ECORE_CONFIG, false) | ||
1513 | |||
1514 | # ecore_imf | ||
1515 | |||
1516 | ECORE_CHECK_MODULE([imf], [${want_ecore_imf}], [Imf]) | ||
1517 | |||
1518 | # ecore_imf_evas | ||
1519 | |||
1520 | ecore_imf_evas_deps="no" | ||
1521 | if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then | ||
1522 | ecore_imf_evas_deps="yes" | ||
1523 | fi | ||
1524 | |||
1525 | ECORE_CHECK_MODULE([imf-evas], [${want_ecore_imf}], [Imf_Evas], [${ecore_imf_evas_deps}], | ||
1526 | [requirements_ecore_imf_evas="ecore-imf >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_imf_evas}"]) | ||
1527 | |||
1528 | # ecore_input{_evas} | ||
1529 | ECORE_CHECK_MODULE([input], [${want_ecore_input}], [Input]) | ||
1530 | ECORE_CHECK_MODULE([input-evas], [${want_ecore_input}], [Input_Evas], [${have_evas}], | ||
1531 | [requirements_ecore_input_evas="ecore-input >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_input}"]) | ||
1532 | |||
1533 | # ecore_imf_xim | ||
1534 | AM_CONDITIONAL(BUILD_ECORE_IMF_XIM, false) | ||
1535 | ecore_imf_xim_deps="no" | ||
1536 | echo "have_ecore_x_xlib: ${have_ecore_x_xlib}" | ||
1537 | if test "x${have_ecore_imf}" = "xyes" \ | ||
1538 | -a "x${have_ecore_x_xlib}" = "xyes" \ | ||
1539 | -a "x${have_ecore_input}" = "xyes" ; then | ||
1540 | ecore_imf_xim_deps="yes" | ||
1541 | AC_DEFINE(BUILD_ECORE_IMF_XIM, 1, [Ecore Imf XIM Support]) | ||
1542 | fi | ||
1543 | |||
1544 | ECORE_CHECK_MODULE([imf-xim], [${want_ecore_imf}], [Imf_XIM], [${ecore_imf_xim_deps}], | ||
1545 | [requirements_ecore_imf_xim="ecore-imf >= 1.1.0 ecore-x >= 1.1.0 ecore-input >= 1.1.0 ${requirements_ecore_imf_xim}"]) | ||
1546 | |||
1547 | ## Graphic systems | ||
1548 | |||
1549 | # ecore_x{cb} | ||
1550 | |||
1551 | ecore_x_deps="no" | ||
1552 | if test "x${have_x}" = "xyes" -a \ | ||
1553 | "x${have_ecore_input}" = "xyes" ; then | ||
1554 | ecore_x_deps="yes" | ||
1555 | fi | ||
1556 | |||
1557 | ECORE_CHECK_MODULE([x], [${want_ecore_x}], [X], [${ecore_x_deps}], | ||
1558 | [ | ||
1559 | ecore_x_libs="$ecore_x_libs $x_libs" | ||
1560 | requirements_ecore_x="ecore-input >= 1.1.0 ${requirements_ecore_x}" | ||
1561 | ]) | ||
1562 | |||
1563 | # ecore_win32 | ||
1564 | |||
1565 | ECORE_CHECK_MODULE([win32], [${want_ecore_win32}], [Win32], [${have_ecore_input}], | ||
1566 | [ | ||
1567 | ecore_win32_libs="-lole32 -lgdi32" | ||
1568 | requirements_ecore_win32="ecore-input >= 1.1.0 ${requirements_ecore_win32}" | ||
1569 | ]) | ||
1570 | AC_SUBST(ecore_win32_libs) | ||
1571 | |||
1572 | # ecore_cocoa | ||
1573 | |||
1574 | ecore_cocoa_deps="no" | ||
1575 | if test "x${have_ecore_input}" = "xyes" -a "x${have_cocoa}" = "xyes" ; then | ||
1576 | ecore_cocoa_deps="yes" | ||
1577 | fi | ||
1578 | |||
1579 | ECORE_CHECK_MODULE([cocoa], [${want_ecore_cocoa}], [Cocoa], [${ecore_cocoa_deps}], | ||
1580 | [requirements_ecore_cocoa="ecore-input >= 1.1.0 ${requirements_ecore_cocoa}"]) | ||
1581 | |||
1582 | # ecore_sdl | ||
1583 | |||
1584 | ecore_sdl_deps="no" | ||
1585 | if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then | ||
1586 | ecore_sdl_deps="yes" | ||
1587 | fi | ||
1588 | |||
1589 | ECORE_CHECK_MODULE([sdl], [${want_ecore_sdl}], [Sdl], [${ecore_sdl_deps}], | ||
1590 | [requirements_ecore_sdl="ecore-input >= 1.1.0 ${requirements_ecore_sdl}"]) | ||
1591 | |||
1592 | ECORE_CHECK_MODULE([psl1ght], [${want_ecore_psl1ght}], [psl1ght], [${ecore_psl1ght_deps}], | ||
1593 | [requirements_ecore_psl1ght="ecore-input >= 1.1.0 ${requirements_ecore_psl1ght}"]) | ||
1594 | |||
1595 | # ecore_fb | ||
1596 | ECORE_CHECK_MODULE([fb], [${want_ecore_fb}], [FB], [$have_fb]) | ||
1597 | |||
1598 | if test "x${have_ecore_fb}" = "xyes" ; then | ||
1599 | ECORE_CHECK_TSLIB([${want_tslib}], | ||
1600 | [ | ||
1601 | have_tslib="yes" | ||
1602 | requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}" | ||
1603 | ], | ||
1604 | [have_tslib="no"]) | ||
1605 | fi | ||
1606 | |||
1607 | # ecore_directfb | ||
1608 | |||
1609 | ECORE_CHECK_MODULE([directfb], [${want_ecore_directfb}], [DirectFB], [${have_directfb}], | ||
1610 | [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"]) | ||
1611 | |||
1612 | # ecore_wince | ||
1613 | |||
1614 | ECORE_CHECK_MODULE([wince], [${want_ecore_wince}], [WinCE], [${have_ecore_input}], | ||
1615 | [requirements_ecore_win32="ecore-input >= 1.1.0 ${requirements_ecore_win32}"]) | ||
1616 | |||
1617 | ## Ecore Evas | ||
1618 | |||
1619 | # ecore_evas | ||
1620 | |||
1621 | ecore_evas_deps="no" | ||
1622 | if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then | ||
1623 | ecore_evas_deps="yes" | ||
1624 | fi | ||
1625 | |||
1626 | ECORE_CHECK_MODULE([evas], [${want_ecore_evas}], [Evas], [${ecore_evas_deps}], | ||
1627 | [requirements_ecore_evas="ecore-input >= 1.1.0 ecore-input-evas >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1628 | |||
1629 | # ecore_evas_buffer | ||
1630 | |||
1631 | ECORE_EVAS_CHECK_MODULE([software-buffer], | ||
1632 | [${want_ecore_evas_software_buffer}], | ||
1633 | [Software Buffer], | ||
1634 | [yes]) | ||
1635 | |||
1636 | # ecore_evas_x11 | ||
1637 | |||
1638 | # ecore_evas_software_x11 | ||
1639 | |||
1640 | ECORE_EVAS_CHECK_MODULE([software-x11], | ||
1641 | [${want_ecore_evas_software_x11}], | ||
1642 | [Software X11], | ||
1643 | [${have_ecore_x}]) | ||
1644 | |||
1645 | have_ecore_evas_software_xlib="no" | ||
1646 | have_ecore_evas_software_xcb="no" | ||
1647 | if test "x$have_ecore_evas_software_x11" = "xyes" ; then | ||
1648 | have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11` | ||
1649 | if test "x${have_ecore_evas_software_xlib}" = "xstatic"; then | ||
1650 | have_ecore_evas_software_xlib="yes" | ||
1651 | fi | ||
1652 | if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then | ||
1653 | AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support]) | ||
1654 | fi | ||
1655 | have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11` | ||
1656 | if test "x$have_ecore_evas_software_xcb" = "xstatic"; then | ||
1657 | have_ecore_evas_software_xcb="yes" | ||
1658 | fi | ||
1659 | if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then | ||
1660 | AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support]) | ||
1661 | fi | ||
1662 | fi | ||
1663 | |||
1664 | # ecore_evas_opengl_x11 | ||
1665 | |||
1666 | ECORE_EVAS_CHECK_MODULE([opengl-x11], | ||
1667 | [${want_ecore_evas_opengl_x11}], | ||
1668 | [OpenGL Xlib], | ||
1669 | [${have_ecore_x}]) | ||
1670 | |||
1671 | have_ecore_evas_opengl_xlib="no" | ||
1672 | have_ecore_evas_opengl_xcb="no" | ||
1673 | if test "x${have_ecore_evas_opengl_x11}" = "xyes" -o "x${have_ecore_evas_opengl_x11}" = "xstatic" ; then | ||
1674 | have_ecore_evas_opengl_xlib=`${PKG_CONFIG} --variable=Xlib evas-opengl-x11` | ||
1675 | if test "x${have_ecore_evas_opengl_xlib}" = "xyes" ; then | ||
1676 | AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XLIB, 1, [OpenGL Xlib rendering backend]) | ||
1677 | fi | ||
1678 | |||
1679 | # opengl does not work with xcb (yet) | ||
1680 | have_ecore_evas_opengl_xcb=`${PKG_CONFIG} --variable=XCB evas-opengl-x11` | ||
1681 | if test "x${have_ecore_evas_opengl_xcb}" = "xstatic"; then | ||
1682 | have_ecore_evas_opengl_xcb="yes" | ||
1683 | fi | ||
1684 | if test "x${have_ecore_evas_opengl_xcb}" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then | ||
1685 | PKG_CHECK_MODULES(XCB_X11, x11-xcb, | ||
1686 | [ have_ecore_x_opengl_xcb="yes" | ||
1687 | requirements_ecore_x="x11-xcb ${requirements_ecore_x}" | ||
1688 | AC_DEFINE(BUILD_ECORE_X_OPENGL_XCB, 1, [Build support for XCB-based OpenGL]) | ||
1689 | AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XCB, 1, [OpenGL XCB rendering backend]) | ||
1690 | ], | ||
1691 | [ have_ecore_x_opengl_xcb="no" ]) | ||
1692 | else | ||
1693 | have_ecore_x_opengl_xcb="no" | ||
1694 | AC_MSG_NOTICE("XCB-based OpenGL explicitly disabled") | ||
1695 | fi | ||
1696 | fi | ||
1697 | |||
1698 | # ecore_evas_software_x11 16 bits | ||
1699 | |||
1700 | ECORE_EVAS_CHECK_MODULE([software-16-x11], | ||
1701 | [${want_ecore_evas_software_16_x11}], | ||
1702 | [Software Xlib 16 bits], | ||
1703 | [${have_ecore_x_xlib}]) | ||
1704 | |||
1705 | ECORE_EVAS_CHECK_MODULE([software-8-x11], | ||
1706 | [$want_ecore_evas_software_8_x11], | ||
1707 | [Software 8bit X11], | ||
1708 | $have_ecore_x_xcb) | ||
1709 | |||
1710 | |||
1711 | if test "x$have_ecore_evas_software_x11" = "xyes" -o \ | ||
1712 | "x$have_ecore_evas_opengl_x11" = "xyes" -o \ | ||
1713 | "x$have_ecore_evas_software_8_x11" = "xyes" -o \ | ||
1714 | "x$have_ecore_evas_software_16_x11" = "xyes" -o \ | ||
1715 | "x$have_ecore_evas_software_xcb" = "xyes"; then | ||
1716 | AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas]) | ||
1717 | requirements_ecore_evas="ecore-x >= 1.1.0 ${requirements_ecore_evas}" | ||
1718 | fi | ||
1719 | |||
1720 | # ecore_evas_win32 | ||
1721 | |||
1722 | ECORE_EVAS_CHECK_MODULE([software-gdi], | ||
1723 | [${want_ecore_evas_software_gdi}], | ||
1724 | [Software GDI], | ||
1725 | [${have_ecore_win32}]) | ||
1726 | |||
1727 | ECORE_EVAS_CHECK_MODULE([software-ddraw], | ||
1728 | [${want_ecore_evas_software_ddraw}], | ||
1729 | [Software DirectDraw], | ||
1730 | [${have_ecore_win32}]) | ||
1731 | |||
1732 | ECORE_EVAS_CHECK_MODULE([direct3d], | ||
1733 | [${want_ecore_evas_direct3d}], | ||
1734 | [Direct3d], | ||
1735 | [${have_ecore_win32}]) | ||
1736 | |||
1737 | ECORE_EVAS_CHECK_MODULE([opengl-glew], | ||
1738 | [${want_ecore_evas_opengl_glew}], | ||
1739 | [Glew OpenGL], | ||
1740 | [${have_ecore_win32}]) | ||
1741 | |||
1742 | ECORE_EVAS_CHECK_MODULE([software-16-ddraw], | ||
1743 | [${want_ecore_evas_software_16_ddraw}], | ||
1744 | [16 bpp Software DirectDraw], | ||
1745 | [${have_ecore_win32}]) | ||
1746 | |||
1747 | if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \ | ||
1748 | "x${have_ecore_evas_software_ddraw}" = "xyes" -o \ | ||
1749 | "x${have_ecore_evas_direct3d}" = "xyes" -o \ | ||
1750 | "x${have_ecore_evas_opengl_glew}" = "xyes" -o \ | ||
1751 | "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then | ||
1752 | AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas]) | ||
1753 | requirements_ecore_evas="ecore-win32 >= 1.1.0 ${requirements_ecore_evas}" | ||
1754 | fi | ||
1755 | |||
1756 | # ecore_evas_software_sdl | ||
1757 | |||
1758 | ECORE_EVAS_CHECK_MODULE([software-sdl], | ||
1759 | [${want_ecore_evas_software_sdl}], | ||
1760 | [Software SDL], | ||
1761 | [${have_ecore_sdl}], | ||
1762 | [requirements_ecore_evas="ecore-sdl >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1763 | |||
1764 | # ecore_evas_gl_sdl | ||
1765 | |||
1766 | ECORE_EVAS_CHECK_MODULE([opengl-sdl], | ||
1767 | [${want_ecore_evas_gl_sdl}], | ||
1768 | [OpenGL SDL], | ||
1769 | [${have_ecore_sdl}], | ||
1770 | [requirements_ecore_evas="ecore-sdl >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1771 | |||
1772 | # ecore_evas_cocoa | ||
1773 | |||
1774 | ECORE_EVAS_CHECK_MODULE([opengl-cocoa], | ||
1775 | [${want_ecore_evas_gl_cocoa}], | ||
1776 | [OpenGL Cocoa], | ||
1777 | [${have_ecore_cocoa}], | ||
1778 | [requirements_ecore_evas="ecore-cocoa >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1779 | |||
1780 | # ecore_evas_directfb | ||
1781 | |||
1782 | ECORE_EVAS_CHECK_MODULE([directfb], | ||
1783 | [${want_ecore_evas_directfb}], | ||
1784 | [DirectFB], | ||
1785 | [${have_ecore_directfb}], | ||
1786 | [requirements_ecore_evas="ecore-directfb >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1787 | |||
1788 | # ecore_evas_fb | ||
1789 | |||
1790 | ECORE_EVAS_CHECK_MODULE([fb], | ||
1791 | [${want_ecore_evas_fb}], | ||
1792 | [Linux Framebuffer], | ||
1793 | [${have_ecore_fb}], | ||
1794 | [requirements_ecore_evas="ecore-fb >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1795 | |||
1796 | # ecore_evas_wince | ||
1797 | |||
1798 | ECORE_EVAS_CHECK_MODULE([software-16-wince], | ||
1799 | [${want_ecore_evas_software_16_wince}], | ||
1800 | [16 bpp Software Windows CE], | ||
1801 | [${have_ecore_wince}], | ||
1802 | [requirements_ecore_evas="ecore-wince >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1803 | |||
1804 | # ecore_evas_ews | ||
1805 | |||
1806 | ECORE_EVAS_CHECK_MODULE_FULL([ews], [software-buffer], | ||
1807 | [${want_ecore_evas_ews}], | ||
1808 | [Ecore Evas Single Process Windowing System], | ||
1809 | [yes], []) | ||
1810 | |||
1811 | # ecore_evas_psl1ght | ||
1812 | |||
1813 | ECORE_EVAS_CHECK_MODULE([psl1ght], | ||
1814 | [${want_ecore_evas_psl1ght}], | ||
1815 | [PSL1GHT], | ||
1816 | [${have_ecore_psl1ght}], | ||
1817 | [requirements_ecore_evas="ecore-psl1ght >= 1.1.0 ${requirements_ecore_evas}"]) | ||
1818 | |||
1819 | ### install and build examples | ||
1820 | |||
1821 | EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"]) | ||
1822 | EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"]) | ||
1823 | |||
1824 | ### requirements | ||
1825 | |||
1826 | AC_SUBST(requirements_ecore) | ||
1827 | AC_SUBST(requirements_ecore_con) | ||
1828 | #AC_SUBST(requirements_ecore_config) | ||
1829 | AC_SUBST(requirements_ecore_directfb) | ||
1830 | AC_SUBST(requirements_ecore_evas) | ||
1831 | AC_SUBST(requirements_ecore_fb) | ||
1832 | AC_SUBST(requirements_ecore_file) | ||
1833 | AC_SUBST(requirements_ecore_imf) | ||
1834 | AC_SUBST(requirements_ecore_imf_evas) | ||
1835 | AC_SUBST(requirements_ecore_input) | ||
1836 | AC_SUBST(requirements_ecore_input_evas) | ||
1837 | AC_SUBST(requirements_ecore_ipc) | ||
1838 | AC_SUBST(requirements_ecore_cocoa) | ||
1839 | AC_SUBST(requirements_ecore_sdl) | ||
1840 | AC_SUBST(requirements_ecore_psl1ght) | ||
1841 | AC_SUBST(requirements_ecore_x) | ||
1842 | AC_SUBST(requirements_ecore_win32) | ||
1843 | AC_SUBST(requirements_ecore_wince) | ||
1844 | AC_SUBST(requirements_ecore_imf_xim) | ||
1845 | |||
1846 | AC_CONFIG_FILES([ | ||
1847 | Makefile | ||
1848 | ecore-con.pc | ||
1849 | ecore-config.pc | ||
1850 | ecore-directfb.pc | ||
1851 | ecore-evas.pc | ||
1852 | ecore-fb.pc | ||
1853 | ecore-file.pc | ||
1854 | ecore-imf.pc | ||
1855 | ecore-imf-evas.pc | ||
1856 | ecore-ipc.pc | ||
1857 | ecore-x.pc | ||
1858 | ecore-input.pc | ||
1859 | ecore-input-evas.pc | ||
1860 | ecore-win32.pc | ||
1861 | ecore-sdl.pc | ||
1862 | ecore-cocoa.pc | ||
1863 | ecore-psl1ght.pc | ||
1864 | ecore-wince.pc | ||
1865 | ecore.pc | ||
1866 | doc/ecore.dox | ||
1867 | doc/Makefile | ||
1868 | doc/Doxyfile | ||
1869 | src/Makefile | ||
1870 | src/util/Makefile | ||
1871 | src/bin/Makefile | ||
1872 | src/lib/Makefile | ||
1873 | src/lib/ecore/Makefile | ||
1874 | src/lib/ecore_con/Makefile | ||
1875 | src/lib/ecore_config/Makefile | ||
1876 | src/lib/ecore_directfb/Makefile | ||
1877 | src/lib/ecore_evas/Makefile | ||
1878 | src/lib/ecore_fb/Makefile | ||
1879 | src/lib/ecore_file/Makefile | ||
1880 | src/lib/ecore_cocoa/Makefile | ||
1881 | src/lib/ecore_sdl/Makefile | ||
1882 | src/lib/ecore_psl1ght/Makefile | ||
1883 | src/lib/ecore_imf/Makefile | ||
1884 | src/lib/ecore_imf_evas/Makefile | ||
1885 | src/lib/ecore_input/Makefile | ||
1886 | src/lib/ecore_input_evas/Makefile | ||
1887 | src/lib/ecore_ipc/Makefile | ||
1888 | src/lib/ecore_win32/Makefile | ||
1889 | src/lib/ecore_wince/Makefile | ||
1890 | src/lib/ecore_x/Makefile | ||
1891 | src/lib/ecore_x/xlib/Makefile | ||
1892 | src/lib/ecore_x/xcb/Makefile | ||
1893 | src/examples/Makefile | ||
1894 | src/tests/Makefile | ||
1895 | src/modules/Makefile | ||
1896 | src/modules/immodules/Makefile | ||
1897 | src/modules/immodules/xim/Makefile | ||
1898 | ecore.spec | ||
1899 | $po_makefile_in | ||
1900 | ]) | ||
1901 | |||
1902 | AC_OUTPUT | ||
1903 | |||
1904 | echo | ||
1905 | echo "$PACKAGE $VERSION" | ||
1906 | echo | ||
1907 | echo "Optional Modules:" | ||
1908 | echo | ||
1909 | echo " Core:" | ||
1910 | echo | ||
1911 | echo " Ecore........................: always" | ||
1912 | echo " Thread support.............: $have_threads" | ||
1913 | echo " Thread safety..............: $want_thread_safety" | ||
1914 | echo " GLib support...............: $have_glib" | ||
1915 | echo " Always integrate GLib......: $want_glib_integration_always" | ||
1916 | echo " Use g_main_loop............: $want_g_main_loop" | ||
1917 | echo " Gathering memory statistic.: $have_mallinfo" | ||
1918 | echo " Gathering timer allocation.: $want_ecore_timer_dump" | ||
1919 | echo " Ecore_Con....................: $have_ecore_con" | ||
1920 | if test "x$have_ecore_con" = "xyes" ; then | ||
1921 | echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C" | ||
1922 | if test "x$have_gnutls" = "xyes" ; then | ||
1923 | echo " (disabled)" | ||
1924 | else | ||
1925 | echo | ||
1926 | fi | ||
1927 | echo " IPv6.......................: $have_ipv6" | ||
1928 | echo " GnuTLS.....................: $have_gnutls" | ||
1929 | echo " CURL.......................: $have_curl" | ||
1930 | echo " Local Sockets..............: $want_ecore_con_local_sockets" | ||
1931 | if test "x$want_ecore_con_local_sockets" = "xyes" ; then | ||
1932 | echo " Abstract Sockets.........: $want_ecore_con_abstract_sockets" | ||
1933 | fi | ||
1934 | echo " c-ares.....................: $have_cares" | ||
1935 | fi | ||
1936 | echo " Ecore_Ipc....................: $have_ecore_ipc" | ||
1937 | if test "x$have_ecore_ipc" = "xyes" ; then | ||
1938 | echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C" | ||
1939 | if test "x$have_gnutls" = "xyes" ; then | ||
1940 | echo " (disabled)" | ||
1941 | else | ||
1942 | echo | ||
1943 | fi | ||
1944 | echo " GnuTLS.....................: $have_gnutls" | ||
1945 | fi | ||
1946 | echo " Ecore_File...................: $have_ecore_file" | ||
1947 | if test "x$have_ecore_file" = "xyes" ; then | ||
1948 | echo " Inotify....................: $have_inotify" | ||
1949 | echo " Windows notification.......: $have_notify_win32" | ||
1950 | echo " Poll.......................: $have_poll" | ||
1951 | echo " CURL.......................: $have_curl" | ||
1952 | fi | ||
1953 | #echo " Ecore_Config.................: $have_ecore_config (deprecated)" | ||
1954 | echo " Ecore_IMF....................: $have_ecore_imf" | ||
1955 | echo " XIM........................: $have_ecore_imf_xim" | ||
1956 | echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas" | ||
1957 | echo " Ecore_Input..................: $have_ecore_input" | ||
1958 | echo " Ecore_Input_Evas.............: $have_ecore_input_evas" | ||
1959 | |||
1960 | echo | ||
1961 | echo " Graphic systems:" | ||
1962 | echo | ||
1963 | |||
1964 | if test "x$have_ecore_x" = "xyes" ; then | ||
1965 | if test "x$have_ecore_x_xcb" = "xyes" ; then | ||
1966 | echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb" | ||
1967 | echo " Xprint.....................: $have_ecore_x_xcb_xprint" | ||
1968 | echo " Xinerama...................: $have_ecore_x_xcb_xinerama" | ||
1969 | echo " Xrandr.....................: $have_ecore_x_xcb_randr" | ||
1970 | echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver" | ||
1971 | echo " Xshape.....................: $have_ecore_x_xcb_shape" | ||
1972 | echo " Xgesture...................: $have_ecore_x_xcb_gesture" | ||
1973 | echo " Xsync......................: $have_ecore_x_xcb_sync" | ||
1974 | echo " Xrender....................: $have_ecore_x_xcb_render" | ||
1975 | echo " Xcomposite.................: $have_ecore_x_xcb_composite" | ||
1976 | echo " Xfixes.....................: $have_ecore_x_xcb_xfixes" | ||
1977 | echo " Xdamage....................: $have_ecore_x_xcb_damage" | ||
1978 | echo " Xdpms......................: $have_ecore_x_xcb_dpms" | ||
1979 | echo " Xtest......................: $have_ecore_x_xcb_xtest" | ||
1980 | else | ||
1981 | echo " Ecore_X (Xlib backend).......: $have_ecore_x" | ||
1982 | echo " Xcursor....................: $use_Xcursor" | ||
1983 | echo " Xkb........................: $use_xkb" | ||
1984 | echo " Xprint.....................: $use_xprint" | ||
1985 | echo " Xinerama...................: $use_xinerama" | ||
1986 | echo " Xrandr.....................: $use_xrandr" | ||
1987 | echo " Xgesture...................: $use_xgesture" | ||
1988 | echo " Xscreensaver...............: $use_xss" | ||
1989 | echo " Xrender....................: $use_xrender" | ||
1990 | echo " Xcomposite.................: $use_xcomposite" | ||
1991 | echo " Xfixes.....................: $use_xfixes" | ||
1992 | echo " Xdamage....................: $use_xdamage" | ||
1993 | echo " Xdpms......................: $use_xdpms" | ||
1994 | echo " Xtest......................: $use_xtest" | ||
1995 | echo " XIM........................: $want_xim" | ||
1996 | echo " Xi2........................: $use_xi2" | ||
1997 | fi | ||
1998 | else | ||
1999 | echo " Ecore_X......................: $have_ecore_x" | ||
2000 | fi | ||
2001 | echo " Ecore_Win32..................: $have_ecore_win32" | ||
2002 | echo " Ecore_Cocoa..................: $have_ecore_cocoa" | ||
2003 | echo " Ecore_SDL....................: $have_ecore_sdl" | ||
2004 | echo " Ecore_FB.....................: $have_ecore_fb" | ||
2005 | if test "x${have_ecore_fb}" = "xyes" ; then | ||
2006 | echo " Touchscreen................: $have_tslib" | ||
2007 | fi | ||
2008 | echo " Ecore_DirectFB...............: $have_ecore_directfb" | ||
2009 | echo " Ecore_WinCE..................: $have_ecore_wince" | ||
2010 | echo " Ecore_PSL1GHT................: $have_ecore_psl1ght" | ||
2011 | |||
2012 | echo | ||
2013 | echo " Ecore Evas:" | ||
2014 | echo | ||
2015 | |||
2016 | echo " Ecore_Evas...................: $have_ecore_evas" | ||
2017 | if test "x${have_ecore_evas}" = "xyes" ; then | ||
2018 | echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer" | ||
2019 | if test "x${have_ecore_evas_software_x11}" = "xyes" ; then | ||
2020 | echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})" | ||
2021 | else | ||
2022 | echo " Software X11...............: $have_ecore_evas_software_x11" | ||
2023 | fi | ||
2024 | if test "x${have_ecore_evas_opengl_x11}" = "xyes" ; then | ||
2025 | echo " OpenGL X11.................: $have_ecore_evas_opengl_x11 (Xlib=${have_ecore_evas_opengl_xlib}) (XCB=${have_ecore_evas_opengl_xcb})" | ||
2026 | else | ||
2027 | echo " OpenGL X11.................: $have_ecore_evas_opengl_x11" | ||
2028 | fi | ||
2029 | echo " Software GDI...............: $have_ecore_evas_software_gdi" | ||
2030 | echo " Software DirectDraw........: $have_ecore_evas_software_ddraw" | ||
2031 | echo " Direct3D...................: $have_ecore_evas_direct3d" | ||
2032 | echo " OpenGL Glew................: $have_ecore_evas_opengl_glew" | ||
2033 | echo " Software SDL...............: $have_ecore_evas_software_sdl" | ||
2034 | echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl" | ||
2035 | echo " OpenGL Cocoa...............: $have_ecore_evas_opengl_cocoa" | ||
2036 | echo " DirectFB...................: $have_ecore_evas_directfb" | ||
2037 | echo " PSL1GHT....................: $have_ecore_evas_psl1ght" | ||
2038 | echo " Software Framebuffer.......: $have_ecore_evas_fb" | ||
2039 | echo " Software 8bit grayscale XCB: $have_ecore_evas_software_8_x11" | ||
2040 | echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11" | ||
2041 | echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw" | ||
2042 | echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince" | ||
2043 | echo " Sing.Proc. Windowing System: $have_ecore_evas_ews" | ||
2044 | fi | ||
2045 | echo | ||
2046 | echo " Tests................: ${enable_tests}" | ||
2047 | echo " Maximum log level....: ${with_max_log_level}" | ||
2048 | echo "Documentation..........: ${build_doc}" | ||
2049 | echo | ||
2050 | echo "Compilation............: make (or gmake)" | ||
2051 | echo " CPPFLAGS.............: $CPPFLAGS" | ||
2052 | echo " CFLAGS...............: $CFLAGS" | ||
2053 | echo " CXXFLAGS.............: $CXXFLAGS" | ||
2054 | echo " LDFLAGS..............: $LDFLAGS" | ||
2055 | echo | ||
2056 | echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" | ||
2057 | echo " prefix...............: $prefix" | ||
2058 | echo | ||