From fd8a8487d2e7bb45d1db1409daabe293b4445cae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 5 Nov 2017 17:31:31 +0100 Subject: [PATCH] meson.build: fallback libncurses detection without pkg-config Previously, failure to find libncurses was silently ignored, leading to compiler or linker errors. Closes #6 --- NEWS | 1 + meson.build | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 9e7b11c..bf9ea58 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ncmpc 0.29 - not yet released * fix crash after losing MPD connection * fix crash after DNS lookup error * add Meson option "lyrics_plugin_dir" +* fallback libncurses detection without pkg-config ncmpc 0.28 - (2017-09-21) * fix crash on lyrics screen diff --git a/meson.build b/meson.build index 428e41e..bc1b5e2 100644 --- a/meson.build +++ b/meson.build @@ -70,6 +70,11 @@ else if curses_dep.found() curses = 'ncurses' else + curses_dep = cc.find_library('ncursesw', required: false) + if not curses_dep.found() + curses_dep = cc.find_library('ncurses') + endif + # TODO: find other curses implementation (pdcurses?) endif endif -- 2.30.2