--- projects/libstatgrab/configure.in 2004/02/14 16:58:18 1.57 +++ 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.57 2004/02/14 16:58:18 ats 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.57 $) +AC_REVISION($Revision: 1.67 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -65,7 +65,6 @@ solaris2.[[6-7]]) solaris2.*) AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) - AM_CONDITIONAL(SETUIDBINS, true) LINKFLAGS="-lkstat -ldevinfo -lsocket -lnsl" ;; freebsd4.*) @@ -78,19 +77,30 @@ freebsd5.*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(FREEBSD, , [Building on FreeBSD]) AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x]) - AM_CONDITIONAL(SETGIDBINS, true) - LINKFLAGS="-lkvm -ldevstat" + 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) ;; cygwin) AC_DEFINE(CYGWIN, , [Building on Cygwin]) @@ -180,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