From 900c9c82e0c703fee1f5c55fb4a0913a7fc95306 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 27 Oct 2024 15:00:00 +0000 Subject: meson: fix build with -Di18n=disabled Resolves: https://github.com/linux-pam/linux-pam/issues/847 --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 2be21282..e3d8cc2a 100644 --- a/meson.build +++ b/meson.build @@ -211,7 +211,9 @@ endif libdl = dependency('dl') -if not get_option('i18n').disabled() +if get_option('i18n').disabled() + libintl = null_dep +else libintl = dependency('intl', required: get_option('i18n')) if libintl.found() cdata.set('ENABLE_NLS', 1) -- cgit v1.2.3