]> git.ipfire.org Git - thirdparty/util-linux.git/commit
build-sys: check for POSIX utmpx usage
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 1 Dec 2016 08:52:12 +0000 (09:52 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 7 Dec 2016 11:35:24 +0000 (12:35 +0100)
commit227ebea75ca12214b59a58b7477c5cb3e34c3f13
tree4683ac38e47bfc1af0bdc75fc7ac4c0e1d078826
parentb4b919fe5e1fc1d346fa6315748d0e0709d02096
build-sys: check for POSIX utmpx usage

We simply check for utmpxname and updwtmpx functions to disable
all programs which are not POSIX utmpx compatible, even though
last(1) and utmpdump(1) does not use them, see below.

utmpx.h is used in:
  login agetty write lslogins last runuser su utmpdump wall

Non-Posix utmpx usage:
   utmpxname        -> login agetty write lslogins
   updwtmpx         -> login agetty                     runuser su
   _PATH_.TMP       -> login agetty write lslogins last runuser su
   utmpx.ut_addr_v6 -> login                       last            utmpdump

POSIX utmpx usage:
   wall

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
configure.ac