--- projects/libstatgrab/configure.in 2008/02/16 16:11:16 1.96 +++ projects/libstatgrab/configure.in 2010/02/20 18:55:24 1.101 @@ -2,16 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.96 2008/02/16 16:11:16 tdb Exp $ +# $Id: configure.in,v 1.101 2010/02/20 18:55:24 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libstatgrab, 0.16, bugs@i-scream.org) -AM_INIT_AUTOMAKE(libstatgrab, 0.16) -AM_MAINTAINER_MODE +AC_INIT(libstatgrab, 0.18, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.18) # Revision number (automatically updated) -AC_REVISION($Revision: 1.96 $) +AC_REVISION($Revision: 1.101 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -52,6 +51,12 @@ AC_CHECK_MEMBER(struct statvfs.f_fstypename, [], [#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]) @@ -97,10 +102,10 @@ freebsd4.*) BIN_PERM="2755" LINKFLAGS="-lkvm -ldevstat" ;; -freebsd[[5-8]].*) +freebsd[[5-9]].*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(FREEBSD, , [Building on FreeBSD]) - AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 8.x]) + AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 9.x]) LINKFLAGS="-ldevstat" ;; netbsdelf1*)