Detect presense of utmp.h and {set,get,end}utent calls.
Showing
1 changed file
with
14 additions
and
0 deletions
m4/utmp.m4
0 → 100644
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])]) |
-
Please register or sign in to post a comment