aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-07 19:23:00 +0200
committerMax Kellermann <max@duempel.org>2013-08-07 19:23:00 +0200
commitfdc7d13ad16184c20d2bd37063cbb4d9957a4461 (patch)
tree37cb0553b2879b700584c472939d242ed93aa8f0 /m4
parent355dd5cb24f1d36cb13a2463ce7585186474adc8 (diff)
downloadmpd-fdc7d13ad16184c20d2bd37063cbb4d9957a4461.tar.gz
mpd-fdc7d13ad16184c20d2bd37063cbb4d9957a4461.tar.xz
mpd-fdc7d13ad16184c20d2bd37063cbb4d9957a4461.zip
configure.ac: pass option name to MPD_OPTIONAL_FUNC()
Diffstat (limited to 'm4')
-rw-r--r--m4/mpd_func.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/mpd_func.m4 b/m4/mpd_func.m4
index c4650336b..d12d27062 100644
--- a/m4/mpd_func.m4
+++ b/m4/mpd_func.m4
@@ -1,12 +1,12 @@
-dnl MPD_OPTIONAL_FUNC(func, macro)
+dnl MPD_OPTIONAL_FUNC(name, func, macro)
dnl
dnl Allow the user to enable or disable the use of a function. If the
dnl option is not specified, the function is auto-detected.
AC_DEFUN([MPD_OPTIONAL_FUNC], [
AC_ARG_ENABLE([$1],
AS_HELP_STRING([--enable-$1],
- [use the function "$1()" (default: auto)]),
- [test xenable_$1 = xyes && AC_DEFINE([$2], 1, [Define to use $1()])],
- [AC_CHECK_FUNC([$1],
- [AC_DEFINE([$2], 1, [Define to use $1()])],)])
+ [use the function "$1" (default: auto)]),
+ [test xenable_$1 = xyes && AC_DEFINE([$3], 1, [Define to use $1])],
+ [AC_CHECK_FUNC([$2],
+ [AC_DEFINE([$3], 1, [Define to use $1])],)])
])