Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
373706c9
Commit
373706c9
authored
Dec 21, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: add macro MPD_DEFINE_CONDITIONAL
parent
7afe63aa
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
86 deletions
+46
-86
configure.ac
configure.ac
+37
-81
mpd_auto.m4
m4/mpd_auto.m4
+1
-5
mpd_define_conditional.m4
m4/mpd_define_conditional.m4
+8
-0
No files found.
configure.ac
View file @
373706c9
This diff is collapsed.
Click to expand it.
m4/mpd_auto.m4
View file @
373706c9
...
@@ -93,11 +93,7 @@ AC_DEFUN([MPD_ARG_ENABLE], [
...
@@ -93,11 +93,7 @@ AC_DEFUN([MPD_ARG_ENABLE], [
$5
$5
if test x$[]enable_$1 = xyes; then
MPD_DEFINE_CONDITIONAL(enable_$1, ENABLE_$2, [$3])
AC_DEFINE(ENABLE_$2, 1,
[Define to enable $3])
fi
AM_CONDITIONAL(ENABLE_$2, test x$[]enable_$1 = xyes)
])
])
dnl Wrapper for AC_ARG_ENABLE and MPD_AUTO_PKG
dnl Wrapper for AC_ARG_ENABLE and MPD_AUTO_PKG
...
...
m4/mpd_define_conditional.m4
0 → 100644
View file @
373706c9
dnl Wrapper for AC_DEFINE and AM_CONDITIONAL
dnl
dnl Parameters: varname1, varname2, description
AC_DEFUN([MPD_DEFINE_CONDITIONAL], [dnl
AM_CONDITIONAL($2, test x$[]$1 = xyes)
if test x$[]$1 = xyes; then
AC_DEFINE($2, 1, [Define to enable $3])
fi])
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