diff options
author | Dmitry V. Levin <ldv@strace.io> | 2024-08-21 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-08-21 08:00:00 +0000 |
commit | 4d1d4f699551f395be065e60513eaf85f01b84e6 (patch) | |
tree | 8b0b0139fefd441815f5a5bbdebb29ef2b736873 /configure.ac | |
parent | 1ef2c9a2266f71639cf3c81bd5ee2031051a7cb4 (diff) | |
download | pam-4d1d4f699551f395be065e60513eaf85f01b84e6.tar.gz pam-4d1d4f699551f395be065e60513eaf85f01b84e6.tar.bz2 pam-4d1d4f699551f395be065e60513eaf85f01b84e6.zip |
Include pam_i18n.h where i18n definitions are required
Do not include <libintl.h> and other i18n stuff via config.h which is
included into every compilation unit, include "pam_i18n.h" explicitly
where necessary.
* configure.ac (AH_BOTTOM): Remove.
* libpam/pam_get_authtok.c: Include "pam_i18n.h".
* libpam/pam_item.c: Likewise.
* libpam/pam_strerror.c: Likewise.
* libpam_misc/misc_conv.c: Likewise.
* modules/pam_exec/pam_exec.c: Likewise.
* modules/pam_faillock/main.c: Likewise.
* modules/pam_faillock/pam_faillock.c: Likewise.
* modules/pam_lastlog/pam_lastlog.c: Likewise.
* modules/pam_limits/pam_limits.c: Likewise.
* modules/pam_mail/pam_mail.c: Likewise.
* modules/pam_mkhomedir/pam_mkhomedir.c: Likewise.
* modules/pam_pwhistory/pam_pwhistory.c: Likewise.
* modules/pam_selinux/pam_selinux.c: Likewise.
* modules/pam_selinux/pam_selinux_check.c: Likewise.
* modules/pam_timestamp/pam_timestamp.c: Likewise.
* modules/pam_unix/pam_unix_acct.c: Likewise.
* modules/pam_unix/pam_unix_passwd.c: Likewise.
* modules/pam_userdb/pam_userdb.c: Likewise.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 0c5fd4cd..0bbf50ed 100644 --- a/configure.ac +++ b/configure.ac @@ -706,15 +706,6 @@ AM_GNU_GETTEXT([external]) AC_CHECK_FUNCS(bindtextdomain) AC_CHECK_FUNCS(dngettext) -AH_BOTTOM([#ifdef ENABLE_NLS -#include <libintl.h> -#define _(msgid) dgettext(PACKAGE, msgid) -#define N_(msgid) msgid -#else -#define _(msgid) (msgid) -#define N_(msgid) msgid -#endif /* ENABLE_NLS */]) - dnl dnl Check for the availability of the kernel key management facility dnl - The pam_keyinit module only requires the syscalls, not the error codes |