summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-10 19:57:53 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-10 19:57:53 +0000
commit4d35e4ca03005d2f7fcf75caa877deb804d2f48a (patch)
tree111aebc08432286f540329e39aa84fd379e23b33 /configure.ac
parent59ed22a467fb4918064e5fa9dc6c75bee37faeaf (diff)
efl: simplify mempools, nuke some and make remaining statically built.
Now we always build the following memory pools statically: - pass_through: calls malloc/free directly, useful to debug. - chained_pool: default for ages. - one_big: used by some embedded systems (should we remove?) Removed: - ememoa_fixed and ememoa_unknown: depends on a separate lib, not supported? - buddy: nobody uses it? NOTE: we do not need the src/modules/eina/mp/*/Makefile.am anymore since they are statically built. But I'll keep these and the references in src/modules/eina/mp/Makefile.am SVN revision: 77792
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac77
1 files changed, 4 insertions, 73 deletions
diff --git a/configure.ac b/configure.ac
index 145c066b31..738a08cea9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -343,23 +343,7 @@ if test "x${have_stringshare_usage}" = "xyes"; then
343fi 343fi
344 344
345# Choose best memory pool 345# Choose best memory pool
346AC_ARG_ENABLE([default-mempool], 346EINA_CONFIGURE_DEFAULT_MEMPOOL="#define EINA_DEFAULT_MEMPOOL"
347 [AC_HELP_STRING([--enable-default-mempool], [Default memory allocator could be faster for some computer. @<:@default=disabled@:>@])],
348 [
349 if test "x${enableval}" = "xyes"; then
350 have_default_mempool="yes"
351 else
352 have_default_mempool="no"
353 fi
354 ],
355 [have_default_mempool="no"])
356
357AC_MSG_CHECKING([whether to use default mempool allocator])
358AC_MSG_RESULT([${have_default_mempool}])
359
360if test "x${have_default_mempool}" = "xyes" ; then
361 EINA_CONFIGURE_DEFAULT_MEMPOOL="#define EINA_DEFAULT_MEMPOOL"
362fi
363AC_SUBST([EINA_CONFIGURE_DEFAULT_MEMPOOL]) 347AC_SUBST([EINA_CONFIGURE_DEFAULT_MEMPOOL])
364 348
365### Checks for programs 349### Checks for programs
@@ -431,36 +415,11 @@ if test "x${ac_cv_func_malloc_usable_size}" = "xyes" && test "x${want_debug_mall
431fi 415fi
432 416
433## Modules 417## Modules
434
435# Check ememoa memory pool library
436
437AC_ARG_ENABLE([ememoa],
438 [AC_HELP_STRING([--enable-ememoa], [build ememoa memory pool module @<:@default=yes@:>@])],
439 [
440 if test "x${enableval}" = "xyes" ; then
441 enable_ememoa="yes"
442 else
443 enable_ememoa="no"
444 fi
445 ],
446 [enable_ememoa="yes"])
447
448AC_MSG_CHECKING([whether to use ememoa for memory pool])
449AC_MSG_RESULT([${enable_ememoa}])
450
451if test "x${enable_ememoa}" = "xyes" ; then
452 PKG_CHECK_MODULES([EMEMOA],
453 [ememoa >= 0.0.26 ],
454 [enable_ememoa="yes"],
455 [enable_ememoa="no"])
456fi
457
458if ! test "x${requirements_pc_deps_eina}" = "x" ; then 418if ! test "x${requirements_pc_deps_eina}" = "x" ; then
459 PKG_CHECK_MODULES([EINA], [${requirements_pc_deps_eina}]) 419 PKG_CHECK_MODULES([EINA], [${requirements_pc_deps_eina}])
460fi 420fi
461 421
462 422
463
464## Examples 423## Examples
465 424
466# TODO: add once ecore-evas is merged: 425# TODO: add once ecore-evas is merged:
@@ -596,24 +555,9 @@ AC_SUBST(EINA_CONFIGURE_HAVE_ON_OFF_THREADS)
596AM_CONDITIONAL([EINA_ON_OFF_THREADS], [! test "x${efl_have_on_off_threads}" = "xno"]) 555AM_CONDITIONAL([EINA_ON_OFF_THREADS], [! test "x${efl_have_on_off_threads}" = "xno"])
597 556
598### Modules 557### Modules
599 558EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
600if test "x${have_default_mempool}" = "xyes" ; then 559EINA_CHECK_MODULE([pass-through], [static], [pass through])
601 enable_chained_pool="no" 560EINA_CHECK_MODULE([one-big], [static], [one big])
602 enable_pass_through="static"
603else
604 enable_chained_pool="static"
605 enable_pass_through="no"
606fi
607
608enable_one_big="static"
609
610EINA_CHECK_MODULE([chained-pool], [${enable_chained_pool}], [chained pool])
611EINA_CHECK_MODULE([ememoa-fixed], [${enable_ememoa}], [ememoa fixed])
612EINA_CHECK_MODULE([ememoa-unknown], [${enable_ememoa}], [ememoa unknown])
613EINA_CHECK_MODULE([fixed-bitmap], [no], [fixed bitmap])
614EINA_CHECK_MODULE([pass-through], [${enable_pass_through}], [pass through])
615EINA_CHECK_MODULE([buddy], [no], [buddy])
616EINA_CHECK_MODULE([one-big], [${enable_one_big}], [one big])
617 561
618 562
619#### End of Eina 563#### End of Eina
@@ -912,11 +856,7 @@ src/modules/Makefile
912src/modules/eina/Makefile 856src/modules/eina/Makefile
913src/modules/eina/mp/Makefile 857src/modules/eina/mp/Makefile
914src/modules/eina/mp/chained_pool/Makefile 858src/modules/eina/mp/chained_pool/Makefile
915src/modules/eina/mp/ememoa_fixed/Makefile
916src/modules/eina/mp/ememoa_unknown/Makefile
917src/modules/eina/mp/pass_through/Makefile 859src/modules/eina/mp/pass_through/Makefile
918src/modules/eina/mp/fixed_bitmap/Makefile
919src/modules/eina/mp/buddy/Makefile
920src/modules/eina/mp/one_big/Makefile 860src/modules/eina/mp/one_big/Makefile
921src/scripts/Makefile 861src/scripts/Makefile
922src/scripts/eina/Makefile 862src/scripts/eina/Makefile
@@ -966,15 +906,6 @@ echo " File dirfd...........: ${efl_func_dirfd}"
966echo " File xattr...........: ${efl_func_setxattr}" 906echo " File xattr...........: ${efl_func_setxattr}"
967echo " shm_open.............: ${efl_func_shm_open}" 907echo " shm_open.............: ${efl_func_shm_open}"
968echo 908echo
969echo " Memory pools:"
970echo " Buddy..............: ${enable_buddy}"
971echo " Chained pool.......: ${enable_chained_pool}"
972echo " Ememoa fixed.......: ${enable_ememoa_fixed}"
973echo " Ememoa unknown.....: ${enable_ememoa_unknown}"
974echo " Fixed bitmap.......: ${enable_fixed_bitmap}"
975echo " One big............: ${enable_one_big}"
976echo " Pass through.......: ${enable_pass_through}"
977echo
978echo "Compilation............: make (or gmake)" 909echo "Compilation............: make (or gmake)"
979echo " CPPFLAGS.............: $CPPFLAGS" 910echo " CPPFLAGS.............: $CPPFLAGS"
980echo " CFLAGS...............: $CFLAGS" 911echo " CFLAGS...............: $CFLAGS"