1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 3.8.1-alpha2)
3 AC_CONFIG_SRCDIR(src/collectd.c)
4 AC_CONFIG_HEADERS(src/config.h)
5 AM_INIT_AUTOMAKE(dist-bzip2)
8 AC_PREFIX_DEFAULT("/opt/collectd")
11 # Checks for programs.
18 AM_CONDITIONAL(COMPILER_IS_GCC, test "x$GCC" = "xyes")
22 AC_LIBLTDL_CONVENIENCE
28 AC_CONFIG_SUBDIRS(libltdl src/libconfig)
31 # Checks for header files.
36 AC_CHECK_HEADERS(errno.h)
37 AC_CHECK_HEADERS(syslog.h)
38 AC_CHECK_HEADERS(fcntl.h)
39 AC_CHECK_HEADERS(signal.h)
40 AC_CHECK_HEADERS(assert.h)
41 AC_CHECK_HEADERS(sys/types.h)
42 AC_CHECK_HEADERS(sys/socket.h)
43 AC_CHECK_HEADERS(sys/select.h)
44 AC_CHECK_HEADERS(netdb.h)
45 AC_CHECK_HEADERS(arpa/inet.h)
46 AC_CHECK_HEADERS(sys/resource.h)
47 AC_CHECK_HEADERS(sys/param.h)
50 AC_CHECK_HEADERS(netinet/in_systm.h)
51 AC_CHECK_HEADERS(netinet/in.h, [], [],
52 [#if HAVE_NETINET_IN_SYSTM_H
53 # include <netinet/in_systm.h>
56 AC_CHECK_HEADERS(netinet/ip.h, [], [],
57 [#if HAVE_NETINET_IN_SYSTM_H
58 # include <netinet/in_systm.h>
61 # include <netinet/in.h>
64 AC_CHECK_HEADERS(netinet/ip_icmp.h, [], [],
65 [#if HAVE_NETINET_IN_SYSTM_H
66 # include <netinet/in_systm.h>
69 # include <netinet/in.h>
72 # include <netinet/ip.h>
75 AC_CHECK_HEADERS(netinet/ip_var.h, [], [],
76 [#if HAVE_NETINET_IN_SYSTM_H
77 # include <netinet/in_systm.h>
80 # include <netinet/in.h>
83 # include <netinet/ip.h>
86 AC_CHECK_HEADERS(netinet/ip6.h, [], [],
87 [#if HAVE_NETINET_IN_SYSTM_H
88 # include <netinet/in_systm.h>
91 # include <netinet/in.h>
94 AC_CHECK_HEADERS(netinet/icmp6.h, [], [],
95 [#if HAVE_NETINET_IN_SYSTM_H
96 # include <netinet/in_systm.h>
99 # include <netinet/in.h>
101 #if HAVE_NETINET_IP6_H
102 # include <netinet/ip6.h>
107 AC_CHECK_HEADERS(sys/sysctl.h sys/dkstat.h)
110 AC_CHECK_HEADERS(sys/loadavg.h)
113 AC_CHECK_HEADERS(utmp.h)
114 AC_CHECK_HEADERS(utmpx.h)
117 AC_CHECK_HEADERS(grp.h pwd.h sys/ucred.h)
118 AC_CHECK_HEADERS(ctype.h)
119 AC_CHECK_HEADERS(limits.h)
120 AC_CHECK_HEADERS(sys/quota.h)
121 AC_CHECK_HEADERS(xfs/xqm.h)
123 # For mount interface
124 AC_CHECK_HEADERS(fs_info.h)
125 AC_CHECK_HEADERS(fshelp.h)
126 AC_CHECK_HEADERS(paths.h)
127 AC_CHECK_HEADERS(mntent.h)
128 AC_CHECK_HEADERS(mnttab.h)
129 AC_CHECK_HEADERS(sys/fstyp.h)
130 AC_CHECK_HEADERS(sys/fs_types.h)
131 AC_CHECK_HEADERS(sys/mntent.h)
132 AC_CHECK_HEADERS(sys/mnttab.h)
133 AC_CHECK_HEADERS(sys/mount.h)
134 AC_CHECK_HEADERS(sys/statfs.h)
135 AC_CHECK_HEADERS(sys/statvfs.h)
136 AC_CHECK_HEADERS(sys/vfs.h)
137 AC_CHECK_HEADERS(sys/vfstab.h)
139 # For debugging interface (variable number of arguments)
140 AC_CHECK_HEADERS(stdarg.h)
142 dnl Checking for libraries
146 # Checks for typedefs, structures, and compiler characteristics.
155 # Checks for library functions.
157 AC_PROG_GCC_TRADITIONAL
158 AC_CHECK_FUNCS(gettimeofday select strdup strtol)
159 AC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket))
160 AC_CHECK_FUNCS(getaddrinfo getnameinfo)
161 AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)
162 AC_CHECK_FUNCS(strncasecmp strcasecmp)
163 AC_CHECK_FUNCS(openlog syslog closelog)
166 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
169 AC_CHECK_FUNCS(statfs statvfs)
172 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
175 AC_CHECK_FUNCS(getutent getutxent)
178 AC_CHECK_FUNCS(quotactl)
179 AC_CHECK_FUNCS(getgrgid getpwuid)
181 # For mount interface
182 AC_CHECK_FUNCS(getfsent getvfsent listmntent)
183 AC_CHECK_FUNCS(getfsstat)
185 # Check for different versions of `getmntent' here..
187 if test "x$ac_cv_lib_sun_getmntent" = "xyes"
189 AC_DEFINE(HAVE_SUN_GETMNTENT, 1,
190 [Define if the function getmntent exists. It's the version from libsun.])
192 if test "x$ac_cv_lib_seq_getmntent" = "xyes"
194 AC_DEFINE(HAVE_SEQ_GETMNTENT, 1,
195 [Define if the function getmntent exists. It's the version from libseq.])
197 if test "x$ac_cv_lib_gen_getmntent" = "xyes"
199 AC_DEFINE(HAVE_GEN_GETMNTENT, 1,
200 [Define if the function getmntent exists. It's the version from libgen.])
203 if test "x$ac_cv_func_getmntent" = "xyes"; then
205 CFLAGS="-Wall -Werror $CFLAGS"
206 AC_CACHE_CHECK([whether getmntent takes one argument],
209 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
210 #include "$srcdir/src/utils_mount.h"]],
211 [[(void)getmntent((FILE *)NULL);]]
213 [fu_cv_getmntent1=yes],
214 [fu_cv_getmntent1=no]
217 if test "x$fu_cv_getmntent1" = "xno"; then
218 AC_CACHE_CHECK([whether getmntent takes two arguments],
221 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
222 #include "$srcdir/src/utils_mount.h"]],
223 [[(void)getmntent((FILE *)NULL,
224 (struct mnttab *)NULL);]]
226 [fu_cv_getmntent2=yes],
227 [fu_cv_getmntent2=no]
233 if test "x$fu_cv_getmntent1" = "xyes"; then
234 AC_DEFINE(HAVE_GETMNTENT1,
236 [Define if there is a function named getmntent
237 for reading the list of mounted filesystems, and
238 that function takes a single argument. (4.3BSD,
239 SunOS, HP-UX, Dynix, Irix, Linux)]
242 if test "x$fu_cv_getmntent2" = "xyes"; then
243 AC_DEFINE(HAVE_GETMNTENT2,
245 [Define if there is a function named getmntent
246 for reading the list of mounted filesystems, and
247 that function takes two arguments. (SVR4)]
251 AC_MSG_CHECKING([for kernel type ($host_os)])
254 AC_DEFINE([KERNEL_LINUX], [], [True if program is to be compiled for a Linux kernel])
258 AC_DEFINE([KERNEL_SOLARIS], [], [True if program is to be compiled for a Solaris kernel])
264 AC_MSG_RESULT([$ac_system])
267 AC_CHECK_LIB(socket, socket,
269 AC_DEFINE(HAVE_LIBSOCKET, 1, [Define to 1 if you have the 'socket' library (-lsocket).])
271 [with_libsocket="no"])
272 AM_CONDITIONAL(BUILD_WITH_LIBSOCKET, test "x$with_libsocket" = "xyes")
275 AC_CHECK_LIB(resolv, res_search,
277 AC_DEFINE(HAVE_LIBRESOLV, 1, [Define to 1 if you have the 'resolv' library (-lresolv).])
279 [with_libresolv="no"])
280 AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes")
282 m4_divert_once([HELP_WITH], [
283 collectd additional packages:])
285 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
286 AC_ARG_WITH(rrdtool, [AS_HELP_STRING([--with-rrdtool@<:@=PREFIX@:>@], [Path to rrdtool.])],
287 [ if test "x$withval" != "xno" && test "x$withval" != "xyes"
289 LDFLAGS="$LDFLAGS -L$withval/lib"
290 CPPFLAGS="$CPPFLAGS -I$withval/include"
293 ], [with_rrdtool="yes"])
294 if test "x$with_rrdtool" = "xyes"
296 AC_CHECK_LIB(rrd, rrd_update,
298 AC_DEFINE(HAVE_LIBRRD, 1, [Define to 1 if you have the rrd library (-lrrd).])
300 [with_rrdtool="no (librrd not found)"], [-lm])
302 if test "x$with_rrdtool" = "xyes"
304 AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no (rrd.h not found)"])
306 if test "x$with_rrdtool" = "xyes"
312 AC_DEFINE_UNQUOTED(COLLECT_RRDTOOL, [$collect_rrdtool],
313 [Wether or not to use rrdtool library])
314 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
316 #AC_ARG_WITH(pth, [AS_HELP_STRING([--with-pth=@<:@=PREFIX@:>@], [Path to pth (experimental).]),
317 #[ if test "x$withval" != "xno" && test "x$withval" != "xyes"
319 # LDFLAGS="$LDFLAGS -L$withval/lib"
320 # CPPFLAGS="$CPPFLAGS -I$withval/include"
324 #if test "x$with_pth" = "xyes"
326 # AC_CHECK_LIB(pth, pth_init,, [with_pth="no (libpth not found)"], [])
328 #if test "x$with_pth" = "xyes"
330 # AC_CHECK_HEADERS(pth.h,, [with_pth="no (pth.h not found)"])
332 #if test "x$with_pth" = "xyes"
338 #AC_DEFINE_UNQUOTED(COLLECT_PTH, [$collect_pth],
339 # [Wether or not to use pth (portable threads) library])
340 #AM_CONDITIONAL(BUILD_WITH_PTH, test "x$with_pth" = "xyes")
342 if test "$ac_system" = "Solaris"
346 with_kstat="no (Solaris only)"
348 if test "x$with_kstat" = "xyes"
350 AC_CHECK_LIB(kstat, kstat_open,, [with_kstat="no (libkstat not found)"])
352 if test "x$with_kstat" = "xyes"
354 AC_CHECK_LIB(devinfo, di_init)
355 AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
357 if test "x$with_kstat" = "xyes"
363 AC_DEFINE_UNQUOTED(COLLECT_KSTAT, [$collect_kstat],
364 [Wether or not to use kstat library (Solaris)])
365 AM_CONDITIONAL(BUILD_WITH_KSTAT, test "x$with_kstat" = "xyes")
367 AC_ARG_WITH(libstatgrab, [AS_HELP_STRING([--with-libstatgrab@<:@=PREFIX@:>@], [Path to libstatgrab.])],
369 if test "x$withval" != "xno" && test "x$withval" != "xyes"
371 LDFLAGS="$LDFLAGS -L$withval/lib"
372 CPPFLAGS="$CPPFLAGS -I$withval/include"
373 with_libstatgrab="yes"
377 if test "x$ac_system" == "xunknown"
379 with_libstatgrab="yes"
381 with_libstatgrab="no"
384 if test "x$with_libstatgrab" = "xyes"
386 AC_CHECK_LIB(devstat, getdevs)
387 AC_CHECK_LIB(kvm, kvm_getargv)
388 AC_CHECK_LIB(statgrab, sg_init,, [with_libstatgrab="no (libstatgrab not found)"])
390 if test "x$with_libstatgrab" = "xyes"
392 AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (statgrab.h not found)"])
394 if test "x$with_libstatgrab" = "xyes"
396 collect_libstatgrab=1
398 collect_libstatgrab=0
400 AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
401 [Wether or not to use statgrab library])
402 AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
404 AC_ARG_WITH(lm-sensors, [AS_HELP_STRING([--with-lm-sensors@<:@=PREFIX@:>@], [Path to lm_sensors.])],
406 if test "x$withval" != "xno" && test "x$withval" != "xyes"
408 LDFLAGS="$LDFLAGS -L$withval/lib"
409 CPPFLAGS="$CPPFLAGS -I$withval/include"
410 with_lm_sensors="yes"
414 if test "x$ac_system" = "xLinux"
416 with_lm_sensors="yes"
421 if test "x$with_lm_sensors" = "xyes"
423 AC_CHECK_LIB(sensors, sensors_init,
425 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
427 [with_lm_sensors="no (libsensors not found)"])
429 if test "x$with_lm_sensors" = "xyes"
431 AC_CHECK_HEADERS(sensors/sensors.h,
433 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
435 [with_lm_sensors="no (sensors/sensors.h not found)"])
437 if test "x$with_lm_sensors" = "xyes"
443 AC_DEFINE_UNQUOTED(COLLECT_LM_SENSORS, [$collect_lm_sensors],
444 [Wether or not to use sensors library])
445 AM_CONDITIONAL(BUILD_WITH_LM_SENSORS, test "x$with_lm_sensors" = "xyes")
447 AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to libmysql.])],
449 if test "x$withval" != "xno" && test "x$withval" != "xyes"
451 LDFLAGS="$LDFLAGS -L$withval/lib"
452 CPPFLAGS="$CPPFLAGS -I$withval/include"
459 if test "x$with_libmysql" = "xyes"
461 AC_CHECK_LIB(mysqlclient, mysql_init,
463 AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1, [Define to 1 if you have the mysqlclient library (-lmysqlclient).])
464 ], [with_libmysql="no (libmysql not found)"])
466 if test "x$with_libmysql" = "xyes"
468 AC_CHECK_HEADERS(mysql/mysql.h,
470 AC_DEFINE(HAVE_MYSQL_MYSQL_H, 1, [Define to 1 if you have the <mysql/mysql.h> header file.])
471 ], [with_libmysql="no (mysql/mysql.h not found)"])
473 if test "x$with_libmysql" = "xyes"
479 AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libmysql],
480 [Wether or not to use mysql library])
481 AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libmysql" = "xyes")
484 # Check for enabled/disabled features
487 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
488 # ------------------------------------------------------------
490 m4_define([my_toupper], [m4_translit([$1], m4_defn([m4_cr_letters]), m4_defn([m4_cr_LETTERS]))])
495 m4_if([$1], [], [AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 1st argument must not be empty])])dnl
500 m4_define([EnDis],[disabled])dnl
501 m4_define([YesNo],[no])dnl
507 m4_define([EnDis],[enabled])dnl
508 m4_define([YesNo],[yes])dnl
511 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 2nd argument must be either enable or disable])dnl
515 m4_if([$3], [feature], [],
519 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 3rd argument must be either feature or disable])dnl
525 AS_HELP_STRING([--$2-$1], [$2 $4 (EnDis by def)]),
527 enable_$1='[YesNo]'dnl
529 if test "x$enable_$1" = "xno"
533 if test "x$enable_$1" = "xyes"
537 AC_MSG_NOTICE([please specify either --enable-$1 or --disable-$1; enabling $1.])
542 AC_DEFINE_UNQUOTED([COLLECT_]my_toupper([$1]), [$collectd_$1], [wether or not to enable $3 $4])
543 AM_CONDITIONAL([BUILD_]my_toupper([$3])[_]my_toupper([$1]), [test "x$enable_$1" = "xyes"])dnl
545 )# AC_COLLECTD(name, enable/disable, info-text, feature/module)
547 m4_divert_once([HELP_ENABLE], [
549 AC_COLLECTD([debug], [enable], [feature], [debugging])
550 AC_COLLECTD([daemon], [disable], [feature], [daemon mode])
552 m4_divert_once([HELP_ENABLE], [
554 AC_COLLECTD([battery], [disable], [module], [battery statistics])
555 AC_COLLECTD([cpu], [disable], [module], [cpu usage statistics])
556 AC_COLLECTD([cpufreq], [disable], [module], [system cpu frequency statistics])
557 AC_COLLECTD([disk], [disable], [module], [disk/partition statistics])
558 AC_COLLECTD([df], [disable], [module], [df statistics])
559 AC_COLLECTD([quota], [enable], [module], [quota statistics (experimental)])
560 AC_COLLECTD([hddtemp], [disable], [module], [hdd temperature statistics])
561 AC_COLLECTD([load], [disable], [module], [system load statistics])
562 AC_COLLECTD([memory], [disable], [module], [memory statistics])
563 AC_COLLECTD([mysql], [disable], [module], [mysql statistics])
564 AC_COLLECTD([nfs], [disable], [module], [nfs statistics])
565 AC_COLLECTD([ping], [disable], [module], [ping statistics])
566 AC_COLLECTD([processes], [disable], [module], [processes statistics])
567 AC_COLLECTD([sensors], [disable], [module], [lm_sensors statistics])
568 AC_COLLECTD([serial], [disable], [module], [serial statistics])
569 AC_COLLECTD([swap], [disable], [module], [swap statistics])
570 AC_COLLECTD([tape], [disable], [module], [tape statistics])
571 AC_COLLECTD([traffic], [disable], [module], [system traffic statistics])
572 AC_COLLECTD([users], [disable], [module], [user count statistics])
573 AC_COLLECTD([wireless], [disable], [module], [wireless link statistics])
575 #m4_divert_once([HELP_ENABLE], [
577 #AC_ARG_ENABLE(cpu, AC_HELP_STRING([--disable-cpu], [Disable CPU usage statistics]),, [enable_cpu="yes"])
578 #if test "x$enable_cpu" != "xno"
580 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$have_sysctlbyname" = "xyes"
587 #if test "x$enable_cpu" = "xno"
589 # AC_DEFINE(COLLECT_CPU, 0, [Wether or not to collect CPU usage statistics])
591 #AM_CONDITIONAL(BUILD_MODULE_CPU, test "x$enable_cpu" = "xyes")
593 #AC_ARG_ENABLE(cpufreq, AC_HELP_STRING([--disable-cpufreq], [Disable system cpu frequency statistics]),, [enable_cpufreq="yes"])
594 #if test "x$enable_cpufreq" != "xno"
596 # if test "x$ac_system" = "xLinux"
598 # enable_cpufreq="yes"
600 # enable_cpufreq="no"
603 #if test "x$enable_cpufreq" = "xno"
605 # AC_DEFINE(COLLECT_CPUFREQ, 0, [Wether or not to collect cpu frequency statistics])
607 #AM_CONDITIONAL(BUILD_MODULE_CPUFREQ, test "x$enable_cpufreq" = "xyes")
609 #AC_ARG_ENABLE(disk, AC_HELP_STRING([--disable-disk], [Disable disk/partition statistics]),, [enable_disk="yes"])
610 #if test "x$enable_disk" != "xno"
612 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes"
619 #if test "x$enable_disk" = "xno"
621 # AC_DEFINE(COLLECT_DISK, 0, [Wether or not to collect diskstats])
623 #AM_CONDITIONAL(BUILD_MODULE_DISK, test "x$enable_disk" = "xyes")
625 #AC_ARG_ENABLE(hddtemp, AC_HELP_STRING([--disable-hddtemp], [Disable hdd temperature statistics]),, [enable_hddtemp="yes"])
626 #if test "x$enable_hddtemp" = "xno"
628 # AC_DEFINE(COLLECT_HDDTEMP, 0, [Wether or not to collect hdd temperature statistics])
630 #AM_CONDITIONAL(BUILD_MODULE_HDDTEMP, test "x$enable_hddtemp" = "xyes")
632 #AC_ARG_ENABLE(load, AC_HELP_STRING([--disable-load], [Disable system load statistics]),, [enable_load="yes"])
633 #if test "x$enable_load" != "xno"
635 # if test "x$have_getloadavg" = "xyes" -o "x$ac_system" = "xLinux" -o "x$with_libstatgrab" = "xyes"
642 #if test "x$enable_load" = "xno"
644 # AC_DEFINE(COLLECT_LOAD, 0, [Wether or not to collect system load statistics])
646 #AM_CONDITIONAL(BUILD_MODULE_LOAD, test "x$enable_load" = "xyes")
648 #AC_ARG_ENABLE(memory, AC_HELP_STRING([--disable-memory], [Disable memory statistics]),, [enable_memory="yes"])
649 #if test "x$enable_memory" != "xno"
651 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
653 # enable_memory="yes"
658 #if test "x$enable_memory" = "xno"
660 # AC_DEFINE(COLLECT_MEMORY, 0, [Wether or not to collect memory statistics])
662 #AM_CONDITIONAL(BUILD_MODULE_MEMORY, test "x$enable_memory" = "xyes")
664 #AC_ARG_ENABLE(nfs, AC_HELP_STRING([--disable-nfs], [Disable nfs statistics]),, [enable_nfs="yes"])
665 #if test "x$enable_nfs" != "xno"
667 # if test "x$ac_system" = "xLinux"
674 #if test "x$enable_nfs" = "xno"
676 # AC_DEFINE(COLLECT_NFS, 0, [Wether or not to collect nfs statistics])
678 #AM_CONDITIONAL(BUILD_MODULE_NFS, test "x$enable_nfs" = "xyes")
680 #AC_ARG_ENABLE(ping, AC_HELP_STRING([--disable-ping], [Disable ping statistics]),, [enable_ping="yes"])
681 #if test "x$enable_ping" != "xno"
685 #if test "x$enable_ping" = "xno"
687 # AC_DEFINE(COLLECT_PING, 0, [Wether or not to collect ping statistics])
689 #AM_CONDITIONAL(BUILD_MODULE_PING, test "x$enable_ping" = "xyes")
691 #AC_ARG_ENABLE(processes, AC_HELP_STRING([--disable-processes], [Disable processes statistics]),, [enable_processes="yes"])
692 #if test "x$enable_processes" != "xno"
694 # if test "x$ac_system" = "xLinux"
696 # enable_processes="yes"
698 # enable_processes="no"
701 #if test "x$enable_processes" = "xno"
703 # AC_DEFINE(COLLECT_PROCESSES, 0, [Wether or not to collect processes statistics])
705 #AM_CONDITIONAL(BUILD_MODULE_PROCESSES, test "x$enable_processes" = "xyes")
707 ##AC_COLLECTD([quota], [enable], [module], [quota statistics (experimental)])
709 #AC_ARG_ENABLE(sensors, AC_HELP_STRING([--disable-sensors], [Disable lm_sensors statistics]),, [enable_sensors=$with_lm_sensors])
710 #if test "x$enable_sensors" != "xno"
712 # if test "x$with_lm_sensors" = "xyes"
714 # enable_sensors="yes"
716 # enable_sensors="no"
719 #if test "x$enable_sensors" = "xno"
721 # AC_DEFINE(COLLECT_SENSORS, 0, [Wether or not to collect lm_sensors statistics])
723 #AM_CONDITIONAL(BUILD_MODULE_SENSORS, test "x$enable_sensors" = "xyes")
725 #AC_ARG_ENABLE(serial, AC_HELP_STRING([--disable-serial], [Disable serial statistics]),, [enable_serial="yes"])
726 #if test "x$enable_serial" != "xno"
728 # if test "x$ac_system" = "xLinux"
730 # enable_serial="yes"
735 #if test "x$enable_serial" = "xno"
737 # AC_DEFINE(COLLECT_SERIAL, 0, [Wether or not to collect serial statistics])
739 #AM_CONDITIONAL(BUILD_MODULE_SERIAL, test "x$enable_serial" = "xyes")
741 #AC_ARG_ENABLE(swap, AC_HELP_STRING([--disable-swap], [Disable swap statistics]),, [enable_swap="yes"])
742 #if test "x$enable_swap" != "xno"
744 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
751 #if test "x$enable_swap" = "xno"
753 # AC_DEFINE(COLLECT_SWAP, 0, [Wether or not to collect swap statistics])
755 #AM_CONDITIONAL(BUILD_MODULE_SWAP, test "x$enable_swap" = "xyes")
757 #AC_ARG_ENABLE(tape, AC_HELP_STRING([--disable-tape], [Disable tape statistics]),, [enable_tape="yes"])
758 #if test "x$enable_tape" != "xno"
760 # if test "x$with_kstat" = "xyes"
767 #if test "x$enable_tape" = "xno"
769 # AC_DEFINE(COLLECT_TAPE, 0, [Wether or not to collect tape statistics])
771 #AM_CONDITIONAL(BUILD_MODULE_TAPE, test "x$enable_tape" = "xyes")
773 #AC_ARG_ENABLE(traffic, AC_HELP_STRING([--disable-traffic], [Disable system traffic statistics]),, [enable_traffic="yes"])
774 #if test "x$enable_traffic" != "xno"
776 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
778 # enable_traffic="yes"
780 # enable_traffic="no"
783 #if test "x$enable_traffic" = "xno"
785 # AC_DEFINE(COLLECT_TRAFFIC, 0, [Wether or not to collect network traffic statistics])
787 #AM_CONDITIONAL(BUILD_MODULE_TRAFFIC, test "x$enable_traffic" = "xyes")
789 #AC_COLLECTD([users], [disable], [module], [user count statistics])
791 AC_OUTPUT(Makefile src/libconfig/Makefile src/liboping/Makefile src/Makefile)
797 librrd . . . . . . $with_rrdtool
798 lm_sensors . . . . $with_lm_sensors
799 libstatgrab . . . . $with_libstatgrab
800 libkstat . . . . . $with_kstat
801 libmysql . . . . . $with_libmysql
804 debug . . . . . . . $enable_debug
805 daemon mode . . . . $enable_daemon
808 battery . . . . . . $enable_battery
809 cpu . . . . . . . . $enable_cpu
810 cpufreq . . . . . . $enable_cpufreq
811 df . . . . . . . . $enable_df
812 disk . . . . . . . $enable_disk
813 hddtemp . . . . . . $enable_hddtemp
814 load . . . . . . . $enable_load
815 memory . . . . . . $enable_memory
816 mysql . . . . . . . $enable_mysql
817 nfs . . . . . . . . $enable_nfs
818 ping . . . . . . . $enable_ping
819 processes . . . . . $enable_processes
820 sensors . . . . . . $enable_sensors
821 serial . . . . . . $enable_serial
822 swap . . . . . . . $enable_swap
823 tape . . . . . . . $enable_tape
824 traffic . . . . . . $enable_traffic
825 users . . . . . . . $enable_users
826 wireless . . . . . $enable_wireless