diff options
author | Damien Miller <djm@mindrot.org> | 2009-02-12 13:12:21 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2009-02-12 13:12:21 +1100 |
commit | 20e231f9f8445ad072b319c9c47f3d9897a1f284 (patch) | |
tree | 314a7d0585cb194910d066ca3a750b056ef911e8 /configure.ac | |
parent | 2de762456e8cdb92b85c1e573cbf2b4b70eee847 (diff) |
- (djm) [configure.ac loginrec.c] bz#1421: fix lastlog support for OSX.
OSX provides a getlastlogxbyname function that automates the reading of
a lastlog file. Also, the pututxline function will update lastlog so
there is no need for loginrec.c to do it explicitly. Collapse some
overly verbose code while I'm in there.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 94589ddc7..242dea0dc 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.413 2009/01/08 04:50:09 tim Exp $ | 1 | # $Id: configure.ac,v 1.414 2009/02/12 02:12:22 djm Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.413 $) | 18 | AC_REVISION($Revision: 1.414 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_CONFIG_HEADER(config.h) |
@@ -477,6 +477,8 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | |||
477 | AC_CHECK_DECL(AU_IPv4, [], | 477 | AC_CHECK_DECL(AU_IPv4, [], |
478 | AC_DEFINE(AU_IPv4, 0, [System only supports IPv4 audit records]) | 478 | AC_DEFINE(AU_IPv4, 0, [System only supports IPv4 audit records]) |
479 | [#include <bsm/audit.h>] | 479 | [#include <bsm/audit.h>] |
480 | AC_DEFINE(LASTLOG_WRITE_PUTUTXLINE, 1, | ||
481 | [Define if pututxline updates lastlog too]) | ||
480 | ) | 482 | ) |
481 | ;; | 483 | ;; |
482 | *-*-dragonfly*) | 484 | *-*-dragonfly*) |
@@ -1508,6 +1510,8 @@ AC_CHECK_FUNCS(utmpname) | |||
1508 | dnl Checks for utmpx functions | 1510 | dnl Checks for utmpx functions |
1509 | AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) | 1511 | AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) |
1510 | AC_CHECK_FUNCS(setutxent utmpxname) | 1512 | AC_CHECK_FUNCS(setutxent utmpxname) |
1513 | dnl Checks for lastlog functions | ||
1514 | AC_CHECK_FUNCS(getlastlogxbyname) | ||
1511 | 1515 | ||
1512 | AC_CHECK_FUNC(daemon, | 1516 | AC_CHECK_FUNC(daemon, |
1513 | [AC_DEFINE(HAVE_DAEMON, 1, [Define if your libraries define daemon()])], | 1517 | [AC_DEFINE(HAVE_DAEMON, 1, [Define if your libraries define daemon()])], |