aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-02-24 23:07:22 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-02-24 23:07:22 +0000
commit4273c1b80e2eb321d44154fe1e82e0f11aabcbd5 (patch)
treedf9829c6469655834fbf39e3ba7b03d8a86fc358 /configure.ac
parent488583dc8def345b32dafe5b4f9bdb0a280062d3 (diff)
downloadrtmux-4273c1b80e2eb321d44154fe1e82e0f11aabcbd5.tar.gz
rtmux-4273c1b80e2eb321d44154fe1e82e0f11aabcbd5.tar.bz2
rtmux-4273c1b80e2eb321d44154fe1e82e0f11aabcbd5.zip
Use utempter to update utmp if it's around for configure, from madmaverick9 at
roxxmail dot eu.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
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(