diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2012-09-16 10:57:48 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2012-09-16 10:57:48 +0000 |
commit | 785f2a6b3a70454ecfe94addc6480ebf20c44c13 (patch) | |
tree | 17a195d2c1f022cd480fd0e0b95be5035ad915e2 /configure.ac | |
parent | dfc0331373c3f98df7cb996abc588c7dcf44af0a (diff) |
merge : add eina
currently, examples, tests and benchmark are not set. That's the next things i'll do
SVN revision: 76710
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 509 |
1 files changed, 507 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index fee52f4e86..e0e21f995f 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -141,14 +141,25 @@ case "$host_os" in | |||
141 | want_eeze="no" | 141 | want_eeze="no" |
142 | want_emotion="no" | 142 | want_emotion="no" |
143 | want_ethumb="no" | 143 | want_ethumb="no" |
144 | MODULE_ARCH="$host_os-$host_cpu" | ||
145 | MODULE_EXT=".dll" | ||
144 | ;; | 146 | ;; |
145 | mingw*) | 147 | mingw*) |
146 | have_win32="yes" | 148 | have_win32="yes" |
147 | have_windows="yes" | 149 | have_windows="yes" |
148 | want_eeze="no" | 150 | want_eeze="no" |
151 | MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic" | ||
152 | MODULE_EXT=".dll" | ||
153 | ;; | ||
154 | *) | ||
155 | MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic" | ||
156 | MODULE_EXT=".so" | ||
149 | ;; | 157 | ;; |
150 | esac | 158 | esac |
151 | 159 | ||
160 | AC_DEFINE_UNQUOTED([MODULE_ARCH], ["${MODULE_ARCH}"], ["Module architecture"]) | ||
161 | AC_DEFINE_UNQUOTED([SHARED_LIB_SUFFIX], ["${MODULE_EXT}"], [Suffix for shared objects]) | ||
162 | |||
152 | AM_CONDITIONAL([HAVE_WINCE], [test "x${have_wince}" = "xyes"]) | 163 | AM_CONDITIONAL([HAVE_WINCE], [test "x${have_wince}" = "xyes"]) |
153 | AM_CONDITIONAL([HAVE_WIN32], [test "x${have_win32}" = "xyes"]) | 164 | AM_CONDITIONAL([HAVE_WIN32], [test "x${have_win32}" = "xyes"]) |
154 | AM_CONDITIONAL([HAVE_WINDOWS], [test "x${have_windows}" = "xyes"]) | 165 | AM_CONDITIONAL([HAVE_WINDOWS], [test "x${have_windows}" = "xyes"]) |
@@ -187,6 +198,14 @@ if test "x${PKG_CONFIG}" = "x" ; then | |||
187 | AC_MSG_ERROR([pkg-config tool not found. Install it or set PKG_CONFIG environment variable to that path tool. Exiting...]) | 198 | AC_MSG_ERROR([pkg-config tool not found. Install it or set PKG_CONFIG environment variable to that path tool. Exiting...]) |
188 | fi | 199 | fi |
189 | 200 | ||
201 | # Check whether pkg-config supports Requires.private | ||
202 | if ${PKG_CONFIG} --atleast-pkgconfig-version 0.22 ; then | ||
203 | pkgconfig_requires_private="Requires.private" | ||
204 | else | ||
205 | pkgconfig_requires_private="Requires" | ||
206 | fi | ||
207 | AC_SUBST([pkgconfig_requires_private]) | ||
208 | |||
190 | # doxygen program for documentation building | 209 | # doxygen program for documentation building |
191 | 210 | ||
192 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) | 211 | EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) |
@@ -231,6 +250,8 @@ AC_SUBST([lt_enable_auto_import]) | |||
231 | 250 | ||
232 | if test "x${have_windows}" = "xyes" ; then | 251 | if test "x${have_windows}" = "xyes" ; then |
233 | 252 | ||
253 | AC_MSG_NOTICE([Evil checks]) | ||
254 | |||
234 | ### Default values | 255 | ### Default values |
235 | 256 | ||
236 | ### Additional options to configure | 257 | ### Additional options to configure |
@@ -253,9 +274,12 @@ case "$host_os" in | |||
253 | ;; | 274 | ;; |
254 | esac | 275 | esac |
255 | requirements_libs_evil="${EVIL_LIBS}" | 276 | requirements_libs_evil="${EVIL_LIBS}" |
277 | |||
256 | AC_SUBST([EVIL_LIBS]) | 278 | AC_SUBST([EVIL_LIBS]) |
257 | AC_SUBST([EVIL_DLFCN_LIBS]) | 279 | AC_SUBST([EVIL_DLFCN_LIBS]) |
258 | 280 | ||
281 | AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if Evil package is installed]) | ||
282 | |||
259 | ### Checks for header files | 283 | ### Checks for header files |
260 | 284 | ||
261 | AC_CHECK_HEADERS([errno.h]) | 285 | AC_CHECK_HEADERS([errno.h]) |
@@ -292,30 +316,472 @@ fi | |||
292 | 316 | ||
293 | #### Eina | 317 | #### Eina |
294 | 318 | ||
319 | AC_MSG_NOTICE([Eina checks]) | ||
320 | |||
295 | ### Default values | 321 | ### Default values |
322 | |||
296 | ### Additional options to configure | 323 | ### Additional options to configure |
324 | |||
325 | # Magic debug | ||
326 | AC_ARG_ENABLE([magic-debug], | ||
327 | [AC_HELP_STRING([--disable-magic-debug], [disable magic debug of eina structure @<:@default=enabled@:>@])], | ||
328 | [ | ||
329 | if test "x${enableval}" = "xyes" ; then | ||
330 | have_magic_debug="yes" | ||
331 | else | ||
332 | have_magic_debug="no" | ||
333 | fi | ||
334 | ], | ||
335 | [have_magic_debug="yes"]) | ||
336 | |||
337 | AC_MSG_CHECKING([whether magic debug is enable]) | ||
338 | AC_MSG_RESULT([${have_magic_debug}]) | ||
339 | |||
340 | if test "x${have_magic_debug}" = "xyes" ; then | ||
341 | EINA_CONFIGURE_MAGIC_DEBUG="#define EINA_MAGIC_DEBUG" | ||
342 | fi | ||
343 | AC_SUBST([EINA_CONFIGURE_MAGIC_DEBUG]) | ||
344 | |||
345 | # Safety checks (avoid crashes on wrong api usage) | ||
346 | AC_ARG_ENABLE([safety-checks], | ||
347 | [AC_HELP_STRING([--disable-safety-checks], [disable safety checks for NULL pointers and like. @<:@default=enabled@:>@])], | ||
348 | [ | ||
349 | if test "x${enableval}" = "xyes" ; then | ||
350 | have_safety_checks="yes" | ||
351 | else | ||
352 | have_safety_checks="no" | ||
353 | fi | ||
354 | ], | ||
355 | [have_safety_checks="yes"]) | ||
356 | |||
357 | AC_MSG_CHECKING([whether to do safety checking on api parameters]) | ||
358 | AC_MSG_RESULT([${have_safety_checks}]) | ||
359 | |||
360 | if test "x${have_safety_checks}" = "xyes" ; then | ||
361 | AC_DEFINE([EINA_SAFETY_CHECKS], [1], [disable safety checks for NULL pointers and like.]) | ||
362 | EINA_CONFIGURE_SAFETY_CHECKS="#define EINA_SAFETY_CHECKS" | ||
363 | fi | ||
364 | AC_SUBST([EINA_CONFIGURE_SAFETY_CHECKS]) | ||
365 | |||
366 | AM_CONDITIONAL([SAFETY_CHECKS], [test "x$have_safety_checks" = "xyes"]) | ||
367 | |||
368 | # Miximum log level | ||
369 | with_max_log_level="<unset>" | ||
370 | AC_ARG_WITH([internal-maximum-log-level], | ||
371 | [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER], | ||
372 | [limit eina 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.])], | ||
373 | [ | ||
374 | if test "x${withval}" != "xno" ; then | ||
375 | if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then | ||
376 | AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}]) | ||
377 | AC_DEFINE_UNQUOTED([EINA_LOG_LEVEL_MAXIMUM], [${withval}], [if set, logging is limited to this amount.]) | ||
378 | with_max_log_level="${withval}" | ||
379 | else | ||
380 | AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.]) | ||
381 | fi | ||
382 | fi | ||
383 | ], | ||
384 | [:]) | ||
385 | |||
386 | # Choose best memory pool | ||
387 | AC_ARG_ENABLE([default-mempool], | ||
388 | [AC_HELP_STRING([--enable-default-mempool], [Default memory allocator could be faster for some computer. @<:@default=disabled@:>@])], | ||
389 | [ | ||
390 | if test "x${enableval}" = "xyes"; then | ||
391 | have_default_mempool="yes" | ||
392 | else | ||
393 | have_default_mempool="no" | ||
394 | fi | ||
395 | ], | ||
396 | [have_default_mempool="no"]) | ||
397 | |||
398 | AC_MSG_CHECKING([whether to use default mempool allocator]) | ||
399 | AC_MSG_RESULT([${have_default_mempool}]) | ||
400 | |||
401 | if test "x${have_default_mempool}" = "xyes" ; then | ||
402 | EINA_CONFIGURE_DEFAULT_MEMPOOL="#define EINA_DEFAULT_MEMPOOL" | ||
403 | fi | ||
404 | AC_SUBST([EINA_CONFIGURE_DEFAULT_MEMPOOL]) | ||
405 | |||
406 | # Report stringshare usage | ||
407 | AC_ARG_ENABLE([stringshare-usage], | ||
408 | [AC_HELP_STRING([--enable-stringshare-usage], [Report stringshare usage on stringshare shutdown. @<:@default=disabled@:>@])], | ||
409 | [ | ||
410 | if test "x${enableval}" = "xyes"; then | ||
411 | have_stringshare_usage="yes" | ||
412 | else | ||
413 | have_stringshare_usage="no" | ||
414 | fi | ||
415 | ], | ||
416 | [have_stringshare_usage="no"] | ||
417 | ) | ||
418 | AC_MSG_CHECKING([whether to report stringshare usage]) | ||
419 | AC_MSG_RESULT([${have_stringshare_usage}]) | ||
420 | |||
421 | if test "x${have_stringshare_usage}" = "xyes"; then | ||
422 | AC_DEFINE([EINA_STRINGSHARE_USAGE], [1], [Report Eina stringshare usage pattern]) | ||
423 | fi | ||
424 | |||
425 | # Assert or fail. | ||
426 | |||
427 | AC_ARG_ENABLE([assert], | ||
428 | [AC_HELP_STRING([--enable-assert], [enable assert, @<:@default=no@:>@])], | ||
429 | [ | ||
430 | if test "x${enableval}" = "xyes" ; then | ||
431 | prefer_assert="yes" | ||
432 | else | ||
433 | prefer_assert="no" | ||
434 | fi | ||
435 | ], | ||
436 | [prefer_assert="no"]) | ||
437 | |||
438 | # Check if we want to benchmark on real data | ||
439 | AC_ARG_ENABLE([e17], | ||
440 | [AC_HELP_STRING([--enable-e17], [enable heavy benchmark @<:@default=no@:>@])], | ||
441 | [ | ||
442 | if test "x${enableval}" = "xyes" ; then | ||
443 | enable_benchmark_e17="yes" | ||
444 | else | ||
445 | enable_benchmark_e17="no" | ||
446 | fi | ||
447 | ], | ||
448 | [enable_benchmark_e17="no"]) | ||
449 | |||
450 | AC_MSG_CHECKING([whether e17 real data benchmark are built]) | ||
451 | AC_MSG_RESULT([${enable_benchmark_e17}]) | ||
452 | |||
453 | AM_CONDITIONAL([EINA_ENABLE_BENCHMARK_E17], [test "x${enable_benchmark_e17}" = "xyes"]) | ||
454 | |||
297 | ### Checks for programs | 455 | ### Checks for programs |
456 | |||
298 | ### Checks for libraries | 457 | ### Checks for libraries |
458 | |||
459 | ## Compatibility layers | ||
460 | |||
461 | # Evil library for compilation on Windows | ||
462 | |||
463 | EFL_EINA_BUILD="" | ||
464 | case "$host_os" in | ||
465 | mingw*) | ||
466 | PKG_CHECK_EXISTS([evil >= 1.6.99]) | ||
467 | AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if Evil package is installed]) | ||
468 | requirements_pc_eina="${requirements_pc_eina} evil" | ||
469 | EFL_EINA_BUILD="-DEFL_EINA_BUILD" | ||
470 | ;; | ||
471 | esac | ||
472 | AC_SUBST([EFL_EINA_BUILD]) | ||
473 | |||
474 | # Escape library for compilation on Playstation 3 | ||
475 | |||
476 | case "$host_vendor" in | ||
477 | ps3*) | ||
478 | PKG_CHECK_EXISTS([escape]) | ||
479 | AC_DEFINE([HAVE_ESCAPE], [1], [Set to 1 if Escape package is installed]) | ||
480 | requirements_pc_eina="${requirements_pc_eina} escape" | ||
481 | ;; | ||
482 | esac | ||
483 | |||
484 | # Exotic library for copilation on Coyote | ||
485 | |||
486 | PKG_CHECK_EXISTS([exotic], | ||
487 | [ | ||
488 | enable_exotic="yes" | ||
489 | AC_DEFINE([HAVE_EXOTIC_H], [1], [Define to 1 if you have Exotic.]) | ||
490 | EINA_CONFIGURE_HAVE_EXOTIC="#define EINA_HAVE_EXOTIC" | ||
491 | requirements_pc_eina="exotic ${requirements_pc_eina}" | ||
492 | ], | ||
493 | [enable_exotic="no"]) | ||
494 | |||
495 | AM_CONDITIONAL([EINA_HAVE_EXOTIC], [test "x${enable_exotic}" = "xyes"]) | ||
496 | AC_SUBST([EINA_CONFIGURE_HAVE_EXOTIC]) | ||
497 | |||
498 | if ! test "x${requirements_pc_eina}" = "x" ; then | ||
499 | PKG_CHECK_MODULES([EINA], [${requirements_pc_eina}]) | ||
500 | fi | ||
501 | |||
502 | ## Options | ||
503 | |||
504 | # Valgrind | ||
505 | |||
506 | AC_ARG_ENABLE([valgrind], | ||
507 | [AC_HELP_STRING([--enable-valgrind], [improve valgrind support by hinting it of our memory usages, having it to report proper mempool leaks.])], | ||
508 | [ | ||
509 | if test "x${enableval}" = "xyes" ; then | ||
510 | want_valgrind="yes" | ||
511 | else | ||
512 | want_valgrind="no" | ||
513 | fi | ||
514 | ], | ||
515 | [want_valgrind="auto"]) | ||
516 | |||
517 | AC_MSG_CHECKING([whether to enable build with valgrind]) | ||
518 | AC_MSG_RESULT([${want_valgrind}]) | ||
519 | |||
520 | if test "x${want_valgrind}" = "xyes" || test "x${want_valgrind}" = "xauto"; then | ||
521 | PKG_CHECK_MODULES([VALGRIND], [valgrind >= 2.4.0], | ||
522 | [ | ||
523 | have_valgrind="yes" | ||
524 | requirements_pc_eina="valgrind ${requirements_pc_eina}" | ||
525 | ], | ||
526 | [ | ||
527 | have_valgrind="no" | ||
528 | AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled]) | ||
529 | if test "x${want_valgrind}" = "xyes"; then | ||
530 | AC_MSG_ERROR([Valgrind >= 2.4.0 is required]) | ||
531 | fi | ||
532 | ]) | ||
533 | else | ||
534 | AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled]) | ||
535 | fi | ||
536 | |||
537 | AC_ARG_ENABLE([debug-malloc], | ||
538 | [AC_HELP_STRING([--enable-debug-malloc], [enable debugging of malloc usage overhead in our allocator @<:@default=enabled@:>@])], | ||
539 | [ | ||
540 | if test "x${enableval}" = "xyes" ; then | ||
541 | want_debug_malloc="yes" | ||
542 | else | ||
543 | want_debug_malloc="no" | ||
544 | fi | ||
545 | ], | ||
546 | [want_debug_malloc="no"]) | ||
547 | |||
548 | if test "x${ac_cv_func_malloc_usable_size}" = "xyes" && test "x${want_debug_malloc}" = "xyes"; then | ||
549 | AC_DEFINE([EINA_DEBUG_MALLOC], [1], [Turn on debugging overhead in mempool]) | ||
550 | fi | ||
551 | |||
552 | AC_ARG_ENABLE([log], | ||
553 | [AC_HELP_STRING([--disable-log], [disable Eina_Log infrastructure completly @<:@default=enabled@:>@])], | ||
554 | [ | ||
555 | if test "x${enableval}" = "xyes" ; then | ||
556 | want_log="yes" | ||
557 | else | ||
558 | want_log="no" | ||
559 | fi | ||
560 | ], | ||
561 | [want_log="yes"]) | ||
562 | |||
563 | ## Modules | ||
564 | |||
565 | # Check ememoa memory pool library | ||
566 | |||
567 | AC_ARG_ENABLE([ememoa], | ||
568 | [AC_HELP_STRING([--enable-ememoa], [build ememoa memory pool module @<:@default=yes@:>@])], | ||
569 | [ | ||
570 | if test "x${enableval}" = "xyes" ; then | ||
571 | enable_ememoa="yes" | ||
572 | else | ||
573 | enable_ememoa="no" | ||
574 | fi | ||
575 | ], | ||
576 | [enable_ememoa="yes"]) | ||
577 | |||
578 | AC_MSG_CHECKING([whether to use ememoa for memory pool]) | ||
579 | AC_MSG_RESULT([${enable_ememoa}]) | ||
580 | |||
581 | if test "x${enable_ememoa}" = "xyes" ; then | ||
582 | PKG_CHECK_MODULES([EMEMOA], | ||
583 | [ememoa >= 0.0.26 ], | ||
584 | [enable_ememoa="yes"], | ||
585 | [enable_ememoa="no"]) | ||
586 | fi | ||
587 | |||
588 | ## Examples | ||
589 | |||
590 | PKG_CHECK_MODULES([ECORE_EVAS], | ||
591 | [ecore-evas ecore evas], | ||
592 | [build_tiler_example="yes"], | ||
593 | [build_tiler_example="no"]) | ||
594 | |||
595 | AM_CONDITIONAL([BUILD_TILER_EXAMPLE], [test "x${build_tiler_example}" = "xyes"]) | ||
596 | |||
597 | ## Tests | ||
598 | |||
599 | EFL_CHECK_TESTS(EINA) | ||
600 | |||
299 | ### Checks for header files | 601 | ### Checks for header files |
602 | |||
603 | AC_HEADER_ASSERT | ||
604 | AC_HEADER_TIME | ||
605 | AC_HEADER_DIRENT | ||
606 | |||
607 | AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h execinfo.h mcheck.h]) | ||
608 | |||
609 | # sys/mman.h could be provided by evil/escape/exotic so we need to set CFLAGS accordingly | ||
610 | CFLAGS_save="${CFLAGS}" | ||
611 | CFLAGS="${CFLAGS} ${EINA_CFLAGS}" | ||
612 | AC_CHECK_HEADERS([sys/mman.h]) | ||
613 | CFLAGS="${CFLAGS_save}" | ||
614 | |||
615 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
616 | EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H" | ||
617 | AC_DEFINE([HAVE_INTTYPES_H], [1], [Define to 1 if you have the <inttypes.h> header file.]) | ||
618 | fi | ||
619 | AC_SUBST([EINA_CONFIGURE_HAVE_INTTYPES_H]) | ||
620 | |||
621 | if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then | ||
622 | EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H" | ||
623 | AC_DEFINE([HAVE_STDINT_H], [1], [Define to 1 if you have the <stdint.h> header file.]) | ||
624 | fi | ||
625 | AC_SUBST([EINA_CONFIGURE_HAVE_STDINT_H]) | ||
626 | |||
300 | ### Checks for types | 627 | ### Checks for types |
628 | |||
629 | # wchar_t | ||
630 | |||
631 | AC_CHECK_SIZEOF([wchar_t]) | ||
632 | EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t | ||
633 | AC_SUBST([EINA_SIZEOF_WCHAR_T]) | ||
634 | AC_CHECK_TYPES([siginfo_t], [], [], | ||
635 | [[ | ||
636 | #include <signal.h> | ||
637 | #if HAVE_SIGINFO_H | ||
638 | # include <siginfo.h> | ||
639 | #endif | ||
640 | ]]) | ||
641 | |||
642 | # struct dirent | ||
643 | |||
644 | AC_CHECK_TYPES([struct dirent], [have_dirent="yes"], [have_dirent="no"], | ||
645 | [[ | ||
646 | #include <dirent.h> | ||
647 | ]]) | ||
648 | |||
649 | if test "x${have_dirent}" = "xyes" ; then | ||
650 | EINA_CONFIGURE_HAVE_DIRENT_H="#define EINA_HAVE_DIRENT_H" | ||
651 | AC_DEFINE([HAVE_DIRENT_H], [1], [Define to 1 if you have a valid <dirent.h> header file.]) | ||
652 | fi | ||
653 | AC_SUBST([EINA_CONFIGURE_HAVE_DIRENT_H]) | ||
654 | |||
301 | ### Checks for structures | 655 | ### Checks for structures |
656 | |||
302 | ### Checks for compiler characteristics | 657 | ### Checks for compiler characteristics |
658 | |||
659 | AC_C_BIGENDIAN | ||
660 | AC_C_INLINE | ||
661 | EFL_ATTRIBUTE_UNUSED | ||
662 | |||
663 | m4_ifdef([v_ver], | ||
664 | [ | ||
665 | EFL_CHECK_COMPILER_FLAGS([EINA], [-Wall -Wextra]) | ||
666 | ]) | ||
667 | |||
668 | EFL_CHECK_COMPILER_FLAGS([EINA], [-Wshadow]) | ||
669 | |||
670 | EFL_CHECK_PATH_MAX | ||
671 | |||
303 | ### Checks for linker characteristics | 672 | ### Checks for linker characteristics |
673 | |||
674 | EFL_CHECK_LINKER_FLAGS([EINA], [-fno-strict-aliasing]) | ||
675 | |||
304 | ### Checks for library functions | 676 | ### Checks for library functions |
305 | 677 | ||
678 | AC_FUNC_ALLOCA | ||
679 | |||
680 | AC_CHECK_FUNCS([strlcpy openat fstatat fpathconf execvp backtrace backtrace_symbols malloc_usable_size mtrace]) | ||
681 | |||
682 | EFL_CHECK_FUNCS([EINA], [dirfd dlopen dladdr fnmatch iconv shm_open setxattr]) | ||
683 | |||
684 | enable_log="no" | ||
685 | if test "x${efl_func_fnmatch}" = "xyes" && test "x${want_log}" = "xyes" ; then | ||
686 | enable_log="yes" | ||
687 | fi | ||
688 | |||
689 | AC_MSG_CHECKING([wether to build Eina_Log infrastructure]) | ||
690 | AC_MSG_RESULT([${enable_log}]) | ||
691 | |||
692 | if test "x${enable_log}" = "xyes"; then | ||
693 | EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG" | ||
694 | AC_DEFINE([HAVE_LOG], [1], [Define to 1 if we log support is on]) | ||
695 | fi | ||
696 | AC_SUBST([EINA_CONFIGURE_ENABLE_LOG]) | ||
697 | |||
698 | EFL_CHECK_THREADS | ||
699 | |||
700 | if ! test "x${efl_have_threads}" = "xno" ; then | ||
701 | EINA_CONFIGURE_HAVE_THREADS="#define EINA_HAVE_THREADS" | ||
702 | fi | ||
703 | AC_SUBST(EINA_CONFIGURE_HAVE_THREADS) | ||
704 | AM_CONDITIONAL([EINA_HAVE_THREADS], [! test "x${efl_have_threads}" = "xno"]) | ||
705 | |||
706 | if test "x${efl_have_debug_threads}" = "xyes"; then | ||
707 | EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS" | ||
708 | fi | ||
709 | AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS) | ||
710 | AM_CONDITIONAL([EINA_DEBUG_THREADS], [test "x${efl_have_debug_threads}" = "xyes"]) | ||
711 | |||
712 | if ! test "x${efl_have_on_off_threads}" = "xno"; then | ||
713 | EINA_CONFIGURE_HAVE_ON_OFF_THREADS="#define EINA_HAVE_ON_OFF_THREADS" | ||
714 | fi | ||
715 | AC_SUBST(EINA_CONFIGURE_HAVE_ON_OFF_THREADS) | ||
716 | AM_CONDITIONAL([EINA_ON_OFF_THREADS], [! test "x${efl_have_on_off_threads}" = "xno"]) | ||
717 | |||
718 | ### Modules | ||
719 | |||
720 | if test "x${have_default_mempool}" = "xyes" ; then | ||
721 | enable_chained_pool="no" | ||
722 | enable_pass_through="static" | ||
723 | else | ||
724 | enable_chained_pool="static" | ||
725 | enable_pass_through="no" | ||
726 | fi | ||
727 | |||
728 | enable_one_big="static" | ||
729 | |||
730 | EINA_CHECK_MODULE([chained-pool], [${enable_chained_pool}], [chained pool]) | ||
731 | EINA_CHECK_MODULE([ememoa-fixed], [${enable_ememoa}], [ememoa fixed]) | ||
732 | EINA_CHECK_MODULE([ememoa-unknown], [${enable_ememoa}], [ememoa unknown]) | ||
733 | EINA_CHECK_MODULE([fixed-bitmap], [no], [fixed bitmap]) | ||
734 | EINA_CHECK_MODULE([pass-through], [${enable_pass_through}], [pass through]) | ||
735 | EINA_CHECK_MODULE([buddy], [no], [buddy]) | ||
736 | EINA_CHECK_MODULE([one-big], [${enable_one_big}], [one big]) | ||
737 | |||
738 | |||
306 | #### End of Eina | 739 | #### End of Eina |
307 | 740 | ||
308 | #EFL_CHECK_LIBS([eina], [iconv], [have_eina="yes"], [have_eina="no"]) | 741 | |
309 | #EFL_CHECK_LIBS([eet], [zlib libjpeg], [have_eet="yes"], [have_eet="no"]) | 742 | #### Eet |
743 | |||
744 | #AC_MSG_NOTICE([Eet checks]) | ||
745 | |||
746 | ### Default values | ||
747 | ### Additional options to configure | ||
748 | ### Checks for programs | ||
749 | ### Checks for libraries | ||
750 | ### Checks for header files | ||
751 | ### Checks for types | ||
752 | ### Checks for structures | ||
753 | ### Checks for compiler characteristics | ||
754 | ### Checks for linker characteristics | ||
755 | ### Checks for library functions | ||
756 | |||
757 | #### End of Eet | ||
310 | 758 | ||
311 | AC_CONFIG_FILES([ | 759 | AC_CONFIG_FILES([ |
312 | Makefile | 760 | Makefile |
313 | src/Makefile | 761 | src/Makefile |
314 | src/bin/Makefile | 762 | src/bin/Makefile |
315 | src/bin/evil/Makefile | 763 | src/bin/evil/Makefile |
764 | src/include/Makefile | ||
765 | src/include/eina/Makefile | ||
766 | src/include/eina/eina_config.h | ||
316 | src/lib/Makefile | 767 | src/lib/Makefile |
317 | src/lib/evil/Makefile | 768 | src/lib/evil/Makefile |
769 | src/lib/eina/Makefile | ||
770 | src/modules/Makefile | ||
771 | src/modules/eina/Makefile | ||
772 | src/modules/eina/mp/Makefile | ||
773 | src/modules/eina/mp/chained_pool/Makefile | ||
774 | src/modules/eina/mp/ememoa_fixed/Makefile | ||
775 | src/modules/eina/mp/ememoa_unknown/Makefile | ||
776 | src/modules/eina/mp/pass_through/Makefile | ||
777 | src/modules/eina/mp/fixed_bitmap/Makefile | ||
778 | src/modules/eina/mp/buddy/Makefile | ||
779 | src/modules/eina/mp/one_big/Makefile | ||
780 | src/scripts/Makefile | ||
781 | src/scripts/eina/Makefile | ||
782 | eina.spec | ||
318 | evil.pc | 783 | evil.pc |
784 | eina.pc | ||
319 | ]) | 785 | ]) |
320 | 786 | ||
321 | AC_OUTPUT | 787 | AC_OUTPUT |
@@ -339,6 +805,45 @@ fi | |||
339 | echo | 805 | echo |
340 | echo " Documentation........: ${build_doc}" | 806 | echo " Documentation........: ${build_doc}" |
341 | echo | 807 | echo |
808 | echo "Eina" | ||
809 | echo | ||
810 | echo " Magic debug..........: ${have_magic_debug}" | ||
811 | echo " Safety checks........: ${have_safety_checks}" | ||
812 | echo " Maximum log level....: ${with_max_log_level}" | ||
813 | echo " Report string usage..: ${have_stringshare_usage}" | ||
814 | echo " Valgrind support.....: ${have_valgrind}" | ||
815 | echo " Default mempool......: ${have_default_mempool}" | ||
816 | echo " Log support..........: ${enable_log}" | ||
817 | echo " Thread Support.......: ${efl_have_threads}" | ||
818 | if test "${efl_have_threads}" = "POSIX" ; then | ||
819 | echo " spinlock...........: ${efl_have_posix_threads_spinlock}" | ||
820 | echo " debug usage........: ${efl_have_debug_threads}" | ||
821 | echo " on/off support.....: ${efl_have_on_off_threads}" | ||
822 | fi | ||
823 | echo " Iconv support........: ${efl_func_iconv}" | ||
824 | echo " File dirfd...........: ${efl_func_dirfd}" | ||
825 | echo " File xattr...........: ${efl_func_setxattr}" | ||
826 | echo " shm_open.............: ${efl_func_shm_open}" | ||
827 | echo | ||
828 | echo " Tests................: ${_efl_enable_tests} (Coverage: ${_efl_enable_coverage})" | ||
829 | echo " Examples.............: ${enable_build_examples}" | ||
830 | echo " Tiler Example........: ${build_tiler_example}" | ||
831 | echo " Examples installed...: ${enable_install_examples}" | ||
832 | echo " Benchmark............: ${enable_benchmark}" | ||
833 | if test "x${enable_benchmark}" = "xyes" ; then | ||
834 | echo " Glib...............: ${enable_benchmark_glib}" | ||
835 | echo " E17 real data......: ${enable_benchmark_e17}" | ||
836 | fi | ||
837 | echo | ||
838 | echo " Memory pools:" | ||
839 | echo " Buddy..............: ${enable_buddy}" | ||
840 | echo " Chained pool.......: ${enable_chained_pool}" | ||
841 | echo " Ememoa fixed.......: ${enable_ememoa_fixed}" | ||
842 | echo " Ememoa unknown.....: ${enable_ememoa_unknown}" | ||
843 | echo " Fixed bitmap.......: ${enable_fixed_bitmap}" | ||
844 | echo " One big............: ${enable_one_big}" | ||
845 | echo " Pass through.......: ${enable_pass_through}" | ||
846 | echo | ||
342 | echo "Compilation............: make (or gmake)" | 847 | echo "Compilation............: make (or gmake)" |
343 | echo " CPPFLAGS.............: $CPPFLAGS" | 848 | echo " CPPFLAGS.............: $CPPFLAGS" |
344 | echo " CFLAGS...............: $CFLAGS" | 849 | echo " CFLAGS...............: $CFLAGS" |