From c66389a453c6acb8d78bfba86baee9b7071eb553 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
Date: Wed, 27 Feb 2019 22:55:21 +0100
Subject: [PATCH] meson.build: require Meson 0.49.0

Meson 0.49.0 adds native support for `libgcrypt-config` which is
necessary for detecting libgcrypt dependencies, as the latest
version 1.8.4 of libgcrypt does not provide a .pc file.
---
 NEWS         | 1 +
 doc/user.rst | 2 +-
 meson.build  | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 191af38a0..d4b5df01b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
 ver 0.21.7 (not yet released)
+* require Meson 0.49.0 for native libgcrypt-config support
 
 ver 0.21.6 (2019/03/17)
 * protocol
diff --git a/doc/user.rst b/doc/user.rst
index 9bc049d8e..5ab9539db 100644
--- a/doc/user.rst
+++ b/doc/user.rst
@@ -54,7 +54,7 @@ Download the source tarball from the `MPD home page <https://musicpd.org>`_ and
 In any case, you need:
 
 * a C++14 compiler (e.g. gcc 6.0 or clang 3.9)
-* `Meson 0.47.2 <http://mesonbuild.com/>`__ and `Ninja
+* `Meson 0.49.0 <http://mesonbuild.com/>`__ and `Ninja
   <https://ninja-build.org/>`__
 * Boost 1.58
 * pkg-config 
diff --git a/meson.build b/meson.build
index d57928479..bafe9990e 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@ project(
   'mpd',
   ['c', 'cpp'],
   version: '0.21.7',
-  meson_version: '>= 0.47.2',
+  meson_version: '>= 0.49.0',
   default_options: [
     'c_std=c99',
     'cpp_std=c++14'