dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/collectd.c)
-AM_INIT_AUTOMAKE(collectd, 3.4.0)
+AM_INIT_AUTOMAKE(collectd, 3.5.alpha0)
AM_CONFIG_HEADER(src/config.h src/libping/config.h)
AC_LANG(C)
AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
# For users module
-AC_CHECK_FUNCS(getutent getutxent)
+have_getutent="no"
+AC_CHECK_FUNCS(getutent getutxent, [have_getutent="yes"])
AC_MSG_CHECKING([for kernel type ($host_os)])
case $host_os in
AC_ARG_ENABLE(users, AC_HELP_STRING([--disable-users], [Disable user count statistics]),, [enable_users="yes"])
if test "x$enable_users" != "xno"
then
- if test "x$ac_system" = "xLinux" -o "x$ac_system" = "xSolaris"
+ if test "x$have_getutent" = "xyes"
then
enable_users="yes"
else