diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.in b/configure.in index f1027ef42..e0395528d 100644 --- a/configure.in +++ b/configure.in | |||
@@ -56,7 +56,7 @@ AC_CHECK_LIB(dl, dlopen, , ) | |||
56 | AC_CHECK_LIB(pam, pam_authenticate, , ) | 56 | AC_CHECK_LIB(pam, pam_authenticate, , ) |
57 | 57 | ||
58 | dnl Checks for header files. | 58 | dnl Checks for header files. |
59 | AC_CHECK_HEADERS(endian.h lastlog.h login.h maillock.h netgroup.h paths.h pty.h shadow.h util.h utmp.h sys/select.h sys/stropts.h sys/time.h) | 59 | AC_CHECK_HEADERS(endian.h lastlog.h login.h maillock.h netgroup.h paths.h pty.h shadow.h util.h utmp.h utmpx.h sys/select.h sys/stropts.h sys/time.h) |
60 | 60 | ||
61 | dnl Checks for library functions. | 61 | dnl Checks for library functions. |
62 | AC_CHECK_FUNCS(arc4random mkdtemp openpty _getpty setenv setlogin setproctitle snprintf strlcat strlcpy vsnprintf) | 62 | AC_CHECK_FUNCS(arc4random mkdtemp openpty _getpty setenv setlogin setproctitle snprintf strlcat strlcpy vsnprintf) |
@@ -198,6 +198,13 @@ AC_EGREP_HEADER(ut_host, utmp.h, | |||
198 | [AC_MSG_RESULT(no)] | 198 | [AC_MSG_RESULT(no)] |
199 | ) | 199 | ) |
200 | 200 | ||
201 | dnl Check for ut_host field in utmpx | ||
202 | AC_MSG_CHECKING([whether utmpx.h has ut_host field]) | ||
203 | AC_EGREP_HEADER(ut_host, utmpx.h, | ||
204 | [AC_DEFINE(HAVE_HOST_IN_UTMPX) AC_MSG_RESULT(yes); ], | ||
205 | [AC_MSG_RESULT(no)] | ||
206 | ) | ||
207 | |||
201 | dnl Look for lastlog location | 208 | dnl Look for lastlog location |
202 | AC_MSG_CHECKING([location of lastlog file]) | 209 | AC_MSG_CHECKING([location of lastlog file]) |
203 | for lastlog in /var/log/lastlog /var/adm/lastlog /etc/security/lastlog ; do | 210 | for lastlog in /var/log/lastlog /var/adm/lastlog /etc/security/lastlog ; do |