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
63d04645
Commit
63d04645
authored
Mar 19, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m4: add API documentation
parent
3f4908c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mpd_auto.m4
m4/mpd_auto.m4
+18
-0
No files found.
m4/mpd_auto.m4
View file @
63d04645
dnl Parameters: varname1, description
AC_DEFUN([MPD_AUTO_ENABLED], [
AC_DEFUN([MPD_AUTO_ENABLED], [
if test x$[]enable_$1 = xauto; then
if test x$[]enable_$1 = xauto; then
AC_MSG_NOTICE([auto-detected $2])
AC_MSG_NOTICE([auto-detected $2])
...
@@ -5,6 +6,7 @@ AC_DEFUN([MPD_AUTO_ENABLED], [
...
@@ -5,6 +6,7 @@ AC_DEFUN([MPD_AUTO_ENABLED], [
fi
fi
])
])
dnl Parameters: varname1, description, errmsg
AC_DEFUN([MPD_AUTO_DISABLED], [
AC_DEFUN([MPD_AUTO_DISABLED], [
if test x$[]enable_$1 = xauto; then
if test x$[]enable_$1 = xauto; then
AC_MSG_WARN([$3 -- disabling $2])
AC_MSG_WARN([$3 -- disabling $2])
...
@@ -23,6 +25,10 @@ AC_DEFUN([MPD_AUTO_PRE], [
...
@@ -23,6 +25,10 @@ AC_DEFUN([MPD_AUTO_PRE], [
fi
fi
])
])
dnl Evaluate a check's result. Abort if the feature was requested
dnl explicitly but is unavailable.
dnl
dnl Parameters: varname1, description, errmsg
AC_DEFUN([MPD_AUTO_RESULT], [
AC_DEFUN([MPD_AUTO_RESULT], [
if test x$[]enable_$1 = xno; then
if test x$[]enable_$1 = xno; then
found_$1=no
found_$1=no
...
@@ -35,6 +41,9 @@ AC_DEFUN([MPD_AUTO_RESULT], [
...
@@ -35,6 +41,9 @@ AC_DEFUN([MPD_AUTO_RESULT], [
fi
fi
])
])
dnl Invoke a check if its configuration is "yes" or "auto" and call
dnl MPD_AUTO_RESULT.
dnl
dnl Parameters: varname1, description, errmsg, check
dnl Parameters: varname1, description, errmsg, check
AC_DEFUN([MPD_AUTO], [
AC_DEFUN([MPD_AUTO], [
if test x$[]enable_$1 != xno; then
if test x$[]enable_$1 != xno; then
...
@@ -43,6 +52,9 @@ AC_DEFUN([MPD_AUTO], [
...
@@ -43,6 +52,9 @@ AC_DEFUN([MPD_AUTO], [
MPD_AUTO_RESULT([$1], [$2], [$3])
MPD_AUTO_RESULT([$1], [$2], [$3])
])
])
dnl Wrapper for MPD_AUTO and PKG_CHECK_MODULES.
dnl
dnl Parameters: varname1, varname2, pkgname, description, errmsg
AC_DEFUN([MPD_AUTO_PKG], [
AC_DEFUN([MPD_AUTO_PKG], [
MPD_AUTO([$1], [$4], [$5],
MPD_AUTO([$1], [$4], [$5],
[PKG_CHECK_MODULES([$2], [$3],
[PKG_CHECK_MODULES([$2], [$3],
...
@@ -77,6 +89,12 @@ AC_DEFUN([MPD_AUTO_LIB], [
...
@@ -77,6 +89,12 @@ AC_DEFUN([MPD_AUTO_LIB], [
[$5])])
[$5])])
])
])
dnl Convert the given string into a string for the "default value" in
dnl the help text. If the string is a literal, then it is returned
dnl as-is; if it contains a variable reference, just "auto" is
dnl emitted.
dnl
dnl Parameters: varname1
AC_DEFUN([MPD_FORMAT_DEFAULT],
AC_DEFUN([MPD_FORMAT_DEFAULT],
[ifelse([$1], [], [auto],
[ifelse([$1], [], [auto],
index([$1], [$]), [-1], [$1],
index([$1], [$]), [-1], [$1],
...
...
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