diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0c1d2b9..5a42270 100644 --- a/configure.ac +++ b/configure.ac @@ -37,3 +37,3 @@ AC_PROG_LEX # Checks for header files. -AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h]) +AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h utmp.h utmpx.h]) @@ -50,2 +50,14 @@ IU_CHECK_MEMBERS([struct msghdr.msg_control, struct msghdr.msg_accrights], , , +IU_CHECK_MEMBERS([struct utmp.ut_tv, struct utmp.ut_name, + struct utmp.ut_user, struct utmp.ut_time, + struct utmp.ut_host], , , + [#include <utmp.h>]) + +if test "$ac_cv_header_utmpx_h" = yes; then + IU_CHECK_MEMBERS([struct utmpx.ut_tv, struct utmpx.ut_name, + struct utmpx.ut_user, struct utmpx.ut_time, + struct utmpx.ut_host], , , + [#include <utmpx.h>]) +fi + # Checks for library functions. |