diff --git a/legacy/eina/Makefile.am b/legacy/eina/Makefile.am index 89633b4e8e..f0f6ff5c39 100644 --- a/legacy/eina/Makefile.am +++ b/legacy/eina/Makefile.am @@ -1,5 +1,7 @@ ## Process this file with automake to produce Makefile.in +ACLOCAL_AMFLAGS = -I m4 + SUBDIRS = src MAINTAINERCLEANFILES = \ diff --git a/legacy/eina/configure.in b/legacy/eina/configure.in index b3441542e1..a08c2b527b 100644 --- a/legacy/eina/configure.in +++ b/legacy/eina/configure.in @@ -11,8 +11,6 @@ AC_ISC_POSIX AM_INIT_AUTOMAKE(1.6 dist-bzip2) AM_CONFIG_HEADER(config.h) -AC_C___ATTRIBUTE__ - AC_LIBTOOL_WIN32_DLL define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl @@ -90,11 +88,13 @@ fi AM_CONDITIONAL(EINA_ENABLE_TESTS, test "x${enable_tests}" = "xyes") # Check ememoa memory pool library + PKG_CHECK_MODULES([EMEMOA], [ememoa >= 0.0.26 ], [enable_ememoa="yes"], [enable_ememoa="no"] ) + AM_CONDITIONAL(EINA_ENABLE_EMEMOA, test "x${enable_ememoa}" = "xyes") ### Checks for header files @@ -141,6 +141,7 @@ AM_CONDITIONAL(EINA_ENABLE_COVERAGE, test "x${enable_coverage}" = "xyes") AC_C_CONST AC_C_BIGENDIAN AC_PROG_CC_STDC +AC_C___ATTRIBUTE__ if test "x$enable_coverage" = "xyes"; then CFLAGS="${DEBUG_CFLAGS}" @@ -197,8 +198,8 @@ echo echo " Tests................: ${enable_tests}" echo " Coverage.............: ${enable_coverage}" echo -echo "Memory pool:" -echo " Ememoa...............: ${enable_ememoa}" +echo " Memory pool:" +echo " Ememoa.............: ${enable_ememoa}" echo echo " Installation.........: make install" echo diff --git a/legacy/eina/src/modules/mp/ememoa_fixed/Makefile.am b/legacy/eina/src/modules/mp/ememoa_fixed/Makefile.am index 83587c0349..41cdf9e252 100644 --- a/legacy/eina/src/modules/mp/ememoa_fixed/Makefile.am +++ b/legacy/eina/src/modules/mp/ememoa_fixed/Makefile.am @@ -7,6 +7,8 @@ AM_CPPFLAGS = \ @COVERAGE_CFLAGS@ \ @EMEMOA_CFLAGS@ +if EINA_ENABLE_EMEMOA + controllerdir = $(libdir)/eina/chained_pool/ controller_LTLIBRARIES = eina_ememoa_fixed.la @@ -16,3 +18,5 @@ eina_ememoa_fixed.c eina_ememoa_fixed_la_LIBADD = $(top_builddir)/src/lib/libeina.la @EMEMOA_LIBS@ @COVERAGE_LIBS@ eina_ememoa_fixed_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version eina_ememoa_fixed_la_DEPENDENCIES = $(top_builddir)/src/lib/libeina.la + +endif