--- projects/libstatgrab/configure.in 2004/11/01 18:33:19 1.78 +++ projects/libstatgrab/configure.in 2006/04/24 13:31:49 1.90 @@ -2,15 +2,16 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.78 2004/11/01 18:33:19 tdb Exp $ +# $Id: configure.in,v 1.90 2006/04/24 13:31:49 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libstatgrab, 0.11, bugs@i-scream.org) -AM_INIT_AUTOMAKE(libstatgrab, 0.11) +AC_INIT(libstatgrab, 0.14, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.14) +AM_MAINTAINER_MODE # Revision number (automatically updated) -AC_REVISION($Revision: 1.78 $) +AC_REVISION($Revision: 1.90 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -31,7 +32,6 @@ AC_C_CONST # Checks for library functions AC_FUNC_MALLOC -AC_FUNC_REALLOC AC_CHECK_FUNCS(atoll seteuid setegid setresuid setresgid) # Disk IO read and write statistics are only present on recent NetBSD. @@ -62,6 +62,9 @@ AC_CHECK_HEADERS([libdevinfo.h]) AM_CONDITIONAL(SETGIDBINS, false) AM_CONDITIONAL(SETUIDBINS, false) +# Default MINGW setting +AM_CONDITIONAL(MINGW, false) + # Set things up for different OS's # We define the name of the OS so the code can act accordingly # We also need to add the right LDFLAGS @@ -92,17 +95,17 @@ freebsd4.*) BIN_PERM="2755" LINKFLAGS="-lkvm -ldevstat" ;; -freebsd[[5-6]].*) +freebsd[[5-7]].*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(FREEBSD, , [Building on FreeBSD]) - AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x or 6.x]) + AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 7.x]) LINKFLAGS="-ldevstat" ;; netbsdelf1*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(NETBSD, , [Building on NetBSD]) ;; -netbsdelf2*) +netbsdelf[[2-3]]*) AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) AC_DEFINE(NETBSD, , [Building on NetBSD]) AC_DEFINE(NETBSD2, , [Building on NetBSD 2.x]) @@ -128,6 +131,12 @@ linux-gnu) cygwin) AC_DEFINE(CYGWIN, , [Building on Cygwin]) ;; +mingw32) + AC_DEFINE(MINGW, , [Building on MinGW]) + AC_DEFINE(WINVER, 0x0500, [Building for Windows 2000]) + AM_CONDITIONAL(MINGW, true) + LINKFLAGS="-lpdh -lIphlpapi -lpsapi -lnetapi32" + ;; *) AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) ;; @@ -240,6 +249,6 @@ AC_SUBST(BIN_GROUP) AC_SUBST(BIN_PERM) # And finish by changing these files -AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile docs/libstatgrab/Makefile docs/statgrab/Makefile docs/saidar/Makefile examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile]) AC_OUTPUT