From 744efcce69ed95710ba0e21b76154da9e8e22b81 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 30 Jan 2000 16:47:31 +0000 Subject: (utmp_includes): Define. Check for ut_user and ut_name members in both struct utmpx and struct utmp. --- m4/prereq.m4 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/m4/prereq.m4 b/m4/prereq.m4 index f478a14d9..2f97d3938 100644 --- a/m4/prereq.m4 +++ b/m4/prereq.m4 @@ -51,6 +51,19 @@ AC_DEFUN(jm_PREREQ_READUTMP, AC_CHECK_HEADERS(string.h utmpx.h sys/param.h) AC_CHECK_FUNCS(utmpname) AM_C_PROTOTYPES + + utmp_includes="\ +$ac_includes_default +#ifdef HAVE_UTMPX_H +# include +#else +# include +#endif +" + AC_CHECK_MEMBERS((struct utmpx.ut_user),,,[$utmp_includes]) + AC_CHECK_MEMBERS((struct utmp.ut_user),,,[$utmp_includes]) + AC_CHECK_MEMBERS((struct utmpx.ut_name),,,[$utmp_includes]) + AC_CHECK_MEMBERS((struct utmp.ut_name),,,[$utmp_includes]) ]) AC_DEFUN(jm_PREREQ_REGEX, -- cgit v1.2.3-70-g09d2