--- projects/libstatgrab/configure.in 2003/03/10 14:25:22 1.7 +++ projects/libstatgrab/configure.in 2003/04/06 11:59:17 1.16 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.7 2003/03/10 14:25:22 tdb Exp $ +# $Id: configure.in,v 1.16 2003/04/06 11:59:17 pajs Exp $ # # Change these to change the package name and version @@ -10,7 +10,7 @@ AC_INIT(libstatgrab, 0.4, dev@i-scream.org.uk) AM_INIT_AUTOMAKE(libstatgrab, 0.4) # Revision number (automatically updated) -AC_REVISION($Revision: 1.7 $) +AC_REVISION($Revision: 1.16 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -37,6 +37,12 @@ AC_FUNC_REALLOC # We define the name of the OS so the code can act accordingly # We also need to add the right LDFLAGS case $host_os in +solaris2.[[6-7]]) + AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) + AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) + AC_DEFINE(SOL7, , [Building on Solaris 2.7]) + LDFLAGS="$LDFLAGS -lkstat" + ;; solaris2.*) AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) @@ -44,7 +50,7 @@ solaris2.*) ;; freebsd4.*) AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) - LDFLAGS="$LDFLAGS -lkvm" + LDFLAGS="$LDFLAGS -lkvm -ldevstat" ;; linux-gnu) AC_DEFINE(LINUX, , [Building on GNU/Linux])