Look for utempter_add_record to be sure we have the new utempter API, the old

utempter API was also using utempter.h.
pull/355/merge
Nicholas Marriott 2016-03-26 20:17:17 +00:00
parent b429a00cce
commit 5658b628b9
1 changed files with 11 additions and 4 deletions

View File

@ -167,10 +167,17 @@ if test "x$found_curses" = xno; then
fi
# Look for utempter.
AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
if test "x$have_utempter" = xyes; then
AC_DEFINE(HAVE_UTEMPTER)
LIBS="$LIBS -lutempter"
AC_CHECK_HEADER(utempter.h, found_utempter=yes, found_utempter=no)
if test "x$found_utempter" = xyes; then
AC_SEARCH_LIBS(
utempter_add_record,
utempter,
found_utempter=yes,
found_utempter=no
)
if test "x$found_utempter" = xyes; then
AC_DEFINE(HAVE_UTEMPTER)
fi
fi
# Check for b64_ntop.