summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2009-02-12 13:12:21 +1100
committerDamien Miller <djm@mindrot.org>2009-02-12 13:12:21 +1100
commit20e231f9f8445ad072b319c9c47f3d9897a1f284 (patch)
tree314a7d0585cb194910d066ca3a750b056ef911e8 /configure.ac
parent2de762456e8cdb92b85c1e573cbf2b4b70eee847 (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.ac8
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
17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
18AC_REVISION($Revision: 1.413 $) 18AC_REVISION($Revision: 1.414 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20 20
21AC_CONFIG_HEADER(config.h) 21AC_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)
1508dnl Checks for utmpx functions 1510dnl Checks for utmpx functions
1509AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline ) 1511AC_CHECK_FUNCS(endutxent getutxent getutxid getutxline pututxline )
1510AC_CHECK_FUNCS(setutxent utmpxname) 1512AC_CHECK_FUNCS(setutxent utmpxname)
1513dnl Checks for lastlog functions
1514AC_CHECK_FUNCS(getlastlogxbyname)
1511 1515
1512AC_CHECK_FUNC(daemon, 1516AC_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()])],