diff options
author | Max Kellermann <max@duempel.org> | 2014-12-21 23:25:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-22 10:31:50 +0100 |
commit | 373706c92b9f71f3b9bd88f21bfdb4c2ce34be47 (patch) | |
tree | 3d9ab3bd0cfdd6feadb74e03fbae32e01443d164 /m4/mpd_define_conditional.m4 | |
parent | 7afe63aa06cd1f7ed797b53f75942b952edcefe1 (diff) | |
download | mpd-373706c92b9f71f3b9bd88f21bfdb4c2ce34be47.tar.gz mpd-373706c92b9f71f3b9bd88f21bfdb4c2ce34be47.tar.xz mpd-373706c92b9f71f3b9bd88f21bfdb4c2ce34be47.zip |
configure.ac: add macro MPD_DEFINE_CONDITIONAL
Diffstat (limited to 'm4/mpd_define_conditional.m4')
-rw-r--r-- | m4/mpd_define_conditional.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/mpd_define_conditional.m4 b/m4/mpd_define_conditional.m4 new file mode 100644 index 000000000..4bc849984 --- /dev/null +++ b/m4/mpd_define_conditional.m4 @@ -0,0 +1,8 @@ +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]) |