--- projects/libstatgrab/configure.in 2004/05/19 15:12:44 1.68 +++ projects/libstatgrab/configure.in 2004/06/20 17:00:25 1.69 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.68 2004/05/19 15:12:44 tdb Exp $ +# $Id: configure.in,v 1.69 2004/06/20 17:00:25 tdb Exp $ # # Change these to change the package name and version @@ -10,7 +10,7 @@ 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.68 $) +AC_REVISION($Revision: 1.69 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -36,7 +36,13 @@ 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 ])