aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-09 21:07:05 +0100
committerMax Kellermann <max@duempel.org>2014-12-09 21:19:09 +0100
commit0f0245625af906cee3f96ec139c6e1e3f580aa05 (patch)
tree29997d838407fe7d3027ee5c16d1ab10e1dbaaf6 /m4
parent8583689fa4623431472c49f34c6f8ac2710cacc8 (diff)
downloadmpd-0f0245625af906cee3f96ec139c6e1e3f580aa05.tar.gz
mpd-0f0245625af906cee3f96ec139c6e1e3f580aa05.tar.xz
mpd-0f0245625af906cee3f96ec139c6e1e3f580aa05.zip
configure.ac: add macro MPD_ENABLE_AUTO_LIB
Diffstat (limited to 'm4')
-rw-r--r--m4/mpd_auto.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/m4/mpd_auto.m4 b/m4/mpd_auto.m4
index 60ede3124..791395fdc 100644
--- a/m4/mpd_auto.m4
+++ b/m4/mpd_auto.m4
@@ -120,6 +120,16 @@ AC_DEFUN([MPD_ENABLE_AUTO_PKG_LIB], [
])
])
+dnl Wrapper for AC_ARG_ENABLE and MPD_AUTO_LIB
+dnl
+dnl Parameters: varname1, varname2, libname, symname, libs, cflags, description, errmsg, default, pre
+AC_DEFUN([MPD_ENABLE_AUTO_LIB], [
+ MPD_ARG_ENABLE([$1], [$2], [$7], [$9], [
+ $10
+ MPD_AUTO_LIB($1, $2, $3, $4, $5, $6, $7, $8)
+ ])
+])
+
dnl Wrapper for MPD_ENABLE_AUTO_PKG and MPD_DEPENDS
dnl
dnl Parameters: varname1, varname2, pkg, description, errmsg, default, dep_variable, dep_errmsg