Commit 15d54023 authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

Check for utmpx symmetrically to utmp. Check for more members on

struct utmp. Check for members of struct utmpx.

Rev: configure.in:1.135
parent f85b2dac
......@@ -268,6 +268,7 @@ AC_CHECK_HEADERS(syslog.h)
AC_CHECK_HEADERS(argp.h)
AC_CHECK_HEADERS(utmp.h, [have_utmp_h=yes], [have_utmp_h=no])
AC_CHECK_HEADERS(utmpx.h, [have_utmpx_h=yes], [have_utmpx_h=no])
if test x$have_utmp_h = xyes; then
AC_CHECK_MEMBERS([struct utmp.ut_host,
......@@ -275,6 +276,9 @@ if test x$have_utmp_h = xyes; then
struct utmp.ut_user,
struct utmp.ut_time,
struct utmp.ut_tv,
struct utmp.ut_id,
struct utmp.ut_syslen,
struct utmp.ut_session,
struct utmp.ut_pid,
struct utmp.ut_exit,
struct utmp.ut_addr,
......@@ -282,14 +286,29 @@ if test x$have_utmp_h = xyes; then
[# if HAVE_UTMP_H
# include <utmp.h>
# endif
])
fi
# if HAVE_UTMPX_H
if test x$have_utmpx_h = xyes; then
AC_CHECK_MEMBERS([struct utmpx.ut_host,
struct utmpx.ut_name,
struct utmpx.ut_user,
struct utmpx.ut_time,
struct utmpx.ut_id,
struct utmpx.ut_tv,
struct utmpx.ut_syslen,
struct utmpx.ut_session,
struct utmpx.ut_pid,
struct utmpx.ut_exit,
struct utmpx.ut_addr,
struct utmpx.ut_addr_v6],,,
[# if HAVE_UTMPX_H
# include <utmpx.h>
# endif
])
fi
AC_CHECK_HEADERS(utmpx.h)
if test x$enable_kerberos = xyes; then
AC_CHECK_HEADERS(krb5.h,, [enable_kerberos=no])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment