Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
9abee4a8
Commit
9abee4a8
authored
Jun 27, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* m4/vlc.m4: CVS forgot to add this file. I swear.
parent
fe17002d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
120 additions
and
0 deletions
+120
-0
m4/vlc.m4
m4/vlc.m4
+120
-0
No files found.
m4/vlc.m4
0 → 100644
View file @
9abee4a8
dnl Macros needed for VLC
dnl Add plugins or builtins
AC_DEFUN([AX_ADD_BUILTINS], [
BUILTINS="${BUILTINS} $1"
])
AC_DEFUN([AX_ADD_PLUGINS], [
PLUGINS="${PLUGINS} $1"
])
dnl Save and restore default flags
AC_DEFUN([AX_SAVE_FLAGS], [
CPPFLAGS_save="${CPPFLAGS}"
CFLAGS_save="${CFLAGS}"
CXXFLAGS_save="${CXXFLAGS}"
OBJCFLAGS_save="${OBJCFLAGS}"
LDFLAGS_save="${LDFLAGS}"
])
AC_DEFUN([AX_RESTORE_FLAGS], [
CPPFLAGS="${CPPFLAGS_save}"
CFLAGS="${CFLAGS_save}"
CXXFLAGS="${CXXFLAGS_save}"
OBJCFLAGS="${OBJCFLAGS_save}"
LDFLAGS="${LDFLAGS_save}"
])
dnl Special cases: vlc, pics, plugins, save
AC_DEFUN([AX_ADD_CPPFLAGS], [
for element in [$1]; do
eval "CPPFLAGS_$element="'"$'"{CPPFLAGS_$element} $2"'"'
am_plugins_with_cppflags="${am_plugins_with_cppflags} $element"
done
])
AC_DEFUN([AX_ADD_CFLAGS], [
for element in [$1]; do
eval "CFLAGS_$element="'"$'"{CFLAGS_$element} $2"'"'
am_plugins_with_cflags="${am_plugins_with_cflags} $element"
done
])
AC_DEFUN([AX_ADD_CXXFLAGS], [
for element in [$1]; do
eval "CXXFLAGS_$element="'"$'"{CXXFLAGS_$element} $2"'"'
am_plugins_with_cxxflags="${am_plugins_with_cxxflags} $element"
done
])
AC_DEFUN([AX_ADD_OBJCFLAGS], [
for element in [$1]; do
eval "OBJCFLAGS_$element="'"$'"{OBJCFLAGS_$element} $2"'"'
am_plugins_with_objcflags="${am_plugins_with_objcflags} $element"
done
])
AC_DEFUN([AX_ADD_LDFLAGS], [
for element in [$1]; do
eval "LDFLAGS_$element="'"$'"{LDFLAGS_$element} $2"'"'
am_plugins_with_ldflags="${am_plugins_with_ldflags} $element"
done
])
AC_DEFUN([AX_OUTPUT_VLC_CONFIG_IN], [
AC_MSG_RESULT(configure: creating ./vlc-config.in)
rm -f vlc-config.in
sed -ne '/#@1@#/q;p' < vlc-config.in.in \
| sed -e "s/@gprof@/${enable_gprof}/" \
-e "s/@cprof@/${enable_cprof}/" \
-e "s/@optim@/${enable_optimizations}/" \
-e "s/@debug@/${enable_debug}/" \
-e "s/@release@/${enable_release}/" \
-e "s/@PLUGINS@/${PLUGINS}/" \
-e "s/@BUILTINS@/${BUILTINS}/" \
-e "s/@CFLAGS_TUNING@/${CFLAGS_TUNING}/" \
-e "s/@CFLAGS_OPTIM@/${CFLAGS_OPTIM}/" \
-e "s/@CFLAGS_OPTIM_NODEBUG@/${CFLAGS_OPTIM_NODEBUG}/" \
-e "s/@CFLAGS_NOOPTIM@/${CFLAGS_NOOPTIM}/" \
> vlc-config.in
dnl Switch/case loop
for x in `echo ${am_plugins_with_ldflags}`
do [
echo " ${x})" >> vlc-config.in
if test -n "`eval echo '$'CPPFLAGS_${x}`"; then
echo " cppflags=\"\${cppflags} `eval echo '$'CPPFLAGS_${x}`\"" >> vlc-config.in
fi
if test -n "`eval echo '$'CFLAGS_${x}`"; then
echo " cflags=\"\${cflags} `eval echo '$'CFLAGS_${x}`\"" >> vlc-config.in
fi
if test -n "`eval echo '$'CXXFLAGS_${x}`"; then
echo " cxxflags=\"\${cxxflags} `eval echo '$'CXXFLAGS_${x}`\"" >> vlc-config.in
if test "${x}" != "plugins" -a "${x}" != "builtins"; then
echo " linkage=\"c++\"" >> vlc-config.in
fi
fi
if test -n "`eval echo '$'OBJCFLAGS_${x}`"; then
echo " objcflags=\"\${objcflags} `eval echo '$'OBJCFLAGS_${x}`\"" >> vlc-config.in
if test "${x}" != "plugins" -a "${x}" != "builtins"; then
echo " if test \"\${linkage}\" = \"c\"; then linkage=\"objc\"; fi" >> vlc-config.in
fi
fi
if test -n "`eval echo '$'LDFLAGS_${x}`"; then
echo " ldflags=\"\${ldflags} `eval echo '$'LDFLAGS_${x}`\"" >> vlc-config.in
fi
echo " ;;" >> vlc-config.in
] done
dnl '/#@1@#/,/#@2@#/{/#@.@#/d;p}' won't work on OS X
sed -ne '/#@1@#/,/#@2@#/p' < vlc-config.in.in | sed -e '/#@.@#/d' >> vlc-config.in
AX_VLC_CONFIG_HELPER
dnl '/#@2@#/,${/#@.@#/d;p}' won't work on OS X
sed -ne '/#@2@#/,$p' < vlc-config.in.in | sed -e '/#@.@#/d' >> vlc-config.in
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment