summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-16 21:25:58 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-16 21:25:58 +0000
commit2554b34a92b40498d67ebe111d1b257478a9a6bd (patch)
tree30451fd22edb6dfed743ff64925335a82c80349a /m4
parentae8761f809fa316e3c2feba3f818162a0a7b6201 (diff)
fix internal library linkage to pull in dependencies.
some libraries will need to pull more than its own .so, for example Eina.h includes eina_lock.h that includes eina_inline_lock_posix.x that will use pthread calls directly from user code. This was already listed in eina.pc, but not being present in USE_EINA_LIBS. SVN revision: 82909
Diffstat (limited to 'm4')
-rw-r--r--m4/efl.m413
1 files changed, 5 insertions, 8 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index cbd3791..90e4cb7 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -108,6 +108,7 @@ esac
108requirements_pc_[]m4_defn([DOWNEFL])="${depname} >= ${PACKAGE_VERSION} ${requirements_pc_[][]m4_defn([DOWNEFL])}" 108requirements_pc_[]m4_defn([DOWNEFL])="${depname} >= ${PACKAGE_VERSION} ${requirements_pc_[][]m4_defn([DOWNEFL])}"
109requirements_cflags_[]m4_defn([DOWNEFL])="-I\$(top_srcdir)/src/lib/${libdirname} -I\$(top_builddir)/src/lib/${libdirname} ${requirements_cflags_[][]m4_defn([DOWNEFL])}" 109requirements_cflags_[]m4_defn([DOWNEFL])="-I\$(top_srcdir)/src/lib/${libdirname} -I\$(top_builddir)/src/lib/${libdirname} ${requirements_cflags_[][]m4_defn([DOWNEFL])}"
110requirements_internal_libs_[]m4_defn([DOWNEFL])="lib/${libdirname}/lib${libname}.la ${requirements_internal_libs_[][]m4_defn([DOWNEFL])}" 110requirements_internal_libs_[]m4_defn([DOWNEFL])="lib/${libdirname}/lib${libname}.la ${requirements_internal_libs_[][]m4_defn([DOWNEFL])}"
111requirements_internal_deps_libs_[]m4_defn([DOWNEFL])="${requirements_libs_[]m4_defn([DOWNOTHER])} ${requirements_internal_deps_libs_[][]m4_defn([DOWNEFL])}"
111m4_popdef([DOWNOTHER])dnl 112m4_popdef([DOWNOTHER])dnl
112m4_popdef([DOWNEFL])dnl 113m4_popdef([DOWNEFL])dnl
113]) 114])
@@ -191,15 +192,10 @@ m4_popdef([DOWN])
191 192
192dnl EFL_OPTIONAL_INTERNAL_DEPEND_PKG(EFL, VARIABLE, NAME) 193dnl EFL_OPTIONAL_INTERNAL_DEPEND_PKG(EFL, VARIABLE, NAME)
193AC_DEFUN([EFL_OPTIONAL_INTERNAL_DEPEND_PKG], 194AC_DEFUN([EFL_OPTIONAL_INTERNAL_DEPEND_PKG],
194[ 195[dnl
195m4_pushdef([DOWN], m4_translit([$3], [-A-Z], [_a-z]))dnl
196
197 have_[]m4_defn([DOWN])="no"
198 if test "x$2" = "xyes"; then 196 if test "x$2" = "xyes"; then
199 EFL_INTERNAL_DEPEND_PKG([$1], [$3]) 197 EFL_INTERNAL_DEPEND_PKG([$1], [$3])
200 fi 198 fi
201
202m4_popdef([DOWN])
203]) 199])
204 200
205dnl EFL_ADD_LIBS(PKG, LIBS) 201dnl EFL_ADD_LIBS(PKG, LIBS)
@@ -230,6 +226,7 @@ m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
230m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl 226m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
231 227
232requirements_internal_libs_[]m4_defn([DOWN])="" 228requirements_internal_libs_[]m4_defn([DOWN])=""
229requirements_internal_deps_libs_[]m4_defn([DOWN])=""
233requirements_libs_[]m4_defn([DOWN])="" 230requirements_libs_[]m4_defn([DOWN])=""
234requirements_cflags_[]m4_defn([DOWN])="" 231requirements_cflags_[]m4_defn([DOWN])=""
235requirements_pc_[]m4_defn([DOWN])="" 232requirements_pc_[]m4_defn([DOWN])=""
@@ -274,10 +271,10 @@ case "m4_defn([DOWN])" in
274esac 271esac
275 272
276m4_defn([UP])_LDFLAGS="${m4_defn([UP])_LDFLAGS} ${EFL_COV_CFLAGS} ${EFL_LDFLAGS}" 273m4_defn([UP])_LDFLAGS="${m4_defn([UP])_LDFLAGS} ${EFL_COV_CFLAGS} ${EFL_LDFLAGS}"
277m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS} ${m4_defn([UP])_LDFLAGS} ${EFL_COV_LIBS} ${EFL_LIBS} ${requirements_internal_libs_[]m4_defn([DOWN])} ${requirements_libs_[]m4_defn([DOWN])} ${requirements_libs_efl} " 274m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS} ${m4_defn([UP])_LDFLAGS} ${EFL_COV_LIBS} ${EFL_LIBS} ${requirements_internal_libs_[]m4_defn([DOWN])} ${requirements_internal_deps_libs_[]m4_defn([DOWN])} ${requirements_libs_[]m4_defn([DOWN])} ${requirements_libs_efl} "
278m4_defn([UP])_INTERNAL_LIBS="${m4_defn([UP])_INTERNAL_LIBS} ${requirements_internal_libs_[]m4_defn([DOWN])}" 275m4_defn([UP])_INTERNAL_LIBS="${m4_defn([UP])_INTERNAL_LIBS} ${requirements_internal_libs_[]m4_defn([DOWN])}"
279USE_[]m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS} lib/${libdirname}/lib${libname}.la" 276USE_[]m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS} lib/${libdirname}/lib${libname}.la"
280USE_[]m4_defn([UP])_INTERNAL_LIBS="${m4_defn([UP])_INTERNAL_LIBS} lib/${libdirname}/lib${libname}.la" 277USE_[]m4_defn([UP])_INTERNAL_LIBS="${m4_defn([UP])_INTERNAL_LIBS} lib/${libdirname}/lib${libname}.la ${requirements_internal_deps_libs_[]m4_defn([DOWN])}"
281m4_defn([UP])_CFLAGS="${m4_defn([UP])_CFLAGS} ${EFL_CFLAGS} -I\$(top_srcdir)/src/lib/${libdirname} -I\$(top_builddir)/src/lib/${libdirname} ${requirements_cflags_[]m4_defn([DOWN])} ${requirements_cflags_efl} -DEFL_[]m4_defn([UP])_BUILD=1" 278m4_defn([UP])_CFLAGS="${m4_defn([UP])_CFLAGS} ${EFL_CFLAGS} -I\$(top_srcdir)/src/lib/${libdirname} -I\$(top_builddir)/src/lib/${libdirname} ${requirements_cflags_[]m4_defn([DOWN])} ${requirements_cflags_efl} -DEFL_[]m4_defn([UP])_BUILD=1"
282requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_efl}" 279requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_efl}"
283requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_efl}" 280requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_efl}"