--- projects/cms/source/ihost/configure.in 2003/03/03 12:32:35 1.9 +++ projects/cms/source/ihost/configure.in 2003/03/03 19:33:16 1.11 @@ -2,15 +2,15 @@ # Process this file with autoconf to produce a configure script. # # configure.in for i-scream ihost -# $Id: configure.in,v 1.9 2003/03/03 12:32:35 tdb Exp $ +# $Id: configure.in,v 1.11 2003/03/03 19:33:16 tdb Exp $ # # Change these to change the package name and version -AC_INIT(ihost, 1.5, dev@i-scream.org.uk) -AM_INIT_AUTOMAKE(ihost, 1.5) +AC_INIT(ihost, 1.6, dev@i-scream.org.uk) +AM_INIT_AUTOMAKE(ihost, 1.6) # Revision number (automatically updated) -AC_REVISION($Revision: 1.9 $) +AC_REVISION($Revision: 1.11 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -47,7 +47,7 @@ AC_C_CONST AC_FUNC_MALLOC AC_FUNC_REALLOC AC_FUNC_FORK -AC_CHECK_LIB(statgrab, get_general_stats,,[AC_MSG_ERROR([need libstatgrab])]) +AC_CHECK_LIB(statgrab, get_general_stats,[LIBS="-Wl,-Bstatic -lstatgrab -Wl,-Bdynamic $LIBS"],[AC_MSG_ERROR([need libstatgrab])]) # Figure out details about the host - we need the OS AC_CANONICAL_HOST @@ -61,11 +61,11 @@ AM_CONDITIONAL(SETGIDKMEM, false) case $host_os in solaris2.*) AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) - LDFLAGS="$LDFLAGS -lnsl -lsocket -lkstat" + LIBS="$LIBS -lnsl -lsocket -lkstat" ;; freebsd4.*) AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x]) - LDFLAGS="$LDFLAGS -lkvm" + LIBS="$LIBS -lkvm" # FreeBSD needs ihost to be setgid kmem AM_CONDITIONAL(SETGIDKMEM, true) ;;