--- projects/libstatgrab/configure.in 2004/02/15 21:18:36 1.60 +++ projects/libstatgrab/configure.in 2004/04/06 16:37:33 1.67 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.60 2004/02/15 21:18:36 tdb Exp $ +# $Id: configure.in,v 1.67 2004/04/06 16:37:33 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libstatgrab, 0.9, bugs@i-scream.org) -AM_INIT_AUTOMAKE(libstatgrab, 0.9) +AC_INIT(libstatgrab, 0.10, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.10) # Revision number (automatically updated) -AC_REVISION($Revision: 1.60 $) +AC_REVISION($Revision: 1.67 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -79,14 +79,25 @@ freebsd5.*) AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x]) LINKFLAGS="-ldevstat" ;; -netbsdelf*) +netbsdelf1*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(NETBSD, , [Building on NetBSD]) ;; +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]) ;; +dragonfly*) + AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) + AC_DEFINE(DFBSD, , [Building on DragonFlyBSD]) + AM_CONDITIONAL(SETGIDBINS, true) + LINKFLAGS="-lkvm -ldevstat" + ;; linux-gnu) AC_DEFINE(LINUX, , [Building on GNU/Linux]) AM_CONDITIONAL(SETUIDBINS, true) @@ -179,6 +190,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