From: Thomas Weißschuh Date: Sat, 5 Aug 2023 06:57:28 +0000 (+0200) Subject: meson: properly handle gettext non-existence X-Git-Tag: v2.40-rc1~293 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8bed37a1493b913bf5bda938487ae0c06c11ce7;p=thirdparty%2Futil-linux.git meson: properly handle gettext non-existence Commit e91a49c9747f ("meson: don't build po if no gettext") tried to add the possibility to build util-linux without gettext. Unfortunately by default the call to find_program() would abort the build if the program is not found. Avoid aborting the build. Signed-off-by: Thomas Weißschuh --- diff --git a/po/meson.build b/po/meson.build index c10deafd28..8adfa48d83 100644 --- a/po/meson.build +++ b/po/meson.build @@ -1,4 +1,4 @@ -if not find_program('gettext').found() +if not find_program('gettext', required : false).found() subdir_done() endif