* compile ememoa stuff only when is it available

* move AC_C___ATTRIBUTE__ to where it belongs
 * improve autotools when running 'make' just after having modified configure.in
 * formatting


SVN revision: 35293
This commit is contained in:
doursse 2008-08-01 13:03:01 +00:00 committed by doursse
parent 2f71e6a3d4
commit a6b77baa4e
3 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,7 @@
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
MAINTAINERCLEANFILES = \

View File

@ -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

View File

@ -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