Commit a199f247 authored by Daniel Mierswa's avatar Daniel Mierswa Committed by Rémi Denis-Courmont

Make VLC_ADD_* capable of handling multiple plugins.

Loop during autoconf since we always use fixed strings for the first
parameter anyway. Probably saves some runtime too ;).
Signed-off-by: default avatarDaniel Mierswa <impulze@impulze.org>
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent caff72d3
...@@ -11,58 +11,60 @@ AC_DEFUN([VLC_ADD_BUILTINS], [ ...@@ -11,58 +11,60 @@ AC_DEFUN([VLC_ADD_BUILTINS], [
]) ])
AC_DEFUN([VLC_ADD_PLUGIN], [ AC_DEFUN([VLC_ADD_PLUGIN], [
PLUGINS="${PLUGINS} $1" m4_foreach_w([element], [$1], [
AC_SUBST([LTLIB$1], ["lib$1_plugin.la"]) [PLUGINS="${PLUGINS} ]element["]
AC_SUBST([LTLIB]element, [lib]element[_plugin.la])
])
]) ])
dnl Special cases: vlc, pics, plugins, save dnl Special cases: vlc, pics, plugins, save
AC_DEFUN([VLC_ADD_CPPFLAGS], [ AC_DEFUN([VLC_ADD_CPPFLAGS], [
for element in [$1]; do m4_foreach_w([element], [$1], [
eval "CPPFLAGS_${element}="'"$'"{CPPFLAGS_${element}} $2"'"' [CPPFLAGS_]element[="${CPPFLAGS_]element[} $2"]
am_modules_with_cppflags="${am_modules_with_cppflags} ${element}" [am_modules_with_cppflags="${am_modules_with_cppflags} ]element["]
done ])
]) ])
AC_DEFUN([VLC_ADD_CFLAGS], [ AC_DEFUN([VLC_ADD_CFLAGS], [
for element in [$1]; do m4_foreach_w([element], [$1], [
eval "CFLAGS_${element}="'"$'"{CFLAGS_${element}} $2"'"' [CFLAGS_]element[="${CFLAGS_]element[} $2"]
am_modules_with_cflags="${am_modules_with_cflags} ${element}" [am_modules_with_cflags="${am_modules_with_cflags} ]element["]
done ])
]) ])
AC_DEFUN([VLC_ADD_CXXFLAGS], [ AC_DEFUN([VLC_ADD_CXXFLAGS], [
for element in [$1]; do m4_foreach_w([element], [$1], [
eval "CXXFLAGS_${element}="'"$'"{CXXFLAGS_${element}} $2"'"' [CXXFLAGS_]element[="${CXXFLAGS_]element[} $2"]
am_modules_with_cxxflags="${am_modules_with_cxxflags} ${element}" [am_modules_with_cxxflags="${am_modules_with_cxxflags} ]element["]
done ])
]) ])
AC_DEFUN([VLC_ADD_OBJCFLAGS], [ AC_DEFUN([VLC_ADD_OBJCFLAGS], [
for element in [$1]; do m4_foreach_w([element], [$1], [
eval "OBJCFLAGS_${element}="'"$'"{OBJCFLAGS_${element}} $2"'"' [OBJCFLAGS_]element[="${OBJCFLAGS_]element[} $2"]
am_modules_with_objcflags="${am_modules_with_objcflags} ${element}" [am_modules_with_objcflags="${am_modules_with_objcflags} ]element["]
done ])
]) ])
AC_DEFUN([VLC_ADD_LDFLAGS], [ AC_DEFUN([VLC_ADD_LDFLAGS], [
for element in [$1]; do m4_foreach_w([element], [$1], [
eval "LDFLAGS_${element}="'"'"$2 "'$'"{LDFLAGS_${element}} "'"' [LDFLAGS_]element[="${LDFLAGS_]element[} $2"]
am_modules_with_ldflags="${am_modules_with_ldflags} ${element}" [am_modules_with_ldflags="${am_modules_with_ldflags} ]element["]
done ])
]) ])
AC_DEFUN([VLC_ADD_LIBS], [ AC_DEFUN([VLC_ADD_LIBS], [
for element in [$1]; do m4_foreach_w([element], [$1], [
eval "LIBS_${element}="'"'"$2 "'$'"{LIBS_${element}} "'"' [LIBS_]element[="${LIBS_]element[} $2"]
am_modules_with_libs="${am_modules_with_libs} ${element}" [am_modules_with_libs="${am_modules_with_libs} ]element["]
done ])
]) ])
AC_DEFUN([VLC_SET_CFLAGS_WERROR], [ AC_DEFUN([VLC_SET_CFLAGS_WERROR], [
for element in [$1]; do m4_foreach_w([element], [$1], [
eval "CFLAGS_WERROR_${element}="'"'"$2"'"' [CFLAGS_WERROR_]element[="${CFLAGS_WERROR_]element[} $2"]
am_modules_with_werror="${am_modules_with_werror} ${element}" [am_modules_with_werror="${am_modules_with_werror} ]element["]
done ])
]) ])
dnl =========================================================================== dnl ===========================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment