From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: Yonggang Luo <luoyonggang@gmail.com>
Subject: [PULL 4/7] meson: Fixes curses detection on msys2
Date: Wed, 18 Nov 2020 11:19:37 +0100 [thread overview]
Message-ID: <20201118101940.132594-5-pbonzini@redhat.com> (raw)
In-Reply-To: <20201118101940.132594-1-pbonzini@redhat.com>
From: Yonggang Luo <luoyonggang@gmail.com>
Fixes regression on curses detection in msys2
by commit#925a40df2828d32d3aaaf022282cba81082fb263
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Message-Id: <20201116213106.589-1-luoyonggang@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/meson.build b/meson.build
index 7ddf983ff7..5062407c70 100644
--- a/meson.build
+++ b/meson.build
@@ -490,10 +490,15 @@ if have_system and not get_option('curses').disabled()
return 0;
}'''
- curses = dependency((targetos == 'windows' ? 'ncurses' : 'ncursesw'),
- required: false,
- method: 'pkg-config',
- static: enable_static)
+ curses_dep_list = targetos == 'windows' ? ['ncurses', 'ncursesw'] : ['ncursesw']
+ foreach curses_dep : curses_dep_list
+ if not curses.found()
+ curses = dependency(curses_dep,
+ required: false,
+ method: 'pkg-config',
+ static: enable_static)
+ endif
+ endforeach
msg = get_option('curses').enabled() ? 'curses library not found' : ''
if curses.found()
if cc.links(curses_test, dependencies: [curses])
--
2.28.0
next prev parent reply other threads:[~2020-11-18 10:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 10:19 [PULL 0/7] HVF and Windows changes for QEMU 5.2-rc Paolo Bonzini
2020-11-18 10:19 ` [PULL 1/7] meson: Fix argument for makensis (build regression) Paolo Bonzini
2020-11-18 10:19 ` [PULL 2/7] docs: Fix some typos (found by codespell) Paolo Bonzini
2020-11-18 10:19 ` [PULL 3/7] meson: Fix build with --disable-guest-agent-msi Paolo Bonzini
2020-11-18 10:19 ` Paolo Bonzini [this message]
2020-11-18 10:19 ` [PULL 5/7] hvf: Gate RDTSCP on CPU_BASED2_RDTSCP, not just CPU_BASED_TSC_OFFSET Paolo Bonzini
2020-11-18 10:19 ` [PULL 6/7] hvf: Fix segment selector format Paolo Bonzini
2020-11-18 10:19 ` [PULL 7/7] buildsys: Help git-diff adding .gitattributes config file Paolo Bonzini
2020-11-18 13:42 ` [PULL 0/7] HVF and Windows changes for QEMU 5.2-rc Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201118101940.132594-5-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=luoyonggang@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).