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

Use eval in setting *FLAGS.

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent a0aa43d0
......@@ -20,49 +20,49 @@ AC_DEFUN([VLC_ADD_PLUGIN], [
dnl Special cases: vlc, pics, plugins, save
AC_DEFUN([VLC_ADD_CPPFLAGS], [
m4_foreach_w([element], [$1], [
[CPPFLAGS_]element[="${CPPFLAGS_]element[} $2"]
[eval "CPPFLAGS_]element[="'"$'"{CPPFLAGS_]element[} $2"'"']
[am_modules_with_cppflags="${am_modules_with_cppflags} ]element["]
])
])
AC_DEFUN([VLC_ADD_CFLAGS], [
m4_foreach_w([element], [$1], [
[CFLAGS_]element[="${CFLAGS_]element[} $2"]
[eval "CFLAGS_]element[="'"$'"{CFLAGS_]element[} $2"'"']
[am_modules_with_cflags="${am_modules_with_cflags} ]element["]
])
])
AC_DEFUN([VLC_ADD_CXXFLAGS], [
m4_foreach_w([element], [$1], [
[CXXFLAGS_]element[="${CXXFLAGS_]element[} $2"]
[eval "CXXFLAGS_]element[="'"$'"{CXXFLAGS_]element[} $2"'"']
[am_modules_with_cxxflags="${am_modules_with_cxxflags} ]element["]
])
])
AC_DEFUN([VLC_ADD_OBJCFLAGS], [
m4_foreach_w([element], [$1], [
[OBJCFLAGS_]element[="${OBJCFLAGS_]element[} $2"]
[eval "OBJCFLAGS_]element[="'"$'"{OBJCFLAGS_]element[} $2"'"']
[am_modules_with_objcflags="${am_modules_with_objcflags} ]element["]
])
])
AC_DEFUN([VLC_ADD_LDFLAGS], [
m4_foreach_w([element], [$1], [
[LDFLAGS_]element[="${LDFLAGS_]element[} $2"]
[eval "LDFLAGS_]element[="'"$'"{LDFLAGS_]element[} $2"'"']
[am_modules_with_ldflags="${am_modules_with_ldflags} ]element["]
])
])
AC_DEFUN([VLC_ADD_LIBS], [
m4_foreach_w([element], [$1], [
[LIBS_]element[="${LIBS_]element[} $2"]
[eval "LIBS_]element[="'"$'"{LIBS_]element[} $2"'"']
[am_modules_with_libs="${am_modules_with_libs} ]element["]
])
])
AC_DEFUN([VLC_SET_CFLAGS_WERROR], [
m4_foreach_w([element], [$1], [
[CFLAGS_WERROR_]element[="${CFLAGS_WERROR_]element[} $2"]
[eval "CFLAGS_WERROR_]element[="'"'"$2"'"']
[am_modules_with_werror="${am_modules_with_werror} ]element["]
])
])
......
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