1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [1])
5 m4_define([v_mic], [99])
6 m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7 m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
8 ##-- When released, remove the dnl on the below line
9 dnl m4_undefine([v_rev])
10 ##-- When doing snapshots - change soname. remove dnl on below line
11 dnl m4_define([relname], [ver-pre-svn-07])
12 dnl m4_define([v_rel], [-release relname])
13 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
15 m4_define([lt_cur], m4_eval(v_maj + v_min))
16 m4_define([lt_rev], v_mic)
17 m4_define([lt_age], v_min)
18 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
21 AC_INIT([eina], [v_ver], [enlightenment-devel@lists.sourceforge.net])
23 AC_CONFIG_SRCDIR([configure.ac])
24 AC_CONFIG_MACRO_DIR([m4])
26 AC_CONFIG_HEADERS([config.h])
28 #ifndef EFL_CONFIG_H__
29 #define EFL_CONFIG_H__
32 #endif /* EFL_CONFIG_H__ */
35 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
42 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
43 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
46 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
47 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
48 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
49 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
50 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
51 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
52 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
53 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
54 version_info="lt_cur:lt_rev:lt_age"
56 AC_SUBST(version_info)
57 AC_SUBST(release_info)
58 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
59 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
64 ### Needed information
73 MODULE_ARCH="$host_os-$host_cpu"
76 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
80 AC_DEFINE_UNQUOTED(MODULE_ARCH, "${MODULE_ARCH}", "Module architecture")
91 AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "${MODULE_EXT}", [Suffix for shared objects])
93 EFL_CHECK_CPU_MMX([have_mmx="yes"], [have_mmx="no"])
94 EFL_CHECK_CPU_SSE([have_sse="yes"], [have_sse="no"])
95 EFL_CHECK_CPU_SSE2([have_sse2="yes"], [have_sse2="no"])
96 EFL_CHECK_CPU_ALTIVEC([have_altivec="yes"], [have_altivec="no"])
100 if test "x${_efl_have_posix_threads}" = "xyes" ; then
103 if test "x${_efl_have_win32_threads}" = "xyes" ; then
111 EFL_CHECK_SPINLOCK([have_posix_threads_spinlock="yes"], [have_posix_threads_spinlock="no"])
113 if ! test "x${have_threads}" = "xno" ; then
114 EINA_CONFIGURE_HAVE_THREADS="#define EINA_HAVE_THREADS"
116 AC_SUBST(EINA_CONFIGURE_HAVE_THREADS)
117 AM_CONDITIONAL([EINA_HAVE_THREADS], [! test "x${have_threads}" = "xno"])
119 if ! test "x${have_debug_threads}" = "xno"; then
120 EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS"
122 AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS)
123 AM_CONDITIONAL([EINA_DEBUG_THREADS], [! test "x${have_debug_threads}" = "xno"])
125 if ! test "x${have_on_off_threads}" = "xno"; then
126 EINA_CONFIGURE_HAVE_ON_OFF_THREADS="#define EINA_HAVE_ON_OFF_THREADS"
128 AC_SUBST(EINA_CONFIGURE_HAVE_ON_OFF_THREADS)
129 AM_CONDITIONAL([EINA_ON_OFF_THREADS], [! test "x${have_on_off_threads}" = "xno"])
131 ### Additional options to configure
134 AC_ARG_ENABLE([magic-debug],
135 [AC_HELP_STRING([--disable-magic-debug], [disable magic debug of eina structure @<:@default=enabled@:>@])],
137 if test "x${enableval}" = "xyes" ; then
138 have_magic_debug="yes"
140 have_magic_debug="no"
143 [have_magic_debug="yes"])
145 AC_MSG_CHECKING([whether magic debug is enable])
146 AC_MSG_RESULT([${have_magic_debug}])
148 if test "x${have_magic_debug}" = "xyes" ; then
149 EINA_CONFIGURE_MAGIC_DEBUG="#define EINA_MAGIC_DEBUG"
151 AC_SUBST(EINA_CONFIGURE_MAGIC_DEBUG)
153 # Safety checks (avoid crashes on wrong api usage)
154 AC_ARG_ENABLE(safety-checks,
155 [AC_HELP_STRING([--disable-safety-checks], [disable safety checks for NULL pointers and like. @<:@default=enabled@:>@])],
157 if test "x${enableval}" = "xyes" ; then
158 have_safety_checks="yes"
160 have_safety_checks="no"
163 [have_safety_checks="yes"])
165 AC_MSG_CHECKING(whether to do safety checking on api parameters)
166 AC_MSG_RESULT($have_safety_checks)
168 AM_CONDITIONAL(SAFETY_CHECKS, test "x$have_safety_checks" = "xyes")
169 if test "x$have_safety_checks" = "xyes"; then
170 AC_DEFINE(EINA_SAFETY_CHECKS, 1, [disable safety checks for NULL pointers and like.])
171 EINA_CONFIGURE_SAFETY_CHECKS="#define EINA_SAFETY_CHECKS"
173 AC_SUBST(EINA_CONFIGURE_SAFETY_CHECKS)
175 with_max_log_level="<unset>"
176 AC_ARG_WITH(internal-maximum-log-level,
177 [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER],
178 [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.])],
180 if test "x${withval}" != "xno"; then
181 if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then
182 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
183 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.])
184 with_max_log_level="${withval}"
186 AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.])
191 AC_ARG_ENABLE([amalgamation],
192 [AC_HELP_STRING([--enable-amalgamation], [enable generation of one single file with all source code in it, helps compiler optimizations.])],
193 [if test "x${enableval}" = "xyes"; then
194 do_amalgamation="yes"
199 [do_amalgamation="no"]
201 AM_CONDITIONAL(EINA_AMALGAMATION, test "x${do_amalgamation}" = "xyes")
203 # Choose best memory pool
204 AC_ARG_ENABLE([default-mempool],
205 [AC_HELP_STRING([--enable-default-mempool], [Default memory allocator could be faster for some computer. @<:@default=disabled@:>@])],
207 if test "x${enableval}" = "xyes"; then
208 have_default_mempool="yes"
210 have_default_mempool="no"
213 [have_default_mempool="no"]
215 AC_MSG_CHECKING([whether to use default mempool allocator])
216 AC_MSG_RESULT([${have_default_mempool}])
218 if test "x${have_default_mempool}" = "xyes" ; then
219 EINA_CONFIGURE_DEFAULT_MEMPOOL="#define EINA_DEFAULT_MEMPOOL"
221 AC_SUBST(EINA_CONFIGURE_DEFAULT_MEMPOOL)
223 # Report stringshare usage
224 AC_ARG_ENABLE([stringshare-usage],
225 [AC_HELP_STRING([--enable-stringshare-usage], [Report stringshare usage on stringshare shutdown. @<:@default=disabled@:>@])],
227 if test "x${enableval}" = "xyes"; then
228 have_stringshare_usage="yes"
230 have_stringshare_usage="no"
233 [have_stringshare_usage="no"]
235 AC_MSG_CHECKING([whether to report stringshare usage])
236 AC_MSG_RESULT([${have_stringshare_usage}])
238 if test "x${have_stringshare_usage}" = "xyes"; then
239 AC_DEFINE(EINA_STRINGSHARE_USAGE, 1, [Report Eina stringshare usage pattern])
242 # Check if we want to benchmark on real data
243 enable_benchmark_e17="no"
245 [AC_HELP_STRING([--enable-e17], [enable heavy benchmark @<:@default=no@:>@])],
247 if test "x${enableval}" = "xyes" ; then
248 enable_benchmark_e17="yes"
250 enable_benchmark_e17="no"
253 [enable_benchmark_e17="no"])
255 AC_MSG_CHECKING([whether e17 real data benchmark are built])
256 AC_MSG_RESULT([${enable_benchmark_e17}])
258 AM_CONDITIONAL(EINA_ENABLE_BENCHMARK_E17, test "x${enable_benchmark_e17}" = "xyes")
261 ### Checks for programs
268 # Check whether pkg-config supports Requires.private
269 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
270 pkgconfig_requires_private="Requires.private"
272 pkgconfig_requires_private="Requires"
274 AC_SUBST(pkgconfig_requires_private)
276 # doxygen program for documentation building
278 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
281 ### Checks for libraries
287 AC_ARG_ENABLE([valgrind],
288 [AC_HELP_STRING([--enable-valgrind], [improve valgrind support by hinting it of our memory usages, having it to report proper mempool leaks.])],
289 [want_valgrind=$enableval])
291 AC_MSG_CHECKING([whether to enable build with valgrind])
292 AC_MSG_RESULT([${want_valgrind}])
294 if test "x${want_valgrind}" = "xyes" || test "x${want_valgrind}" = "xauto"; then
295 PKG_CHECK_MODULES([VALGRIND],
298 requirement_eina="valgrind ${requirement_eina}"
302 AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled])
303 if test "x${want_valgrind}" = "xyes"; then
304 AC_MSG_ERROR([Valgrind >= 2.4.0 is required])
308 AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled])
312 # Evil library for compilation on Windows CE
317 PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0])
318 AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if evil package is installed])
319 requirement_eina="${requirement_eina} evil"
320 EFL_EINA_BUILD="-DEFL_EINA_BUILD"
323 AC_SUBST([EFL_EINA_BUILD])
325 # Check ememoa memory pool library
327 AC_ARG_ENABLE([ememoa],
328 [AC_HELP_STRING([--enable-ememoa], [build ememoa memory pool module @<:@default=yes@:>@])],
330 if test "x${enableval}" = "xyes" ; then
336 [enable_ememoa="yes"])
338 AC_MSG_CHECKING([whether to use ememoa for memory pool])
339 AC_MSG_RESULT([$enable_ememoa])
341 if test "x${enable_ememoa}" = "xyes" ; then
342 PKG_CHECK_MODULES([EMEMOA],
344 [enable_ememoa="yes"],
345 [enable_ememoa="no"])
348 PKG_CHECK_MODULES([ECORE_EVAS],
349 [ecore-evas ecore evas],
350 [build_tiler_example="yes"],
351 [build_tiler_example="no"])
353 AM_CONDITIONAL([BUILD_TILER_EXAMPLE], [test "x${build_tiler_example}" = "xyes"])
355 ### Checks for compiler characteristics
367 EINA_CFLAGS="${EVIL_CFLAGS}"
372 EINA_CFLAGS="${EVIL_CFLAGS}"
376 AM_CONDITIONAL([EINA_HAVE_WINCE], [test "x$have_wince" = "xyes"])
377 AM_CONDITIONAL([EINA_HAVE_WIN32], [test "x$have_win32" = "xyes"])
381 EFL_COMPILER_FLAG([-Wall])
382 EFL_COMPILER_FLAG([-W])
385 EFL_COMPILER_FLAG([-Wshadow])
387 ### Checks for portability layer
389 PKG_CHECK_MODULES([EXOTIC],
391 [enable_exotic="yes"],
392 [enable_exotic="no"])
394 if test "x${enable_exotic}" = "xyes"; then
395 requirement_eina="exotic ${requirement_eina}"
396 EINA_CFLAGS="${EINA_CFLAGS} ${EXOTIC_CFLAGS}"
397 EINA_LIBS="${EXOTIC_LIBS}"
399 EINA_CONFIGURE_HAVE_EXOTIC="#define EINA_HAVE_EXOTIC"
400 AC_DEFINE([HAVE_EXOTIC_H], [1], [Define to 1 if you have Exotic.])
402 AM_CONDITIONAL([EINA_HAVE_EXOTIC], [test "x${enable_exotic}" = "xyes"])
403 AC_SUBST([EINA_CONFIGURE_HAVE_EXOTIC])
405 case "$host_vendor" in
407 PKG_CHECK_MODULES([ESCAPE], [escape])
408 AC_DEFINE(HAVE_ESCAPE, 1, [Set to 1 if Escape package is installed])
409 requirement_eina="${requirement_eina} escape"
410 EINA_CFLAGS="${ESCAPE_CFLAGS} ${EINA_CFLAGS}"
414 AC_SUBST([EINA_CFLAGS])
416 ### Checks for linker characteristics
418 lt_enable_auto_import=""
421 EINA_LIBS="${EINA_LIBS} -ldl ${EVIL_LIBS} -lm"
422 lt_enable_auto_import="-Wl,--enable-auto-import"
425 EINA_LIBS="${EINA_LIBS} -lm"
428 EINA_LIBS="${EINA_LIBS} -lrt -lm"
431 EINA_LIBS="${EINA_LIBS} -lm"
434 EINA_LIBS="${EINA_LIBS} -ldl -lm"
437 EINA_LIBS="${EINA_LIBS} -lrt -ldl -lm"
440 case "$host_vendor" in
442 # Escape had already been checked to exist
443 EINA_LIBS="${ESCAPE_LIBS}"
446 AC_SUBST([EINA_LIBS])
447 AC_SUBST([lt_enable_auto_import])
449 EFL_LINKER_FLAG([-fno-strict-aliasing])
451 CFLAGS="${CFLAGS} ${EINA_CFLAGS}"
452 LDFLAGS="${LDFLAGS} ${EINA_LDFLAGS}"
453 LIBS="${LIBS} ${EINA_LIBS}"
455 ### Checks for header files
459 AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h sys/mman.h execinfo.h])
461 if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then
462 EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"
463 AC_DEFINE([HAVE_INTTYPES_H], [1], [Define to 1 if you have the <inttypes.h> header file.])
465 AC_SUBST([EINA_CONFIGURE_HAVE_INTTYPES_H])
467 if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then
468 EINA_CONFIGURE_HAVE_STDINT_H="#define EINA_HAVE_STDINT_H"
469 AC_DEFINE([HAVE_STDINT_H], [1], [Define to 1 if you have the <stdint.h> header file.])
471 AC_SUBST([EINA_CONFIGURE_HAVE_STDINT_H])
475 AC_CHECK_SIZEOF([wchar_t])
476 EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
477 AC_SUBST([EINA_SIZEOF_WCHAR_T])
478 AC_CHECK_TYPES([siginfo_t], [], [],
479 [[#include <signal.h>
481 # include <siginfo.h>
485 ### Check if dirent.h is usable
487 AC_CHECK_TYPES([struct dirent], [have_dirent="yes"], [have_dirent="no"],
488 [[#include <dirent.h>
491 if test "x${have_dirent}" = "xyes" ; then
492 EINA_CONFIGURE_HAVE_DIRENT_H="#define EINA_HAVE_DIRENT_H"
493 AC_DEFINE([HAVE_DIRENT_H], [1], [Define to 1 if you have a valid <dirent.h> header file.])
495 AC_SUBST([EINA_CONFIGURE_HAVE_DIRENT_H])
497 ### Checks for library functions
500 AC_CHECK_FUNCS([strlcpy openat fstatat fpathconf execvp backtrace backtrace_symbols])
502 AC_MSG_CHECKING([for dirfd])
520 AC_MSG_RESULT([${have_dirfd}])
522 if test "x${have_dirfd}" = "xyes" ; then
523 AC_DEFINE([HAVE_DIRFD], [1], [ Define to 1 if you have the `dirfd' function or macro.])
526 # check debug information for malloc
527 AC_CHECK_FUNCS([malloc_usable_size], [malloc_true_size="yes"], [malloc_true_size="no"])
528 if test "x${malloc_true_size}" = "xyes" ; then
529 AC_DEFINE([HAVE_MALLOC_USABLE_SIZE], [1], [We will be able to know the exact amount of wasted memory])
532 want_debug_malloc="no"
533 AC_ARG_ENABLE([debug-malloc],
534 [AC_HELP_STRING([--enable-debug-malloc], [enable debugging of malloc usage overhead in our allocator @<:@default=enabled@:>@])],
536 if test "x${enableval}" = "xyes" ; then
537 want_debug_malloc="yes"
539 want_debug_malloc="no"
541 ], [want_debug_malloc="no"])
543 if test "x${malloc_true_size}" = "xyes" -a "x${want_debug_malloc}" = "xyes"; then
544 AC_DEFINE([EINA_DEBUG_MALLOC], [1], [Turn on debugging overhead in mempool])
552 AC_DEFINE([HAVE_DLADDR])
553 AC_DEFINE([HAVE_DLOPEN])
556 AC_CHECK_FUNCS([dlopen], [res="yes"], [res="no"])
557 if test "x${res}" = "xyes" ; then
558 AC_CHECK_FUNCS([dladdr], [AC_DEFINE([HAVE_DLADDR])])
559 AC_DEFINE([HAVE_DLOPEN])
561 AC_CHECK_LIB([dl], [dlopen], [res="yes"], [res="no"])
562 if test "x${res}" = "xyes" ; then
563 AC_CHECK_LIB([dl], [dladdr], [AC_DEFINE([HAVE_DLADDR])])
564 AC_DEFINE(HAVE_DLOPEN)
570 AC_SUBST([dlopen_libs])
573 EFL_CHECK_FNMATCH([have_log="yes"], [have_log="no"])
577 [AC_HELP_STRING([--disable-log], [disable Eina_Log infrastructure completly @<:@default=enabled@:>@])],
579 if test "x${enableval}" = "xyes" ; then
588 if test "x${have_log}" = xyes -a "x${want_log}" = xyes; then
592 AC_MSG_CHECKING([wether to build Eina_Log infrastructure])
593 AC_MSG_RESULT([${enable_log}])
595 if test "x${enable_log}" = "xyes"; then
596 EINA_CONFIGURE_ENABLE_LOG="#define EINA_ENABLE_LOG"
597 AC_DEFINE([HAVE_LOG], [1], [Define to 1 if we log support is on])
599 AC_SUBST([EINA_CONFIGURE_ENABLE_LOG])
601 AC_CHECK_HEADERS([mcheck.h], [AC_DEFINE([HAVE_MCHECK], [1], [Have mcheck.h])])
602 AC_CHECK_FUNCS([mtrace], [AC_DEFINE([HAVE_MTRACE], [1], [Have mtrace])])
606 AC_ARG_WITH([iconv-link],
607 AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
609 LIBS="$withval $LIBS"
614 AC_MSG_CHECKING(for explicit iconv link options)
615 if test "x${iconv_libs}" = "x" ; then
616 AC_MSG_RESULT([no explicit iconv link option])
618 AC_MSG_RESULT([$iconv_libs])
621 if test "x${have_iconv}" = "xno" ; then
622 AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"])
624 if test "x${have_iconv}" = "xyes" ; then
625 AC_MSG_CHECKING([whether iconv() is in libc])
635 size_t count = iconv(ic, NULL, NULL, NULL, NULL);
640 AC_MSG_RESULT([${have_iconv}])
643 if test "x${have_iconv}" = "xno" ; then
644 AC_MSG_CHECKING([whether iconv() is in libiconv.a])
657 count = iconv(ic, NULL, NULL, NULL, NULL);
668 AC_MSG_RESULT([${have_iconv}])
671 if test "x${have_iconv}" = "xno" ; then
672 AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a])
675 LIBS="-liconv_plug $LIBS"
684 size_t count = iconv(ic, NULL, NULL, NULL, NULL);
688 iconv_libs="-liconv_plug"
695 AC_MSG_RESULT([${have_iconv}])
699 AC_SUBST([iconv_libs])
701 if test "x${have_iconv}" = "xyes" ; then
702 AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed])
707 AC_MSG_CHECKING([for shm_open availability])
714 #include <sys/mman.h>
715 #include <sys/stat.h> /* For mode constants */
716 #include <fcntl.h> /* For O_* constants */
721 fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);
723 [have_shmopen="yes"],
728 AC_MSG_RESULT([${have_shmopen}])
730 if test "x${have_shmopen}" = "xyes"; then
731 AC_DEFINE([HAVE_SHMOPEN], [1], [Define to 1 if you have the `shm_open' function.])
739 AC_MSG_CHECKING([for extended attributes])
745 #include <sys/types.h>
746 #include <sys/xattr.h>
749 size_t tmp = listxattr("/", NULL, 0);
750 tmp = getxattr("/", "user.ethumb.md5", NULL, 0);
751 setxattr("/", "user.ethumb.md5", NULL, 0, 0);
754 AC_DEFINE([HAVE_XATTR], [1], [Define to 1 if you have the `listxattr', `setxattr' and `getxattr' functions.])
759 AC_MSG_RESULT([${have_xattr}])
763 if test "x${have_default_mempool}" = "xyes" ; then
764 enable_chained_pool="no"
765 enable_pass_through="static"
767 enable_chained_pool="static"
768 enable_pass_through="no"
771 enable_one_big="static"
773 EINA_CHECK_MODULE([chained-pool], [${enable_chained_pool}], [chained pool])
774 EINA_CHECK_MODULE([ememoa-fixed], [${enable_ememoa}], [ememoa fixed])
775 EINA_CHECK_MODULE([ememoa-unknown], [${enable_ememoa}], [ememoa unknown])
776 EINA_CHECK_MODULE([fixed-bitmap], [no], [fixed bitmap])
777 EINA_CHECK_MODULE([pass-through], [${enable_pass_through}], [pass through])
778 EINA_CHECK_MODULE([buddy], [no], [buddy])
779 EINA_CHECK_MODULE([one-big], [${enable_one_big}], [one big])
781 ### Make the debug preprocessor configurable
783 ### Unit tests, coverage and benchmarking
785 EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
787 EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"])
788 EINA_CFLAGS="${EINA_CFLAGS} ${EFL_COVERAGE_CFLAGS}"
789 EINA_LIBS="${EINA_LIBS} ${EFL_COVERAGE_LIBS}"
790 if test "x$enable_coverage" = "xyes" ; then
791 EINA_CFLAGS="${EINA_CFLAGS} ${EFL_DEBUG_CFLAGS}"
794 EFL_CHECK_BENCHMARK([enable_benchmark="yes"], [enable_benchmark="no"])
795 EINA_BENCH_MODULE([glib], [${enable_benchmark}], [glib-2.0], [enable_benchmark_glib="yes"], [enable_benchmark_glib="no"])
796 if test -n "$CXX" && test "x$enable_benchmark" = "xyes" ; then
797 AC_DEFINE_UNQUOTED([CITYHASH_BENCH], [1], [enable bench tests for google hash method])
799 AM_CONDITIONAL([CITYHASH_BENCH], [test -n "$CXX" && test "x$enable_benchmark" = "xyes"])
801 AC_SUBST([requirement_eina])
803 ### Build and install examples
804 EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
805 EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
815 src/include/eina_config.h
818 src/modules/mp/Makefile
819 src/modules/mp/chained_pool/Makefile
820 src/modules/mp/ememoa_fixed/Makefile
821 src/modules/mp/ememoa_unknown/Makefile
822 src/modules/mp/pass_through/Makefile
823 src/modules/mp/fixed_bitmap/Makefile
824 src/modules/mp/buddy/Makefile
825 src/modules/mp/one_big/Makefile
827 src/examples/Makefile
832 #####################################################################
838 echo "------------------------------------------------------------------------"
839 echo "$PACKAGE $VERSION"
840 echo "------------------------------------------------------------------------"
843 echo "Configuration Options Summary:"
845 echo " Magic debug..........: ${have_magic_debug}"
846 echo " Safety checks........: ${have_safety_checks}"
847 echo " Maximum log level....: ${with_max_log_level}"
848 echo " Report string usage..: ${have_stringshare_usage}"
849 echo " Valgrind support.....: ${have_valgrind}"
850 echo " Default mempool......: ${have_default_mempool}"
851 echo " Log support..........: ${enable_log}"
852 echo " Thread Support.......: ${have_threads}"
853 if test "${have_threads}" = "POSIX" ; then
854 echo " spinlock...........: ${have_posix_threads_spinlock}"
855 echo " debug usage........: ${have_debug_threads}"
856 echo " on/off support.....: ${have_on_off_threads}"
858 echo " Amalgamation.........: ${do_amalgamation}"
859 echo " Iconv support........: ${have_iconv}"
860 echo " File dirfd...........: ${have_dirfd}"
861 echo " File xattr...........: ${have_xattr}"
863 echo " Documentation........: ${build_doc}"
864 echo " Tests................: ${enable_tests}"
865 echo " Coverage.............: ${enable_coverage}"
866 echo " Examples.............: ${enable_build_examples}"
867 echo " Tiler Example........: ${build_tiler_example}"
868 echo " Examples installed...: ${enable_install_examples}"
869 echo " Benchmark............: ${enable_benchmark}"
870 if test "x${enable_benchmark}" = "xyes" ; then
871 echo " Glib...............: ${enable_benchmark_glib}"
872 echo " E17 real data......: ${enable_benchmark_e17}"
875 echo " CPU Specific Extensions:"
876 echo " MMX................: ${have_mmx}"
877 echo " SSE................: ${have_sse}"
878 echo " SSE2...............: ${have_sse2}"
879 echo " ALTIVEC............: ${have_altivec}"
881 echo " Memory pools:"
882 echo " Buddy..............: ${enable_buddy}"
883 echo " Chained pool.......: ${enable_chained_pool}"
884 echo " Ememoa fixed.......: ${enable_ememoa_fixed}"
885 echo " Ememoa unknown.....: ${enable_ememoa_unknown}"
886 echo " Fixed bitmap.......: ${enable_fixed_bitmap}"
887 echo " One big............: ${enable_one_big}"
888 echo " Pass through.......: ${enable_pass_through}"
890 echo "Compilation............: make (or gmake)"
891 echo " CPPFLAGS.............: $CPPFLAGS"
892 echo " CFLAGS...............: $CFLAGS"
893 echo " LDFLAGS..............: $LDFLAGS"
895 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
896 echo " prefix...............: $prefix"