--- projects/libstatgrab/configure.in 2004/04/06 16:37:33 1.67 +++ projects/libstatgrab/configure.in 2004/06/20 20:32:24 1.70 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.67 2004/04/06 16:37:33 tdb Exp $ +# $Id: configure.in,v 1.70 2004/06/20 20:32:24 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libstatgrab, 0.10, bugs@i-scream.org) -AM_INIT_AUTOMAKE(libstatgrab, 0.10) +AC_INIT(libstatgrab, 0.10.1, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.10.1) # Revision number (automatically updated) -AC_REVISION($Revision: 1.67 $) +AC_REVISION($Revision: 1.70 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -36,9 +36,21 @@ AC_CHECK_FUNCS(atoll) # Disk IO read and write statistics are only present on recent NetBSD. AC_CHECK_MEMBER(struct disk_sysctl.dk_rbytes, - [AC_DEFINE(HAVE_DK_RBYTES, , [New-style NetBSD stats])], + [AC_DEFINE(HAVE_DK_RBYTES, , [New-style NetBSD disk stats])], [], [#include ]) + +# Disk IO read and write statistics are only present on recent OpenBSD. +AC_CHECK_MEMBER(struct diskstats.ds_rbytes, + [AC_DEFINE(HAVE_DS_RBYTES, , [New-style OpenBSD disk stats])], + [], + [#include ]) + +# NetBSD 2.0 uses statvfs rather than statfs +AC_CHECK_MEMBER(struct statvfs.f_fstypename, + [AC_DEFINE(HAVE_STATVFS, , [NetBSD 2.0 statvfs])], + [], + [#include ]) # Check for sys/loadavg.h AC_CHECK_HEADERS([sys/loadavg.h])