--- projects/libstatgrab/configure.in 2008/05/24 21:05:17 1.98 +++ projects/libstatgrab/configure.in 2010/02/20 17:55:03 1.99 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.98 2008/05/24 21:05:17 ats Exp $ +# $Id: configure.in,v 1.99 2010/02/20 17:55:03 tdb Exp $ # # Change these to change the package name and version @@ -10,7 +10,7 @@ AC_INIT(libstatgrab, 0.17, bugs@i-scream.org) AM_INIT_AUTOMAKE(libstatgrab, 0.17) # Revision number (automatically updated) -AC_REVISION($Revision: 1.98 $) +AC_REVISION($Revision: 1.99 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -50,6 +50,12 @@ AC_CHECK_MEMBER(struct statvfs.f_fstypename, [AC_DEFINE(HAVE_STATVFS, , [NetBSD 2.0 statvfs])], [], [#include ]) + +# FreeBSD 9 (and others) uses utmpx rather than utmp +AC_CHECK_MEMBER(struct utmpx.ut_type, + [AC_DEFINE(HAVE_UTMPX, , [utmpx])], + [], + [#include ]) # Check for sys/loadavg.h AC_CHECK_HEADERS([sys/loadavg.h])