Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
631e9e7f
Commit
631e9e7f
authored
May 14, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
M4 C++ flags macros
parent
1640b684
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
m4/flags.m4
m4/flags.m4
+29
-0
No files found.
m4/flags.m4
View file @
631e9e7f
...
@@ -37,6 +37,35 @@ AC_DEFUN([RDC_PROG_CC_WFLAGS],
...
@@ -37,6 +37,35 @@ AC_DEFUN([RDC_PROG_CC_WFLAGS],
done
done
])
])
AC_DEFUN([RDC_PROG_CXX_FLAGS_IFELSE],
[AC_LANG_ASSERT(C++)
CXXFLAGS_save="${CXXFLAGS}"
as_ac_var=`echo "ac_cv_prog_cxx_flags_$1" | $as_tr_sh`
AC_CACHE_CHECK([if $CXX accepts $1], [$as_ac_var], [
CXXFLAGS="${CXXFLAGS} $1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [
eval "$as_ac_var=yes"
],[
eval "$as_ac_var=no"
])
])
ac_res=`eval echo '${'$as_ac_var'}'`
CFLAGS="${CFLAGS_save}"
AS_IF([test "${ac_res}" != "no"], [$2], [$3])
])
AC_DEFUN([RDC_PROG_CXX_FLAGS],
[AC_LANG_ASSERT(C++)
RDC_PROG_CXX_FLAGS_IFELSE([$1], [CXXFLAGS="${CXXFLAGS} $1"])
])
AC_DEFUN([RDC_PROG_CXX_WFLAGS],
[ for a in $1; do
RDC_PROG_CXX_FLAGS([-W$a])
done
])
AC_DEFUN([RDC_PROG_LINK_FLAGS_IFELSE],
AC_DEFUN([RDC_PROG_LINK_FLAGS_IFELSE],
[AC_LANG_ASSERT(C)
[AC_LANG_ASSERT(C)
LDFLAGS_save="${LDFLAGS}"
LDFLAGS_save="${LDFLAGS}"
...
...
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