--- projects/libstatgrab/configure.in 2004/11/01 18:33:19 1.78 +++ projects/libstatgrab/configure.in 2005/04/04 14:27:23 1.82 @@ -2,15 +2,15 @@ # 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.82 2005/04/04 14:27:23 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.12, bugs@i-scream.org) +AM_INIT_AUTOMAKE(libstatgrab, 0.12) # Revision number (automatically updated) -AC_REVISION($Revision: 1.78 $) +AC_REVISION($Revision: 1.82 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -31,7 +31,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. @@ -173,6 +172,17 @@ AC_ARG_ENABLE(saidar, ] ) +# Check if user wants to disable sgps +AM_CONDITIONAL(SGPS, true) +AC_ARG_ENABLE(sgps, + [ --disable-sgps disable building of sgps], + [ + if test "x$enableval" = "xno" ; then + AM_CONDITIONAL(SGPS, false) + fi + ] +) + # Check if the user would prefer not to build examples AM_CONDITIONAL(EXAMPLES, true) AC_ARG_ENABLE(examples, @@ -240,6 +250,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 examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile src/sgps/Makefile]) AC_OUTPUT