]> granicus.if.org Git - shadow/commitdiff
* NEWS, configure.in: Added configure option --enable-utmpx,
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 27 Apr 2009 20:03:48 +0000 (20:03 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 27 Apr 2009 20:03:48 +0000 (20:03 +0000)
disabled by default. This defines USE_UTMPX, which should be used
instead of HAVE_UTMPX_H.

ChangeLog
NEWS
configure.in

index 8ec009a0416d0e368ae2dc093a2a046ae359420d..f87549197e1c7b500d09ad0988de43e0f4777144 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-27  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * NEWS, configure.in: Added configure option --enable-utmpx,
+       disabled by default. This defines USE_UTMPX, which should be used
+       instead of HAVE_UTMPX_H.
+
 2009-04-27  Nicolas François  <nicolas.francois@centraliens.net>
 
        * man/po/fr.po: Fix typo.
diff --git a/NEWS b/NEWS
index 54a7ae2cf48602e22182159c4737b259e76441a9..fc58aa27b462470a51ac89c3bf21d2d27666c595 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@ shadow-4.1.3.1 -> shadow-4.1.3.2                                        UNRELEASED
 
 - packaging
   * Enable --enable-account-tools-setuid by default for PAM builds.
+  * Added configure option --enable-utmpx, disabled by default to mimic
+    the previous behavior on Linux (where utmp and utmpx are identical).
 - login
   * Do not trust the current utmp entry's ut_line to set PAM_TTY. This could
     lead to DOS attacks.
index 46d37f90e8dfc5800c5448890bda2e7ea69e9c8c..dca1cf0d34191627fe9023db1502db50c5b08ea8 100644 (file)
@@ -212,7 +212,7 @@ AC_ARG_ENABLE(man,
        [AC_HELP_STRING([--enable-man],
                [regenerate roff man pages from Docbook @<:@default=no@:>@])],
        [enable_man="${enableval}"],
-       [enable_man=no]
+       [enable_man="no"]
 )
 
 AC_ARG_ENABLE(account-tools-setuid,
@@ -227,6 +227,17 @@ AC_ARG_ENABLE(account-tools-setuid,
        [enable_acct_tools_setuid="maybe"]
 )
 
+AC_ARG_ENABLE(utmpx,
+       [AC_HELP_STRING([--enable-utmpx],
+                       [enable loggin in utmpx / wtmpx @<:@default=no@:>@])],
+       [case "${enableval}" in
+        yes) enable_utmpx="yes" ;;
+         no) enable_utmpx="no" ;;
+          *) AC_MSG_ERROR(bad value ${enableval} for --enable-utmpx) ;;
+        esac],
+       [enable_utmpx="no"]
+)
+
 AC_ARG_WITH(audit, 
        [AC_HELP_STRING([--with-audit], [use auditing support @<:@default=yes if found@:>@])],
        [with_audit=$withval], [with_audit=maybe])
@@ -470,6 +481,15 @@ if test "$with_skey" = "yes"; then
        ],[AC_DEFINE(SKEY_BSD_STYLE, 1, [Define to support newer BSD S/Key API])])
 fi
 
+if test "$enable_utmpx" = "yes"; then
+       if test "$ac_cv_header_utmpx_h" != "yes"; then
+               AC_MSG_ERROR([The utmpx.h header file is required for utmpx support.])
+       fi
+       AC_DEFINE(USE_UTMPX,
+                 1,
+                 [Define if utmpx should be used])
+fi
+
 AM_GNU_GETTEXT_VERSION(0.16)
 AM_GNU_GETTEXT([external], [need-ngettext])
 AM_CONDITIONAL(USE_NLS, test "x$USE_NLS" = "xyes")