Commit 833dccc0 833dccc026d3b19e5c0dedf1c7878a7db8b11a84 by Sergey Poznyakoff

Detect presense of utmp.h and {set,get,end}utent calls.

1 parent cfd3fd5b
1 dnl MU_CHECK_UTMP -- Check for the presence of utmp.h, setutent, getutent
2 dnl and endutent calls.
3 AC_DEFUN([MU_CHECK_UTMP],
4 [
5 AC_CHECK_HEADERS(utmp.h)
6 # The three functions setutent,getutent and endutent depend on each other,
7 # so it seems reasonable to provide replacements for all three if getutent
8 # is not present.
9 AC_CHECK_FUNC(getutent,
10 AC_DEFINE(HAVE_GETUTENT_CALLS,,
11 [Define if your system has the three ???utent functions]),
12 [if test "$ac_cv_header_utmp_h" = "yes"; then
13 LIBOBJS="$LIBOBJS utmp.o"
14 fi])])