--- projects/libstatgrab/configure.in 2004/04/04 11:28:45 1.64 +++ projects/libstatgrab/configure.in 2004/06/20 17:00:25 1.69 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.64 2004/04/04 11:28:45 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 -AC_INIT(libstatgrab, 0.9.1, bugs@i-scream.org) -AM_INIT_AUTOMAKE(libstatgrab, 0.9.1) +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.64 $) +AC_REVISION($Revision: 1.69 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -36,10 +36,16 @@ 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 ]) + # Check for sys/loadavg.h AC_CHECK_HEADERS([sys/loadavg.h]) @@ -77,17 +83,20 @@ freebsd5.*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(FREEBSD, , [Building on FreeBSD]) AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x]) - LINKFLAGS="-lkvm -ldevstat" + LINKFLAGS="-ldevstat" ;; -netbsdelf*) +netbsdelf1*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(NETBSD, , [Building on NetBSD]) - LINKFLAGS="-lkvm" ;; +netbsdelf2*) + AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) + AC_DEFINE(NETBSD, , [Building on NetBSD]) + AC_DEFINE(NETBSD2, , [Building on NetBSD 2.x]) + ;; openbsd*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(OPENBSD, , [Building on OpenBSD]) - LINKFLAGS="-lkvm" ;; dragonfly*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) @@ -187,6 +196,17 @@ AC_ARG_ENABLE(setuid-binaries, AM_CONDITIONAL(SETUIDBINS, false) fi ] +) + +# Check if the user would prefer not to include compatibility code +AM_CONDITIONAL(DEPRECATED, true) +AC_ARG_ENABLE(deprecated, + [ --disable-deprecated disable inclusion of pre-0.10 compatibility code], + [ + if test "x$enableval" = "xno" ; then + AM_CONDITIONAL(DEPRECATED, false) + fi + ] ) # The LIBS and CPPFLAGS that saidar needs