1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 3.7.0)
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.
35 AC_CHECK_HEADERS(errno.h)
36 AC_CHECK_HEADERS(syslog.h)
37 AC_CHECK_HEADERS(fcntl.h)
38 AC_CHECK_HEADERS(signal.h)
39 AC_CHECK_HEADERS(assert.h)
40 AC_CHECK_HEADERS(sys/types.h)
41 AC_CHECK_HEADERS(sys/socket.h)
42 AC_CHECK_HEADERS(sys/select.h)
43 AC_CHECK_HEADERS(netdb.h)
44 AC_CHECK_HEADERS(arpa/inet.h)
45 AC_CHECK_HEADERS(netinet/in.h)
46 AC_CHECK_HEADERS(sys/resource.h)
47 AC_CHECK_HEADERS(sys/param.h)
50 AC_CHECK_HEADERS(sys/sysctl.h sys/dkstat.h)
53 AC_CHECK_HEADERS(sys/loadavg.h)
56 AC_CHECK_HEADERS(utmp.h)
57 AC_CHECK_HEADERS(utmpx.h)
60 AC_CHECK_HEADERS(grp.h pwd.h sys/ucred.h)
61 AC_CHECK_HEADERS(ctype.h)
62 AC_CHECK_HEADERS(limits.h)
63 AC_CHECK_HEADERS(sys/quota.h)
64 AC_CHECK_HEADERS(xfs/xqm.h)
67 AC_CHECK_HEADERS(fs_info.h)
68 AC_CHECK_HEADERS(fshelp.h)
69 AC_CHECK_HEADERS(paths.h)
70 AC_CHECK_HEADERS(mntent.h)
71 AC_CHECK_HEADERS(mnttab.h)
72 AC_CHECK_HEADERS(sys/fstyp.h)
73 AC_CHECK_HEADERS(sys/fs_types.h)
74 AC_CHECK_HEADERS(sys/mntent.h)
75 AC_CHECK_HEADERS(sys/mnttab.h)
76 AC_CHECK_HEADERS(sys/mount.h)
77 AC_CHECK_HEADERS(sys/statfs.h)
78 AC_CHECK_HEADERS(sys/statvfs.h)
79 AC_CHECK_HEADERS(sys/vfs.h)
80 AC_CHECK_HEADERS(sys/vfstab.h)
82 # For debugging interface (variable number of arguments)
83 AC_CHECK_HEADERS(stdarg.h)
85 dnl Checking for libraries
89 # Checks for typedefs, structures, and compiler characteristics.
98 # Checks for library functions.
100 AC_PROG_GCC_TRADITIONAL
101 AC_CHECK_FUNCS(gettimeofday select strdup strtol)
102 AC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket))
103 AC_CHECK_FUNCS(getaddrinfo getnameinfo)
104 AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)
105 AC_CHECK_FUNCS(strncasecmp strcasecmp)
106 AC_CHECK_FUNCS(openlog syslog closelog)
109 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
112 AC_CHECK_FUNCS(statfs statvfs)
115 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
118 AC_CHECK_FUNCS(getutent getutxent)
121 AC_CHECK_FUNCS(quotactl)
122 AC_CHECK_FUNCS(getgrgid getpwuid)
124 # For mount interface
125 AC_CHECK_FUNCS(getfsent getvfsent listmntent)
127 if test "x$ac_cv_func_getmntent" = "xyes"; then
129 CFLAGS="-Wall -Werror $CFLAGS"
130 AC_CACHE_CHECK([whether getmntent takes one argument],
133 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
134 #include "$srcdir/src/utils_mount.h"]],
135 [[(void)getmntent((FILE *)NULL);]]
137 [fu_cv_getmntent1=yes],
138 [fu_cv_getmntent1=no]
141 if test "x$fu_cv_getmntent1" = "xno"; then
142 AC_CACHE_CHECK([whether getmntent takes two arguments],
145 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
146 #include "$srcdir/src/utils_mount.h"]],
147 [[(void)getmntent((FILE *)NULL,
148 (struct mnttab *)NULL);]]
150 [fu_cv_getmntent2=yes],
151 [fu_cv_getmntent2=no]
157 if test "x$fu_cv_getmntent1" = "xyes"; then
158 AC_DEFINE(HAVE_GETMNTENT1,
160 [Define if there is a function named getmntent
161 for reading the list of mounted filesystems, and
162 that function takes a single argument. (4.3BSD,
163 SunOS, HP-UX, Dynix, Irix, Linux)]
166 if test "x$fu_cv_getmntent2" = "xyes"; then
167 AC_DEFINE(HAVE_GETMNTENT2,
169 [Define if there is a function named getmntent
170 for reading the list of mounted filesystems, and
171 that function takes two arguments. (SVR4)]
175 AC_MSG_CHECKING([for kernel type ($host_os)])
178 AC_DEFINE([KERNEL_LINUX], [], [True if program is to be compiled for a Linux kernel])
182 AC_DEFINE([KERNEL_SOLARIS], [], [True if program is to be compiled for a Solaris kernel])
188 AC_MSG_RESULT([$ac_system])
190 dnl Checks for libraries.
191 # FIXME don't link all plugins against these libraries!
192 AC_CHECK_LIB(socket, socket)
193 AC_CHECK_LIB(resolv, res_search)
195 m4_divert_once([HELP_WITH], [
196 collectd additional packages:])
198 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
199 AC_ARG_WITH(rrdtool, [AS_HELP_STRING([--with-rrdtool@<:@=PREFIX@:>@], [Path to rrdtool.])],
200 [ if test "x$withval" != "xno" && test "x$withval" != "xyes"
202 LDFLAGS="$LDFLAGS -L$withval/lib"
203 CPPFLAGS="$CPPFLAGS -I$withval/include"
206 ], [with_rrdtool="yes"])
207 if test "x$with_rrdtool" = "xyes"
209 AC_CHECK_LIB(rrd, rrd_update,, [with_rrdtool="no (librrd not found)"], [-lm])
211 if test "x$with_rrdtool" = "xyes"
213 AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no (rrd.h not found)"])
215 if test "x$with_rrdtool" = "xyes"
221 AC_DEFINE_UNQUOTED(COLLECT_RRDTOOL, [$collect_rrdtool],
222 [Wether or not to use rrdtool library])
223 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
225 #AC_ARG_WITH(pth, [AS_HELP_STRING([--with-pth=@<:@=PREFIX@:>@], [Path to pth (experimental).]),
226 #[ if test "x$withval" != "xno" && test "x$withval" != "xyes"
228 # LDFLAGS="$LDFLAGS -L$withval/lib"
229 # CPPFLAGS="$CPPFLAGS -I$withval/include"
233 #if test "x$with_pth" = "xyes"
235 # AC_CHECK_LIB(pth, pth_init,, [with_pth="no (libpth not found)"], [])
237 #if test "x$with_pth" = "xyes"
239 # AC_CHECK_HEADERS(pth.h,, [with_pth="no (pth.h not found)"])
241 #if test "x$with_pth" = "xyes"
247 #AC_DEFINE_UNQUOTED(COLLECT_PTH, [$collect_pth],
248 # [Wether or not to use pth (portable threads) library])
249 #AM_CONDITIONAL(BUILD_WITH_PTH, test "x$with_pth" = "xyes")
251 if test "$ac_system" = "Solaris"
255 with_kstat="no (Solaris only)"
257 if test "x$with_kstat" = "xyes"
259 AC_CHECK_LIB(kstat, kstat_open,, [with_kstat="no (libkstat not found)"])
261 if test "x$with_kstat" = "xyes"
263 AC_CHECK_LIB(devinfo, di_init)
264 AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
266 if test "x$with_kstat" = "xyes"
272 AC_DEFINE_UNQUOTED(COLLECT_KSTAT, [$collect_kstat],
273 [Wether or not to use kstat library (Solaris)])
274 AM_CONDITIONAL(BUILD_WITH_KSTAT, test "x$with_kstat" = "xyes")
276 AC_ARG_WITH(libstatgrab, [AS_HELP_STRING([--with-libstatgrab@<:@=PREFIX@:>@], [Path to libstatgrab.])],
278 if test "x$withval" != "xno" && test "x$withval" != "xyes"
280 LDFLAGS="$LDFLAGS -L$withval/lib"
281 CPPFLAGS="$CPPFLAGS -I$withval/include"
282 with_libstatgrab="yes"
286 if test "x$ac_system" == "xunknown"
288 with_libstatgrab="yes"
290 with_libstatgrab="no"
293 if test "x$with_libstatgrab" = "xyes"
295 AC_CHECK_LIB(devstat, getdevs)
296 AC_CHECK_LIB(kvm, kvm_getargv)
297 AC_CHECK_LIB(statgrab, sg_init,, [with_libstatgrab="no (libstatgrab not found)"])
299 if test "x$with_libstatgrab" = "xyes"
301 AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (statgrab.h not found)"])
303 if test "x$with_libstatgrab" = "xyes"
305 collect_libstatgrab=1
307 collect_libstatgrab=0
309 AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
310 [Wether or not to use statgrab library])
311 AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
313 AC_ARG_WITH(lm-sensors, [AS_HELP_STRING([--with-lm-sensors@<:@=PREFIX@:>@], [Path to lm_sensors.])],
315 if test "x$withval" != "xno" && test "x$withval" != "xyes"
317 LDFLAGS="$LDFLAGS -L$withval/lib"
318 CPPFLAGS="$CPPFLAGS -I$withval/include"
319 with_lm_sensors="yes"
323 if test "x$ac_system" = "xLinux"
325 with_lm_sensors="yes"
330 if test "x$with_lm_sensors" = "xyes"
332 AC_CHECK_LIB(sensors, sensors_init,
334 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
336 [with_lm_sensors="no (libsensors not found)"])
338 if test "x$with_lm_sensors" = "xyes"
340 AC_CHECK_HEADERS(sensors/sensors.h,
342 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
344 [with_lm_sensors="no (sensors/sensors.h not found)"])
346 if test "x$with_lm_sensors" = "xyes"
352 AC_DEFINE_UNQUOTED(COLLECT_LM_SENSORS, [$collect_lm_sensors],
353 [Wether or not to use sensors library])
354 AM_CONDITIONAL(BUILD_WITH_LM_SENSORS, test "x$with_lm_sensors" = "xyes")
356 AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to libmysql.])],
358 if test "x$withval" != "xno" && test "x$withval" != "xyes"
360 LDFLAGS="$LDFLAGS -L$withval/lib"
361 CPPFLAGS="$CPPFLAGS -I$withval/include"
368 if test "x$with_libmysql" = "xyes"
370 AC_CHECK_LIB(mysqlclient, mysql_init,
372 AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1, [Define to 1 if you have the mysqlclient library (-lmysqlclient).])
373 ], [with_libmysql="no (libmysql not found)"])
375 if test "x$with_libmysql" = "xyes"
377 AC_CHECK_HEADERS(mysql/mysql.h,
379 AC_DEFINE(HAVE_MYSQL_MYSQL_H, 1, [Define to 1 if you have the <mysql/mysql.h> header file.])
380 ], [with_libmysql="no (mysql/mysql.h not found)"])
382 if test "x$with_libmysql" = "xyes"
388 AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libmysql],
389 [Wether or not to use mysql library])
390 AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libmysql" = "xyes")
393 # Check for enabled/disabled features
396 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
397 # ------------------------------------------------------------
399 m4_define([my_toupper], [m4_translit([$1], m4_defn([m4_cr_letters]), m4_defn([m4_cr_LETTERS]))])
404 m4_if([$1], [], [AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 1st argument must not be empty])])dnl
409 m4_define([EnDis],[disabled])dnl
410 m4_define([YesNo],[no])dnl
416 m4_define([EnDis],[enabled])dnl
417 m4_define([YesNo],[yes])dnl
420 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 2nd argument must be either enable or disable])dnl
424 m4_if([$3], [feature], [],
428 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 3rd argument must be either feature or disable])dnl
434 AS_HELP_STRING([--$2-$1], [$2 $4 (EnDis by def)]),
436 enable_$1='[YesNo]'dnl
438 if test "x$enable_$1" = "xno"
442 if test "x$enable_$1" = "xyes"
446 AC_MSG_NOTICE([please specify either --enable-$1 or --disable-$1; enabling $1.])
451 AC_DEFINE_UNQUOTED([COLLECT_]my_toupper([$1]), [$collectd_$1], [wether or not to enable $3 $4])
452 AM_CONDITIONAL([BUILD_]my_toupper([$3])[_]my_toupper([$1]), [test "x$enable_$1" = "xyes"])dnl
454 )# AC_COLLECTD(name, enable/disable, info-text, feature/module)
456 m4_divert_once([HELP_ENABLE], [
458 AC_COLLECTD([debug], [enable], [feature], [debugging])
459 AC_COLLECTD([daemon], [disable], [feature], [daemon mode])
461 m4_divert_once([HELP_ENABLE], [
463 AC_COLLECTD([battery], [disable], [module], [battery statistics])
464 AC_COLLECTD([cpu], [disable], [module], [cpu usage statistics])
465 AC_COLLECTD([cpufreq], [disable], [module], [system cpu frequency statistics])
466 AC_COLLECTD([disk], [disable], [module], [disk/partition statistics])
467 AC_COLLECTD([df], [disable], [module], [df statistics])
468 AC_COLLECTD([quota], [enable], [module], [quota statistics (experimental)])
469 AC_COLLECTD([hddtemp], [disable], [module], [hdd temperature statistics])
470 AC_COLLECTD([load], [disable], [module], [system load statistics])
471 AC_COLLECTD([memory], [disable], [module], [memory statistics])
472 AC_COLLECTD([mysql], [disable], [module], [mysql statistics])
473 AC_COLLECTD([nfs], [disable], [module], [nfs statistics])
474 AC_COLLECTD([ping], [disable], [module], [ping statistics])
475 AC_COLLECTD([processes], [disable], [module], [processes statistics])
476 AC_COLLECTD([sensors], [disable], [module], [lm_sensors statistics])
477 AC_COLLECTD([serial], [disable], [module], [serial statistics])
478 AC_COLLECTD([swap], [disable], [module], [swap statistics])
479 AC_COLLECTD([tape], [disable], [module], [tape statistics])
480 AC_COLLECTD([traffic], [disable], [module], [system traffic statistics])
481 AC_COLLECTD([users], [disable], [module], [user count statistics])
483 #m4_divert_once([HELP_ENABLE], [
485 #AC_ARG_ENABLE(cpu, AC_HELP_STRING([--disable-cpu], [Disable CPU usage statistics]),, [enable_cpu="yes"])
486 #if test "x$enable_cpu" != "xno"
488 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$have_sysctlbyname" = "xyes"
495 #if test "x$enable_cpu" = "xno"
497 # AC_DEFINE(COLLECT_CPU, 0, [Wether or not to collect CPU usage statistics])
499 #AM_CONDITIONAL(BUILD_MODULE_CPU, test "x$enable_cpu" = "xyes")
501 #AC_ARG_ENABLE(cpufreq, AC_HELP_STRING([--disable-cpufreq], [Disable system cpu frequency statistics]),, [enable_cpufreq="yes"])
502 #if test "x$enable_cpufreq" != "xno"
504 # if test "x$ac_system" = "xLinux"
506 # enable_cpufreq="yes"
508 # enable_cpufreq="no"
511 #if test "x$enable_cpufreq" = "xno"
513 # AC_DEFINE(COLLECT_CPUFREQ, 0, [Wether or not to collect cpu frequency statistics])
515 #AM_CONDITIONAL(BUILD_MODULE_CPUFREQ, test "x$enable_cpufreq" = "xyes")
517 #AC_ARG_ENABLE(disk, AC_HELP_STRING([--disable-disk], [Disable disk/partition statistics]),, [enable_disk="yes"])
518 #if test "x$enable_disk" != "xno"
520 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes"
527 #if test "x$enable_disk" = "xno"
529 # AC_DEFINE(COLLECT_DISK, 0, [Wether or not to collect diskstats])
531 #AM_CONDITIONAL(BUILD_MODULE_DISK, test "x$enable_disk" = "xyes")
533 #AC_ARG_ENABLE(hddtemp, AC_HELP_STRING([--disable-hddtemp], [Disable hdd temperature statistics]),, [enable_hddtemp="yes"])
534 #if test "x$enable_hddtemp" = "xno"
536 # AC_DEFINE(COLLECT_HDDTEMP, 0, [Wether or not to collect hdd temperature statistics])
538 #AM_CONDITIONAL(BUILD_MODULE_HDDTEMP, test "x$enable_hddtemp" = "xyes")
540 #AC_ARG_ENABLE(load, AC_HELP_STRING([--disable-load], [Disable system load statistics]),, [enable_load="yes"])
541 #if test "x$enable_load" != "xno"
543 # if test "x$have_getloadavg" = "xyes" -o "x$ac_system" = "xLinux" -o "x$with_libstatgrab" = "xyes"
550 #if test "x$enable_load" = "xno"
552 # AC_DEFINE(COLLECT_LOAD, 0, [Wether or not to collect system load statistics])
554 #AM_CONDITIONAL(BUILD_MODULE_LOAD, test "x$enable_load" = "xyes")
556 #AC_ARG_ENABLE(memory, AC_HELP_STRING([--disable-memory], [Disable memory statistics]),, [enable_memory="yes"])
557 #if test "x$enable_memory" != "xno"
559 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
561 # enable_memory="yes"
566 #if test "x$enable_memory" = "xno"
568 # AC_DEFINE(COLLECT_MEMORY, 0, [Wether or not to collect memory statistics])
570 #AM_CONDITIONAL(BUILD_MODULE_MEMORY, test "x$enable_memory" = "xyes")
572 #AC_ARG_ENABLE(nfs, AC_HELP_STRING([--disable-nfs], [Disable nfs statistics]),, [enable_nfs="yes"])
573 #if test "x$enable_nfs" != "xno"
575 # if test "x$ac_system" = "xLinux"
582 #if test "x$enable_nfs" = "xno"
584 # AC_DEFINE(COLLECT_NFS, 0, [Wether or not to collect nfs statistics])
586 #AM_CONDITIONAL(BUILD_MODULE_NFS, test "x$enable_nfs" = "xyes")
588 #AC_ARG_ENABLE(ping, AC_HELP_STRING([--disable-ping], [Disable ping statistics]),, [enable_ping="yes"])
589 #if test "x$enable_ping" != "xno"
593 #if test "x$enable_ping" = "xno"
595 # AC_DEFINE(COLLECT_PING, 0, [Wether or not to collect ping statistics])
597 #AM_CONDITIONAL(BUILD_MODULE_PING, test "x$enable_ping" = "xyes")
599 #AC_ARG_ENABLE(processes, AC_HELP_STRING([--disable-processes], [Disable processes statistics]),, [enable_processes="yes"])
600 #if test "x$enable_processes" != "xno"
602 # if test "x$ac_system" = "xLinux"
604 # enable_processes="yes"
606 # enable_processes="no"
609 #if test "x$enable_processes" = "xno"
611 # AC_DEFINE(COLLECT_PROCESSES, 0, [Wether or not to collect processes statistics])
613 #AM_CONDITIONAL(BUILD_MODULE_PROCESSES, test "x$enable_processes" = "xyes")
615 ##AC_COLLECTD([quota], [enable], [module], [quota statistics (experimental)])
617 #AC_ARG_ENABLE(sensors, AC_HELP_STRING([--disable-sensors], [Disable lm_sensors statistics]),, [enable_sensors=$with_lm_sensors])
618 #if test "x$enable_sensors" != "xno"
620 # if test "x$with_lm_sensors" = "xyes"
622 # enable_sensors="yes"
624 # enable_sensors="no"
627 #if test "x$enable_sensors" = "xno"
629 # AC_DEFINE(COLLECT_SENSORS, 0, [Wether or not to collect lm_sensors statistics])
631 #AM_CONDITIONAL(BUILD_MODULE_SENSORS, test "x$enable_sensors" = "xyes")
633 #AC_ARG_ENABLE(serial, AC_HELP_STRING([--disable-serial], [Disable serial statistics]),, [enable_serial="yes"])
634 #if test "x$enable_serial" != "xno"
636 # if test "x$ac_system" = "xLinux"
638 # enable_serial="yes"
643 #if test "x$enable_serial" = "xno"
645 # AC_DEFINE(COLLECT_SERIAL, 0, [Wether or not to collect serial statistics])
647 #AM_CONDITIONAL(BUILD_MODULE_SERIAL, test "x$enable_serial" = "xyes")
649 #AC_ARG_ENABLE(swap, AC_HELP_STRING([--disable-swap], [Disable swap statistics]),, [enable_swap="yes"])
650 #if test "x$enable_swap" != "xno"
652 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
659 #if test "x$enable_swap" = "xno"
661 # AC_DEFINE(COLLECT_SWAP, 0, [Wether or not to collect swap statistics])
663 #AM_CONDITIONAL(BUILD_MODULE_SWAP, test "x$enable_swap" = "xyes")
665 #AC_ARG_ENABLE(tape, AC_HELP_STRING([--disable-tape], [Disable tape statistics]),, [enable_tape="yes"])
666 #if test "x$enable_tape" != "xno"
668 # if test "x$with_kstat" = "xyes"
675 #if test "x$enable_tape" = "xno"
677 # AC_DEFINE(COLLECT_TAPE, 0, [Wether or not to collect tape statistics])
679 #AM_CONDITIONAL(BUILD_MODULE_TAPE, test "x$enable_tape" = "xyes")
681 #AC_ARG_ENABLE(traffic, AC_HELP_STRING([--disable-traffic], [Disable system traffic statistics]),, [enable_traffic="yes"])
682 #if test "x$enable_traffic" != "xno"
684 # if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
686 # enable_traffic="yes"
688 # enable_traffic="no"
691 #if test "x$enable_traffic" = "xno"
693 # AC_DEFINE(COLLECT_TRAFFIC, 0, [Wether or not to collect network traffic statistics])
695 #AM_CONDITIONAL(BUILD_MODULE_TRAFFIC, test "x$enable_traffic" = "xyes")
697 #AC_COLLECTD([users], [disable], [module], [user count statistics])
699 AC_OUTPUT(Makefile src/libconfig/Makefile src/libping/Makefile src/Makefile)
705 librrd . . . . . . $with_rrdtool
706 lm_sensors . . . . $with_lm_sensors
707 libstatgrab . . . . $with_libstatgrab
708 libkstat . . . . . $with_kstat
709 libmysql . . . . . $with_libmysql
712 debug . . . . . . . $enable_debug
713 daemon mode . . . . $enable_daemon
716 battery . . . . . . $enable_battery
717 cpu . . . . . . . . $enable_cpu
718 cpufreq . . . . . . $enable_cpufreq
719 df . . . . . . . . $enable_df
720 disk . . . . . . . $enable_disk
721 hddtemp . . . . . . $enable_hddtemp
722 load . . . . . . . $enable_load
723 memory . . . . . . $enable_memory
724 mysql . . . . . . . $enable_mysql
725 nfs . . . . . . . . $enable_nfs
726 ping . . . . . . . $enable_ping
727 processes . . . . . $enable_processes
728 sensors . . . . . . $enable_sensors
729 serial . . . . . . $enable_serial
730 swap . . . . . . . $enable_swap
731 tape . . . . . . . $enable_tape
732 traffic . . . . . . $enable_traffic
733 users . . . . . . . $enable_users