--- projects/libstatgrab/configure.in 2004/02/16 14:55:32 1.61 +++ 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.61 2004/02/16 14:55:32 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.61 $) +AC_REVISION($Revision: 1.67 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -79,10 +79,15 @@ 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]) @@ -185,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