From 6030b9de79a3403d42a01432b67e0fa7a3948149 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 21 Jul 2014 15:51:39 +0100 Subject: [PATCH] Configure.ac: Free up the "efl" name for usage. At the moment we use the fake "efl" library as a dependency for everything and use it as a way to have global cflags and lib deps. This is bad as we'd like to have a "real" libefl. I changed EFL to EFLALL as the new name. Easy to change to something else if anyone finds this name lacking. It's internal. --- configure.ac | 16 ++++++++-------- m4/efl.m4 | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index c665cfdc79..1df6022f6e 100644 --- a/configure.ac +++ b/configure.ac @@ -146,10 +146,10 @@ EFL_WITH_BIN_SUFFIX([elua], [elua], [_bin]) #### Default values -requirements_pc_efl="" -requirements_pc_deps_efl="" -requirements_libs_efl="" -requirements_cflags_efl="" +requirements_pc_eflall="" +requirements_pc_deps_eflall="" +requirements_libs_eflall="" +requirements_cflags_eflall="" requirements_pc_crypto="" requirements_pc_deps_crypto="" @@ -424,8 +424,8 @@ AC_CHECK_TYPES([siginfo_t], [], [], AC_C_BIGENDIAN AC_C_INLINE -EFL_CHECK_COMPILER_FLAGS([EFL], [-Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers -fvisibility=hidden -fdata-sections -ffunction-sections]) -EFL_CHECK_LINKER_FLAGS([EFL], [-fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-strict-aliasing -Wl,--as-needed -Wl,--no-copy-dt-needed-entries]) +EFL_CHECK_COMPILER_FLAGS([EFLALL], [-Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers -fvisibility=hidden -fdata-sections -ffunction-sections]) +EFL_CHECK_LINKER_FLAGS([EFLALL], [-fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-strict-aliasing -Wl,--as-needed -Wl,--no-copy-dt-needed-entries]) case "${build_profile}" in dev) dnl Check if compiler has a dodgy -Wshadow that emits errors when shadowing a global @@ -433,7 +433,7 @@ case "${build_profile}" in CFLAGS_save="${CFLAGS}" CFLAGS="${CFLAGS} -Werror -Wshadow" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int x;]], [[int x = 0; (void)x;]])],[AC_MSG_RESULT([no]) - EFL_CHECK_COMPILER_FLAGS([EFL], [-Wshadow])],[AC_MSG_RESULT([yes])]) + EFL_CHECK_COMPILER_FLAGS([EFLALL], [-Wshadow])],[AC_MSG_RESULT([yes])]) CFLAGS="${CFLAGS_save}" ;; @@ -578,7 +578,7 @@ pause \ AC_FUNC_ALLOCA -EFL_CHECK_FUNCS([EFL], [fnmatch gettimeofday dirfd fcntl]) +EFL_CHECK_FUNCS([EFLALL], [fnmatch gettimeofday dirfd fcntl]) have_atfile_source="${ac_cv_func_fstatat}" AC_DEFINE_IF([HAVE_ATFILE_SOURCE], diff --git a/m4/efl.m4 b/m4/efl.m4 index b820b0f430..f4ec1263d7 100644 --- a/m4/efl.m4 +++ b/m4/efl.m4 @@ -361,14 +361,14 @@ m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl libdirname="m4_defn([DOWN])" libname="m4_defn([DOWN])" -m4_defn([UP])_LDFLAGS="${EFL_COV_LDFLAGS} ${EFL_LDFLAGS} ${m4_defn([UP])_LDFLAGS}" -m4_defn([UP])_LIBS=" ${m4_defn([UP])_LDFLAGS} ${EFL_COV_LIBS} ${EFL_LIBS} ${m4_defn([UP])_LIBS} ${requirements_internal_libs_[]m4_defn([DOWN])} ${requirements_internal_deps_libs_[]m4_defn([DOWN])} ${requirements_public_libs_[]m4_defn([DOWN])} ${requirements_libs_[]m4_defn([DOWN])} ${requirements_libs_efl} " +m4_defn([UP])_LDFLAGS="${EFLALL_COV_LDFLAGS} ${EFLALL_LDFLAGS} ${m4_defn([UP])_LDFLAGS}" +m4_defn([UP])_LIBS=" ${m4_defn([UP])_LDFLAGS} ${EFLALL_COV_LIBS} ${EFLALL_LIBS} ${m4_defn([UP])_LIBS} ${requirements_internal_libs_[]m4_defn([DOWN])} ${requirements_internal_deps_libs_[]m4_defn([DOWN])} ${requirements_public_libs_[]m4_defn([DOWN])} ${requirements_libs_[]m4_defn([DOWN])} ${requirements_libs_eflall} " m4_defn([UP])_INTERNAL_LIBS="${m4_defn([UP])_INTERNAL_LIBS} ${requirements_internal_libs_[]m4_defn([DOWN])}" USE_[]m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS} lib/${libdirname}/lib${libname}.la" USE_[]m4_defn([UP])_INTERNAL_LIBS="${m4_defn([UP])_INTERNAL_LIBS} lib/${libdirname}/lib${libname}.la" -m4_defn([UP])_CFLAGS="${EFL_COV_CFLAGS} ${EFL_CFLAGS} ${m4_defn([UP])_CFLAGS} -I\$(top_srcdir)/src/lib/${libdirname} -I\$(top_builddir)/src/lib/${libdirname} -I\$(top_srcdir)/src/bindings/${libdirname} -I\$(top_builddir)/src/bindings/${libdirname} ${requirements_cflags_[]m4_defn([DOWN])} ${requirements_cflags_efl} -DEFL_[]m4_defn([UP])_BUILD=1" -requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_efl}" -requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_efl}" +m4_defn([UP])_CFLAGS="${EFLALL_COV_CFLAGS} ${EFLALL_CFLAGS} ${m4_defn([UP])_CFLAGS} -I\$(top_srcdir)/src/lib/${libdirname} -I\$(top_builddir)/src/lib/${libdirname} -I\$(top_srcdir)/src/bindings/${libdirname} -I\$(top_builddir)/src/bindings/${libdirname} ${requirements_cflags_[]m4_defn([DOWN])} ${requirements_cflags_eflall} -DEFL_[]m4_defn([UP])_BUILD=1" +requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_eflall}" +requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_eflall}" AC_MSG_NOTICE([Finished $1 checks])dnl m4_popdef([UP])dnl