summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5038fe7)
raw | patch | inline | side by side (parent: 5038fe7)
author | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 5 Nov 2017 16:31:31 +0000 (17:31 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Sun, 5 Nov 2017 16:31:31 +0000 (17:31 +0100) |
Previously, failure to find libncurses was silently ignored, leading
to compiler or linker errors.
Closes #6
to compiler or linker errors.
Closes #6
NEWS | patch | blob | history | |
meson.build | patch | blob | history |
index 9e7b11c7d7c58ba59766cdd132022f372f7208a2..bf9ea584b3fc305be354749288217b3c55920cff 100644 (file)
--- a/NEWS
+++ b/NEWS
* 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 428e41e3b45156e5cae210124f8972a62fb93992..bc1b5e2f8695b09373d5196259462d48a48d5bbf 100644 (file)
--- a/meson.build
+++ b/meson.build
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