From: Rosen Penev Date: Fri, 9 Sep 2022 02:12:33 +0000 (-0700) Subject: meson: add PACKAGE definition X-Git-Tag: v2.39-rc1~529^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e43f62954a80e5dd0a9b7f546114bdaed09d95c;p=thirdparty%2Futil-linux.git meson: add PACKAGE definition In the transition to meson, it seems this was missing. Fixes compilation when ENABLE_NLS is defined. Signed-off-by: Rosen Penev --- diff --git a/meson.build b/meson.build index 3185d2273a..ee7619658f 100644 --- a/meson.build +++ b/meson.build @@ -36,9 +36,10 @@ add_project_arguments('-D_GNU_SOURCE', language : 'c') cc = meson.get_compiler('c') conf = configuration_data() +conf.set_quoted('PACKAGE', meson.project_name()) +conf.set_quoted('PACKAGE_VERSION', meson.project_version()) package_string = '@0@ @1@'.format(meson.project_name(), meson.project_version()) conf.set_quoted('PACKAGE_STRING', package_string) -conf.set_quoted('PACKAGE_VERSION', meson.project_version()) codes = [''' {print $1} ''', ''' {sub("-.*","",$2); print $2} ''',