From: Karel Zak Date: Thu, 19 Mar 2026 12:41:56 +0000 (+0100) Subject: meson: add login-stat-mail option X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afc4062f39cff730cc133ec1ff8450ec25886e2e;p=thirdparty%2Futil-linux.git meson: add login-stat-mail option Add the missing login-stat-mail option (default: false) to match autotools --enable-login-stat-mail. When enabled, login will stat() the mailbox to check for new mail. Signed-off-by: Karel Zak --- diff --git a/meson.build b/meson.build index 6bb4d1d92..38bee5133 100644 --- a/meson.build +++ b/meson.build @@ -100,6 +100,10 @@ login_lastlogin = get_option('login-lastlogin') conf.set('USE_LOGIN_LASTLOG', login_lastlogin ? 1 : false) summary('login-lastlogin', login_lastlogin ? 'enabled' : 'disabled', section : 'components') +login_stat_mail = get_option('login-stat-mail') +conf.set('LOGIN_STAT_MAIL', login_stat_mail ? 1 : false) +summary('login-stat-mail', login_stat_mail ? 'enabled' : 'disabled', section : 'components') + have = cc.has_type('struct fanotify_event_info_header', prefix : '#include ') conf.set('HAVE_STRUCT_FANOTIFY_EVENT_INFO_HEADER', have ? 1 : false) diff --git a/meson_options.txt b/meson_options.txt index 67613e691..cd866661a 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -325,6 +325,9 @@ option('pamlibdir', type : 'string', option('login-lastlogin', type : 'boolean', value : false, description : 'program login writes lastlog entries') +option('login-stat-mail', type : 'boolean', + value : false, + description : 'let login stat() the mailbox') option('tty-setgid', type : 'boolean', value : true,