summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-10-05 04:06:35 +0000
committerKevin E Martin <kem@kem.org>2005-10-05 04:06:35 +0000
commite33c62dfa7641e8e37a2ef64d98aa5171f2ef705 (patch)
tree8e0369bcc494569b0c5bb6f88a8a6ed96fe20cc2 /configure.ac
parentaf48c05e4b8639935e8e0738dc0269708c2e929c (diff)
Get sessreg.man from $(srcdir) to fix make distcheck
Add check for utmpx.ut_syslen structure member
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c8468bf..1ed6d3c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,11 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_CHECK_HEADERS([lastlog.h utmpx.h sys/param.h])
+AC_CHECK_MEMBER([struct utmpx.ut_syslen],
+ HAVE_SYSLEN=1,
+ HAVE_SYSLEN=0)
+AC_DEFINE_UNQUOTED(HAVE_UTMPX_UT_SYSLEN,$HAVE_SYSLEN,
+ [utmpx structure includes ut_syslen field])
AC_SYS_LARGEFILE