From 37161c5148396448921841ae1026b281c7949652 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Wed, 24 Sep 2014 17:25:00 +0200 Subject: make utmp/wtmp support configurable This adds --disable-utmp option to configure. If it is used, all utmp-related functionality, including querying runlevel support, is removed. --- src/core/build.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core') diff --git a/src/core/build.h b/src/core/build.h index a7f12a33e4..d5e55506cf 100644 --- a/src/core/build.h +++ b/src/core/build.h @@ -63,6 +63,12 @@ #define _SYSVINIT_FEATURE_ "-SYSVINIT" #endif +#ifdef HAVE_UTMP +#define _UTMP_FEATURE_ "+UTMP" +#else +#define _UTMP_FEATURE_ "-UTMP" +#endif + #ifdef HAVE_LIBCRYPTSETUP #define _LIBCRYPTSETUP_FEATURE_ "+LIBCRYPTSETUP" #else @@ -137,6 +143,7 @@ _APPARMOR_FEATURE_ " " \ _SMACK_FEATURE_ " " \ _SYSVINIT_FEATURE_ " " \ + _UTMP_FEATURE_ " " \ _LIBCRYPTSETUP_FEATURE_ " " \ _GCRYPT_FEATURE_ " " \ _GNUTLS_FEATURE_ " " \ -- cgit v1.2.3-54-g00ecf