--- projects/libstatgrab/configure.in 2003/03/03 19:33:15 1.6 +++ projects/libstatgrab/configure.in 2003/08/26 12:14:43 1.25 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libstatgrab -# $Id: configure.in,v 1.6 2003/03/03 19:33:15 tdb Exp $ +# $Id: configure.in,v 1.25 2003/08/26 12:14:43 tdb Exp $ # # Change these to change the package name and version -AC_INIT(libstatgrab, 0.3, dev@i-scream.org.uk) -AM_INIT_AUTOMAKE(libstatgrab, 0.3) +AC_INIT(libstatgrab, 0.5.1, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.5.1) # Revision number (automatically updated) -AC_REVISION($Revision: 1.6 $) +AC_REVISION($Revision: 1.25 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -32,11 +32,18 @@ AC_C_CONST # Checks for library functions AC_FUNC_MALLOC AC_FUNC_REALLOC +AC_CHECK_FUNCS(atoll) # 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 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 +51,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]) @@ -55,6 +62,6 @@ linux-gnu) esac # And finish by changing these files -AC_CONFIG_FILES([Makefile src/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile examples/Makefile]) AC_OUTPUT