From 4273c1b80e2eb321d44154fe1e82e0f11aabcbd5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 24 Feb 2014 23:07:22 +0000 Subject: Use utempter to update utmp if it's around for configure, from madmaverick9 at roxxmail dot eu. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fec79043..05286d3d 100644 --- a/configure.ac +++ b/configure.ac @@ -144,6 +144,13 @@ if test "x$found_curses" = xno; then AC_MSG_ERROR("curses not found") 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" +fi + # Check for b64_ntop. AC_MSG_CHECKING(for b64_ntop) AC_TRY_LINK( -- cgit