meson: convert po/

Meson warns if xgettext is not found.  In the future we may want to add
a required argument to i18n.gettext(); in the meanwhile, I am adding a
--enable-gettext/--disable-gettext option and feature detection in
configure.  This preserves QEMU's default behavior of detecting system
features, without any warning, if neither --enable-* nor --disable-*
is requested.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-09-19 21:02:09 +04:00 committed by Paolo Bonzini
parent a0b93237d8
commit e8f3bd71d8
12 changed files with 44 additions and 131 deletions

View file

@ -1115,6 +1115,9 @@ subdir('tools')
subdir('pc-bios')
subdir('tests')
subdir('docs')
if 'CONFIG_GTK' in config_host
subdir('po')
endif
if build_docs
makeinfo = find_program('makeinfo', required: build_docs)