1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 4.0.4)
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")
13 # Checks for programs.
20 AM_CONDITIONAL(COMPILER_IS_GCC, test "x$GCC" = "xyes")
24 AC_LIBLTDL_CONVENIENCE
31 AC_CONFIG_SUBDIRS(libltdl)
34 # Checks for header files.
40 AC_CHECK_HEADERS(stdint.h stdio.h errno.h math.h stdarg.h syslog.h fcntl.h signal.h assert.h sys/types.h sys/socket.h sys/select.h poll.h netdb.h arpa/inet.h sys/resource.h sys/param.h kstat.h regex.h)
43 AC_CHECK_HEADERS(netinet/in_systm.h, [], [],
48 # include <sys/types.h>
51 AC_CHECK_HEADERS(netinet/in.h, [], [],
56 # include <sys/types.h>
58 #if HAVE_NETINET_IN_SYSTM_H
59 # include <netinet/in_systm.h>
62 AC_CHECK_HEADERS(netinet/ip.h, [], [],
67 # include <sys/types.h>
69 #if HAVE_NETINET_IN_SYSTM_H
70 # include <netinet/in_systm.h>
73 # include <netinet/in.h>
76 AC_CHECK_HEADERS(netinet/ip_icmp.h, [], [],
81 # include <sys/types.h>
83 #if HAVE_NETINET_IN_SYSTM_H
84 # include <netinet/in_systm.h>
87 # include <netinet/in.h>
90 # include <netinet/ip.h>
93 AC_CHECK_HEADERS(netinet/ip_var.h, [], [],
98 # include <sys/types.h>
100 #if HAVE_NETINET_IN_SYSTM_H
101 # include <netinet/in_systm.h>
103 #if HAVE_NETINET_IN_H
104 # include <netinet/in.h>
106 #if HAVE_NETINET_IP_H
107 # include <netinet/ip.h>
110 AC_CHECK_HEADERS(netinet/ip6.h, [], [],
115 # include <sys/types.h>
117 #if HAVE_NETINET_IN_SYSTM_H
118 # include <netinet/in_systm.h>
120 #if HAVE_NETINET_IN_H
121 # include <netinet/in.h>
124 AC_CHECK_HEADERS(netinet/icmp6.h, [], [],
129 # include <sys/types.h>
131 #if HAVE_NETINET_IN_SYSTM_H
132 # include <netinet/in_systm.h>
134 #if HAVE_NETINET_IN_H
135 # include <netinet/in.h>
137 #if HAVE_NETINET_IP6_H
138 # include <netinet/ip6.h>
141 AC_CHECK_HEADERS(netinet/tcp.h, [], [],
146 # include <sys/types.h>
148 #if HAVE_NETINET_IN_SYSTM_H
149 # include <netinet/in_systm.h>
151 #if HAVE_NETINET_IN_H
152 # include <netinet/in.h>
154 #if HAVE_NETINET_IP_H
155 # include <netinet/ip.h>
158 AC_CHECK_HEADERS(netinet/udp.h, [], [],
163 # include <sys/types.h>
165 #if HAVE_NETINET_IN_SYSTM_H
166 # include <netinet/in_systm.h>
168 #if HAVE_NETINET_IN_H
169 # include <netinet/in.h>
171 #if HAVE_NETINET_IP_H
172 # include <netinet/ip.h>
177 AC_CHECK_HEADERS(sys/sysctl.h sys/dkstat.h mach/mach_init.h mach/host_priv.h mach/mach_error.h mach/mach_host.h mach/mach_port.h mach/mach_types.h mach/message.h mach/processor_set.h mach/processor.h mach/processor_info.h mach/task.h mach/thread_act.h mach/vm_region.h mach/vm_map.h mach/vm_prot.h mach/vm_statistics.h mach/kern_return.h)
180 AC_CHECK_HEADERS(linux/major.h libgen.h)
182 # For the apple_sensors module
183 AC_CHECK_HEADERS(CoreFoundation/CoreFoundation.h IOKit/IOKitLib.h IOKit/IOTypes.h IOKit/ps/IOPSKeys.h IOKit/IOBSD.h IOKit/storage/IOBlockStorageDriver.h)
185 # For the battery plugin
186 AC_CHECK_HEADERS(IOKit/ps/IOPowerSources.h, [], [],
188 #if HAVE_IOKIT_IOKITLIB_H
189 # include <IOKit/IOKitLib.h>
191 #if HAVE_IOKIT_IOTYPES_H
192 # include <IOKit/IOTypes.h>
197 # For the processes plugin
198 # For the swap module
200 AC_CHECK_HEADERS(sys/loadavg.h linux/config.h sys/swap.h utmp.h utmpx.h)
202 # For interface plugin
203 AC_CHECK_HEADERS(ifaddrs.h)
204 AC_CHECK_HEADERS(net/if.h, [], [],
207 # include <sys/types.h>
209 #if HAVE_SYS_SOCKET_H
210 # include <sys/socket.h>
213 AC_CHECK_HEADERS(linux/if.h, [], [],
216 # include <sys/types.h>
218 #if HAVE_SYS_SOCKET_H
219 # include <sys/socket.h>
222 AC_CHECK_HEADERS(linux/netdevice.h, [], [],
225 # include <sys/types.h>
227 #if HAVE_SYS_SOCKET_H
228 # include <sys/socket.h>
231 # include <linux/if.h>
236 # For mount interface
238 AC_CHECK_HEADERS(curl/curl.h pwd.h grp.h sys/un.h sys/ucred.h ctype.h limits.h sys/quota.h xfs/xqm.h fs_info.h fshelp.h paths.h mntent.h mnttab.h sys/fstyp.h sys/fs_types.h sys/mntent.h sys/mnttab.h sys/mount.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/vfstab.h kvm.h arpa/nameser.h arpa/nameser_compat.h)
240 AC_CHECK_HEADERS(net/if_arp.h, [], [],
241 [#if HAVE_SYS_SOCKET_H
242 # include <sys/socket.h>
245 AC_CHECK_HEADERS(net/ppp_defs.h)
246 AC_CHECK_HEADERS(net/if_ppp.h, [], [],
247 [#if HAVE_NET_PPP_DEFS_H
248 # include <net/ppp_defs.h>
251 AC_CHECK_HEADERS(netinet/if_ether.h, [], [],
256 # include <sys/types.h>
258 #if HAVE_SYS_SOCKET_H
259 # include <sys/socket.h>
264 #if HAVE_NETINET_IN_H
265 # include <netinet/in.h>
269 # For the multimeter plugin
270 AC_CHECK_HEADERS(termios.h sys/ioctl.h)
273 # Checking for libraries
278 # Checks for typedefs, structures, and compiler characteristics.
287 # Checks for library functions.
289 AC_PROG_GCC_TRADITIONAL
290 AC_CHECK_FUNCS(gettimeofday select strdup strtol getaddrinfo getnameinfo strchr memcpy strstr strcmp strncmp strncpy strlen strncasecmp strcasecmp openlog closelog)
292 socket_needs_socket="no"
293 AC_CHECK_FUNCS(socket, [], AC_CHECK_LIB(socket, socket, [socket_needs_socket="yes"], AC_MSG_ERROR(cannot find socket)))
294 AM_CONDITIONAL(BUILD_WITH_LIBSOCKET, test "x$socket_needs_socket" = "xyes")
296 nanosleep_needs_rt="no"
297 AC_CHECK_FUNCS(nanosleep, [], AC_CHECK_LIB(rt, nanosleep, [nanosleep_needs_rt="yes"], AC_MSG_ERROR(cannot find nanosleep)))
298 AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
300 AC_CHECK_FUNCS(regcomp regerror regexec regfree)
302 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
303 AC_CHECK_FUNCS(host_statistics, [have_host_statistics="yes"], [have_host_statistics="no"])
304 AC_CHECK_FUNCS(processor_info, [have_processor_info="yes"], [have_processor_info="no"])
305 AC_CHECK_FUNCS(thread_info, [have_thread_info="yes"], [have_thread_info="no"])
306 AC_CHECK_FUNCS(statfs, [have_statfs="yes"], [have_statfs="no"])
307 AC_CHECK_FUNCS(statvfs, [have_statvfs="yes"], [have_statvfs="no"])
308 AC_CHECK_FUNCS(getifaddrs, [have_getifaddrs="yes"], [have_getifaddrs="no"])
309 AC_CHECK_FUNCS(syslog, [have_syslog="yes"], [have_syslog="no"])
310 AC_CHECK_FUNCS(getutent, [have_getutent="yes"], [have_getutent="no"])
311 AC_CHECK_FUNCS(getutxent, [have_getutxent="yes"], [have_getutxent="no"])
314 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
317 AC_ARG_WITH(nan-emulation, [AS_HELP_STRING([--with-nan-emulation], [use emulated NAN. For crosscompiling only.])],
319 if test "x$withval" = "xno"; then
321 else if test "x$withval" = "xyes"; then
328 if test "x$nan_type" = "xnone"; then
329 AC_CACHE_CHECK([whether NAN is defined by default],
336 static float foo = NAN;
344 [have_nan_default="yes"],
345 [have_nan_default="no"]
348 if test "x$have_nan_default" = "xyes"
353 if test "x$nan_type" = "xnone"; then
354 AC_CACHE_CHECK([whether NAN is defined by __USE_ISOC99],
360 #define __USE_ISOC99 1
362 static float foo = NAN;
370 [have_nan_isoc="yes"],
374 if test "x$have_nan_isoc" = "xyes"
379 if test "x$nan_type" = "xnone"; then
380 AC_CACHE_CHECK([whether NAN can be defined by 0/0],
390 #define NAN (0.0 / 0.0)
392 # define isnan(f) ((f) != (f))
394 static float foo = NAN;
402 [have_nan_zero="yes"],
406 if test "x$have_nan_zero" = "xyes"
412 if test "x$nan_type" = "xdefault"; then
413 AC_DEFINE(NAN_STATIC_DEFAULT, 1,
414 [Define if NAN is defined by default and can initialize static variables.])
415 else if test "x$nan_type" = "xisoc99"; then
416 AC_DEFINE(NAN_STATIC_ISOC, 1,
417 [Define if NAN is defined by __USE_ISOC99 and can initialize static variables.])
418 else if test "x$nan_type" = "xzero"; then
419 AC_DEFINE(NAN_ZERO_ZERO, 1,
420 [Define if NAN can be defined as (0.0 / 0.0)])
422 AC_MSG_ERROR([Didn't find out how to statically initialize variables to NAN. Sorry.])
425 # For mount interface
426 #AC_CHECK_FUNCS(getfsent getvfsent)
429 AC_CHECK_FUNCS(getfsstat, [have_getfsstat="yes"])
431 AC_CHECK_FUNCS(getvfsstat, [have_getvfsstat="yes"])
433 AC_CHECK_FUNCS(listmntent, [have_listmntent="yes"])
436 AC_CHECK_FUNCS(getmntent, [have_getmntent="c"])
437 if test "x$have_getmntent" = "xno"; then
438 AC_CHECK_LIB(sun, getmntent, [have_getmntent="sun"])
440 if test "x$have_getmntent" = "xno"; then
441 AC_CHECK_LIB(seq, getmntent, [have_getmntent="seq"])
443 if test "x$have_getmntent" = "xno"; then
444 AC_CHECK_LIB(gen, getmntent, [have_getmntent="gen"])
447 if test "x$have_getmntent" = "xc"; then
448 AC_CACHE_CHECK([whether getmntent takes one argument],
449 [have_one_getmntent],
451 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
453 #include "$srcdir/src/utils_mount.h"]],
457 fh = setmntent ("/etc/mtab", "r");
461 [have_one_getmntent="yes"],
462 [have_one_getmntent="no"]
465 AC_CACHE_CHECK([whether getmntent takes two arguments],
466 [have_two_getmntent],
468 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
469 #include <sys/mnttab.h>
470 #include "$srcdir/src/utils_mount.h"]],
475 fh = fopen ("/etc/mnttab", "r");
476 status = getmntent (fh, &mt);
479 [have_two_getmntent="yes"],
480 [have_two_getmntent="no"]
485 # Check for different versions of `getmntent' here..
487 if test "x$have_getmntent" = "xc"; then
488 if test "x$have_one_getmntent" = "xyes"; then
489 AC_DEFINE(HAVE_ONE_GETMNTENT, 1,
490 [Define if the function getmntent exists and takes one argument.])
492 if test "x$have_two_getmntent" = "xyes"; then
493 AC_DEFINE(HAVE_TWO_GETMNTENT, 1,
494 [Define if the function getmntent exists and takes two arguments.])
497 if test "x$have_getmntent" = "xsun"; then
498 AC_DEFINE(HAVE_SUN_GETMNTENT, 1,
499 [Define if the function getmntent exists. It's the version from libsun.])
501 if test "x$have_getmntent" = "xseq"; then
502 AC_DEFINE(HAVE_SEQ_GETMNTENT, 1,
503 [Define if the function getmntent exists. It's the version from libseq.])
505 if test "x$have_getmntent" = "xgen"; then
506 AC_DEFINE(HAVE_GEN_GETMNTENT, 1,
507 [Define if the function getmntent exists. It's the version from libgen.])
510 # Check for structures
511 AC_CHECK_MEMBERS([struct if_data.ifi_ibytes, struct if_data.ifi_opackets, struct if_data.ifi_ierrors],
512 [AC_DEFINE(HAVE_STRUCT_IF_DATA, 1, [Define if struct if_data exists and is usable.])],
515 #include <sys/types.h>
516 #include <sys/socket.h>
519 AC_CHECK_MEMBERS([struct net_device_stats.rx_bytes, struct net_device_stats.tx_packets, struct net_device_stats.rx_errors],
520 [AC_DEFINE(HAVE_STRUCT_NET_DEVICE_STATS, 1, [Define if struct net_device_stats exists and is usable.])],
523 #include <sys/types.h>
524 #include <sys/socket.h>
525 #include <linux/if.h>
526 #include <linux/netdevice.h>
529 AC_CHECK_MEMBERS([struct udphdr.uh_dport, struct udphdr.uh_sport], [], [],
534 # include <sys/types.h>
536 #if HAVE_NETINET_IN_SYSTM_H
537 # include <netinet/in_systm.h>
539 #if HAVE_NETINET_IN_H
540 # include <netinet/in.h>
542 #if HAVE_NETINET_IP_H
543 # include <netinet/ip.h>
545 #if HAVE_NETINET_UDP_H
546 # include <netinet/udp.h>
549 AC_CHECK_MEMBERS([struct udphdr.dest, struct udphdr.source], [], [],
554 # include <sys/types.h>
556 #if HAVE_NETINET_IN_SYSTM_H
557 # include <netinet/in_systm.h>
559 #if HAVE_NETINET_IN_H
560 # include <netinet/in.h>
562 #if HAVE_NETINET_IP_H
563 # include <netinet/ip.h>
565 #if HAVE_NETINET_UDP_H
566 # include <netinet/udp.h>
570 AC_CHECK_MEMBERS([kstat_io_t.nwritten, kstat_io_t.writes, kstat_io_t.nwrites, kstat_io_t.wtime],
579 AC_MSG_CHECKING([for kernel type ($host_os)])
582 AC_DEFINE([KERNEL_LINUX], 1, [True if program is to be compiled for a Linux kernel])
586 AC_DEFINE([KERNEL_SOLARIS], 1, [True if program is to be compiled for a Solaris kernel])
592 AC_MSG_RESULT([$ac_system])
595 AC_CHECK_LIB(resolv, res_search,
597 AC_DEFINE(HAVE_LIBRESOLV, 1, [Define to 1 if you have the 'resolv' library (-lresolv).])
599 [with_libresolv="no"])
600 AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes")
603 m4_divert_once([HELP_WITH], [
604 collectd additional packages:])
606 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
607 AC_ARG_WITH(rrdtool, [AS_HELP_STRING([--with-rrdtool@<:@=PREFIX@:>@], [Path to rrdtool.])],
608 [ if test "x$withval" != "xno" && test "x$withval" != "xyes"
610 LDFLAGS="$LDFLAGS -L$withval/lib"
611 CPPFLAGS="$CPPFLAGS -I$withval/include"
614 ], [with_rrdtool="yes"])
615 if test "x$with_rrdtool" = "xyes"
617 AC_CHECK_LIB(rrd, rrd_update,
619 AC_DEFINE(HAVE_LIBRRD, 1, [Define to 1 if you have the rrd library (-lrrd).])
621 [with_rrdtool="no (librrd not found)"], [-lm])
623 if test "x$with_rrdtool" = "xyes"
625 AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no (rrd.h not found)"])
627 if test "x$with_rrdtool" = "xyes"
633 AC_DEFINE_UNQUOTED(COLLECT_RRDTOOL, [$collect_rrdtool],
634 [Wether or not to use rrdtool library])
635 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
637 AC_ARG_WITH(libpthread, [AS_HELP_STRING([--with-libpthread=@<:@=PREFIX@:>@], [Path to libpthread.])],
638 [ if test "x$withval" != "xno" -a "x$withval" != "xyes"
640 LDFLAGS="$LDFLAGS -L$withval/lib"
641 CPPFLAGS="$CPPFLAGS -I$withval/include"
642 with_libpthread="yes"
644 if test "x$withval" = "xno"
646 with_libpthread="no (disabled)"
649 ], [with_libpthread="yes"])
650 if test "x$with_libpthread" = "xyes"
652 AC_CHECK_LIB(pthread, pthread_create, [with_libpthread="yes"], [with_libpthread="no (libpthread not found)"], [])
654 if test "x$with_libpthread" = "xyes"
656 AC_CHECK_HEADERS(pthread.h,, [with_libpthread="no (pthread.h not found)"])
658 if test "x$with_libpthread" = "xyes"
664 AC_DEFINE_UNQUOTED(HAVE_LIBPTHREAD, [$collect_pthread],
665 [Wether or not to use pthread (POSIX threads) library])
666 AM_CONDITIONAL(BUILD_WITH_LIBPTHREAD, test "x$with_libpthread" = "xyes")
668 if test "$ac_system" = "Solaris"
673 with_kstat="no (Solaris only)"
674 with_devinfo="no (Solaris only)"
677 if test "x$with_kstat" = "xyes"
679 AC_CHECK_LIB(kstat, kstat_open, [with_kstat="yes"], [with_kstat="no (libkstat not found)"], [])
681 if test "x$with_kstat" = "xyes"
683 AC_CHECK_LIB(devinfo, di_init, [with_devinfo="yes"], [with_devinfo="no (not found)"], [])
684 AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
686 if test "x$with_kstat" = "xyes"
688 AC_DEFINE(HAVE_LIBKSTAT, 1,
689 [Define to 1 if you have the 'kstat' library (-lkstat)])
691 AM_CONDITIONAL(BUILD_WITH_LIBKSTAT, test "x$with_kstat" = "xyes")
692 AM_CONDITIONAL(BUILD_WITH_LIBDEVINFO, test "x$with_devinfo" = "xyes")
694 ### BEGIN of check for libcurl ###
695 with_curl_config="curl-config"
698 AC_ARG_WITH(libcurl, [AS_HELP_STRING([--with-libcurl@<:@=PREFIX@:>@], [Path to libcurl.])],
700 if test "x$withval" != "xno" -a "x$withval" != "xyes"
702 if test -x "$withval/bin/curl-config"
704 with_curl_config="$withval/bin/curl-config"
708 if test "x$withval" = "xno"
718 if test "x$with_libcurl" = "xyes"
720 with_curl_libs=`$with_curl_config --libs 2>/dev/null`
721 curl_config_status=$?
723 if test $curl_config_status -ne 0
727 AC_CHECK_LIB(curl, curl_easy_init,
729 BUILD_WITH_LIBCURL_LIBS="$with_curl_libs"
730 AC_SUBST(BUILD_WITH_LIBCURL_LIBS)
738 if test "x$with_libcurl" = "xyes" -a $with_curl_prefix -ne 0
740 with_curl_prefix=`$with_curl_config --libs 2>/dev/null`
741 curl_config_status=$?
743 if test $curl_config_status -ne 0
747 if test -d "$with_curl_prefix/include"
749 CPPFLAGS="$CPPFLAGS -I$with_curl_prefix/include"
754 with_libcurl_numeric=0
755 if test "x$with_libcurl" = "xyes"
757 with_libcurl_numeric=1
759 AC_DEFINE_UNQUOTED(HAVE_LIBCURL, [$with_libcurl_numeric], [Define to 1 if you have the 'curl' library (-lcurl).])
760 AM_CONDITIONAL(BUILD_WITH_LIBCURL, test "x$with_libcurl" = "xyes")
761 ### END of check for libcurl ###
765 AC_CHECK_LIB(IOKit, IOServiceGetMatchingServices,
774 AC_DEFINE_UNQUOTED(COLLECT_LIBIOKIT, [$collect_libiokit], [Wether or not to use the IOKit library])
775 AM_CONDITIONAL(BUILD_WITH_LIBIOKIT, test "x$with_libiokit" = "xyes")
777 with_libstatgrab="yes"
779 AC_ARG_WITH(libstatgrab, [AS_HELP_STRING([--with-libstatgrab@<:@=PREFIX@:>@], [Path to libstatgrab.])],
781 if test "x$withval" != "xno" -a "x$withval" != "xyes"
783 LDFLAGS="$LDFLAGS -L$withval/lib"
784 CPPFLAGS="$CPPFLAGS -I$withval/include"
785 with_libstatgrab="yes"
789 if test "x$ac_system" == "xunknown"
791 with_libstatgrab="yes"
793 with_libstatgrab="no"
796 if test "x$with_libstatgrab" = "xyes"
798 AC_CHECK_LIB(statgrab, sg_init, [with_libstatgrab="yes"], [with_libstatgrab="no (libstatgrab not found)"])
800 if test "x$with_libstatgrab" = "xyes"
802 AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (statgrab.h not found)"])
804 if test "x$with_libstatgrab" = "xyes"
806 AC_CHECK_LIB(devstat, getdevs, [with_libdevstat="yes"], [with_libdevstat="no"])
808 if test "x$with_libstatgrab" = "xyes"
810 collect_libstatgrab=1
812 collect_libstatgrab=0
814 AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
815 [Wether or not to use statgrab library])
816 AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
817 AM_CONDITIONAL(BUILD_WITH_LIBDEVSTAT, test "x$with_libdevstat" = "xyes")
819 AC_CHECK_LIB(kvm, kvm_getswapinfo, [with_libkvm="yes"], [with_libkvm="no"])
820 if test "x$with_libkvm" = "xyes"
822 AC_DEFINE(HAVE_LIBKVM, 1, [Define to 1 if you have the 'kvm' library (-lkvm)])
824 AM_CONDITIONAL(BUILD_WITH_LIBKVM, test "x$with_libkvm" = "xyes")
826 AC_ARG_WITH(lm-sensors, [AS_HELP_STRING([--with-lm-sensors@<:@=PREFIX@:>@], [Path to lm_sensors.])],
828 if test "x$withval" != "xno" && test "x$withval" != "xyes"
830 LDFLAGS="$LDFLAGS -L$withval/lib"
831 CPPFLAGS="$CPPFLAGS -I$withval/include"
832 with_lm_sensors="yes"
836 if test "x$ac_system" = "xLinux"
838 with_lm_sensors="yes"
843 if test "x$with_lm_sensors" = "xyes"
845 AC_CHECK_LIB(sensors, sensors_init,
847 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
849 [with_lm_sensors="no (libsensors not found)"])
851 if test "x$with_lm_sensors" = "xyes"
853 AC_CHECK_HEADERS(sensors/sensors.h,
855 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
857 [with_lm_sensors="no (sensors/sensors.h not found)"])
859 if test "x$with_lm_sensors" = "xyes"
865 AC_DEFINE_UNQUOTED(COLLECT_LM_SENSORS, [$collect_lm_sensors],
866 [Wether or not to use sensors library])
867 AM_CONDITIONAL(BUILD_WITH_LM_SENSORS, test "x$with_lm_sensors" = "xyes")
869 AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to libmysql.])],
871 if test "x$withval" != "xno" && test "x$withval" != "xyes"
873 LDFLAGS="$LDFLAGS -L$withval/lib"
874 CPPFLAGS="$CPPFLAGS -I$withval/include"
881 if test "x$with_libmysql" = "xyes"
883 AC_CHECK_LIB(mysqlclient, mysql_init,
885 AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1, [Define to 1 if you have the mysqlclient library (-lmysqlclient).])
886 ], [with_libmysql="no (libmysql not found)"])
888 if test "x$with_libmysql" = "xyes"
890 AC_CHECK_HEADERS(mysql/mysql.h,
892 AC_DEFINE(HAVE_MYSQL_MYSQL_H, 1, [Define to 1 if you have the <mysql/mysql.h> header file.])
893 ], [with_libmysql="no (mysql/mysql.h not found)"])
895 if test "x$with_libmysql" = "xyes"
901 AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libmysql],
902 [Wether or not to use mysql library])
903 AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libmysql" = "xyes")
905 with_own_liboconfig="no"
906 liboconfig_LDFLAGS="$LDFLAGS"
907 liboconfig_CPPFLAGS="$CPPFLAGS"
908 AC_ARG_WITH(liboconfig, [AS_HELP_STRING([--with-liboconfig@<:@=PREFIX@:>@], [Path to liboconfig.])],
910 if test "x$withval" != "xno" && test "x$withval" != "xyes"
912 if test -d "$withval/lib"
914 liboconfig_LDFLAGS="$LDFLAGS -L$withval/lib"
916 if test -d "$withval/include"
918 liboconfig_CPPFLAGS="$CPPFLAGS -I$withval/include"
921 if test "x$withval" = "xno"
923 AC_MSG_ERROR("liboconfig is required")
927 with_liboconfig="yes"
930 save_LDFLAGS="$LDFLAGS"
931 save_CPPFLAGS="$CPPFLAGS"
932 LDFLAGS="$liboconfig_LDFLAGS"
933 CPPFLAGS="$liboconfig_CPPFLAGS"
934 AC_CHECK_LIB(oconfig, oconfig_parse_fh,
936 with_liboconfig="yes"
937 with_own_liboconfig="no"
940 with_liboconfig="yes"
941 with_own_liboconfig="yes"
942 LDFLAGS="$save_LDFLAGS"
943 CPPFLAGS="$save_CPPFLAGS"
946 AM_CONDITIONAL(BUILD_WITH_OWN_LIBOCONFIG, test "x$with_own_liboconfig" = "xyes")
947 if test "x$with_own_liboconfig" = "xyes"
949 with_liboconfig="yes (shipped version)"
953 with_own_liboping="no"
954 liboping_LDFLAGS="$LDFLAGS"
955 liboping_CPPFLAGS="$CPPFLAGS"
956 AC_ARG_WITH(liboping, [AS_HELP_STRING([--with-liboping@<:@=PREFIX@:>@], [Path to liboping.])],
958 if test "x$withval" != "xno" && test "x$withval" != "xyes"
960 if test -d "$withval/lib"
962 liboping_LDFLAGS="$LDFLAGS -L$withval/lib"
964 if test -d "$withval/include"
966 liboping_CPPFLAGS="$CPPFLAGS -I$withval/include"
969 if test "x$withval" = "xno"
972 with_own_liboping="no"
980 if test "x$with_liboping" = "xyes"
982 save_LDFLAGS="$LDFLAGS"
983 save_CPPFLAGS="$CPPFLAGS"
984 LDFLAGS="$liboping_LDFLAGS"
985 CPPFLAGS="$liboping_CPPFLAGS"
986 AC_CHECK_LIB(oping, ping_construct,
989 with_own_liboping="no"
993 with_own_liboping="yes"
994 LDFLAGS="$save_LDFLAGS"
995 CPPFLAGS="$save_CPPFLAGS"
998 AM_CONDITIONAL(BUILD_WITH_LIBOPING, test "x$with_liboping" = "xyes")
999 AM_CONDITIONAL(BUILD_WITH_OWN_LIBOPING, test "x$with_own_liboping" = "xyes")
1001 AC_ARG_WITH(libpcap, [AS_HELP_STRING([--with-libpcap@<:@=PREFIX@:>@], [Path to libpcap.])],
1003 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1005 LDFLAGS="$LDFLAGS -L$withval/lib"
1006 CPPFLAGS="$CPPFLAGS -I$withval/include"
1013 if test "x$with_libpcap" = "xyes"
1015 AC_CHECK_LIB(pcap, pcap_open_live,
1017 AC_DEFINE(HAVE_LIBPCAP, 1, [Define to 1 if you have the pcap library (-lpcap).])
1018 ], [with_libpcap="no (libpcap not found)"])
1020 if test "x$with_libpcap" = "xyes"
1022 AC_CHECK_HEADERS(pcap.h,
1024 AC_DEFINE(HAVE_PCAP_H, 1, [Define to 1 if you have the <pcap.h> header file.])
1025 ], [with_libpcap="no (pcap.h not found)"])
1027 if test "x$with_libpcap" = "xyes"
1033 AC_DEFINE_UNQUOTED(COLLECT_LIBPCAP, [$collect_libpcap],
1034 [Wether or not to use the pcap library])
1035 AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes")
1037 perl_interpreter="perl"
1038 AC_ARG_WITH(libperl, [AS_HELP_STRING([--with-libperl@<:@=PREFIX@:>@], [Path to libperl.])],
1040 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1042 LDFLAGS="$LDFLAGS -L$withval/lib"
1043 CPPFLAGS="$CPPFLAGS -I$withval/include"
1044 perl_interpreter="$withval/bin/perl"
1051 if test "x$with_libperl" = "xyes"
1054 SAVE_LDFLAGS=$LDFLAGS
1055 PERL_CFLAGS=`$perl_interpreter -MExtUtils::Embed -e ccopts`
1056 PERL_LDFLAGS=`$perl_interpreter -MExtUtils::Embed -e ldopts`
1057 CFLAGS="$CFLAGS $PERL_CFLAGS"
1058 LDFLAGS="$LDFLAGS $PERL_LDFLAGS"
1060 AC_CACHE_CHECK([for libperl],
1070 PerlInterpreter *perl = NULL;
1071 Perl_load_module (perl, PERL_LOADMOD_NOIMPORT,
1072 newSVpv ("Collectd::Plugin::FooBar", 24),
1075 [have_libperl="yes"],
1080 if test "x$have_libperl" = "xyes"
1082 AC_DEFINE(HAVE_LIBPERL, 1, [Define if libperl is present and usable.])
1083 AC_SUBST(PERL_CFLAGS)
1084 AC_SUBST(PERL_LDFLAGS)
1090 LDFLAGS=$SAVE_LDFLAGS
1092 AM_CONDITIONAL(BUILD_WITH_LIBPERL, test "x$with_libperl" = "xyes")
1094 AC_ARG_WITH(libiptc, [AS_HELP_STRING([--with-libiptc@<:@=PREFIX@:>@], [Path to libiptc.])],
1096 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1098 LDFLAGS="$LDFLAGS -L$withval/lib"
1099 CPPFLAGS="$CPPFLAGS -I$withval/include"
1104 if test "x$ac_system" = "xLinux"
1108 with_libiptc="no (Linux only)"
1111 if test "x$with_libiptc" = "xyes"
1113 AC_CHECK_LIB(iptc, iptc_init,
1115 AC_DEFINE(HAVE_LIBIPTC, 1, [Define to 1 if you have the iptc library (-liptc).])
1116 ], [with_libiptc="no (libiptc not found)"])
1118 if test "x$with_libiptc" = "xyes"
1120 AC_CHECK_HEADERS(libiptc/libiptc.h,
1122 AC_DEFINE(HAVE_LIBIPTC_LIBIPTC_H, 1, [Define to 1 if you have the <libiptc/libiptc.h> header file.])
1123 ], [with_libiptc="no (libiptc/libiptc.h not found)"])
1125 if test "x$with_libiptc" = "xyes"
1131 AM_CONDITIONAL(BUILD_WITH_LIBIPTC, test "x$with_libiptc" = "xyes")
1133 AC_ARG_WITH(libnetsnmp, [AS_HELP_STRING([--with-libnetsnmp@<:@=PREFIX@:>@], [Path to the Net-SNMPD library.])],
1135 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1137 LDFLAGS="$LDFLAGS -L$withval/lib"
1138 CPPFLAGS="$CPPFLAGS -I$withval/include"
1139 with_libnetsnmp="yes"
1142 [with_libnetsnmp="yes"])
1143 if test "x$with_libnetsnmp" = "xyes"
1145 AC_CHECK_LIB(netsnmp, init_snmp,
1147 AC_DEFINE(HAVE_LIBSNMP, 1, [Define to 1 if you have the Net-SNMP library (-lnetsnmp).])
1148 ], [with_libnetsnmp="no (libnetsnmp not found)"])
1150 if test "x$with_libnetsnmp" = "xyes"
1152 AC_CHECK_HEADERS(net-snmp/net-snmp-config.h,
1154 AC_DEFINE(HAVE_NET_SNMP_NET_SNMP_CONFIG_H, 1, [Define to 1 if you have the <net-snmp/net-snmp-config.h> header file.])
1155 ], [with_libnetsnmp="no (net-snmp/net-snmp-config.h not found)"])
1157 AM_CONDITIONAL(BUILD_WITH_LIBNETSNMP, test "x$with_libnetsnmp" = "xyes")
1159 AC_ARG_WITH(libupsclient, [AS_HELP_STRING([--with-libupsclient@<:@=PREFIX@:>@], [Path to libupsclient.])],
1161 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1163 LDFLAGS="$LDFLAGS -L$withval/lib"
1164 CPPFLAGS="$CPPFLAGS -I$withval/include"
1165 with_libupsclient="yes"
1169 with_libupsclient="yes"
1171 if test "x$with_libupsclient" = "xyes"
1173 AC_CHECK_LIB(upsclient, upscli_connect,
1175 AC_DEFINE(HAVE_LIBUPSCLIENT, 1, [Define to 1 if you have the upsclient library (-lupsclient).])
1176 ], [with_libupsclient="no (libupsclient not found)"])
1178 if test "x$with_libupsclient" = "xyes"
1180 AC_CHECK_HEADERS(upsclient.h,
1182 AC_DEFINE(HAVE_UPSCLIENT_H, 1, [Define to 1 if you have the <upsclient.h> header file.])
1183 ], [with_libupsclient="no (upsclient.h not found)"])
1185 AM_CONDITIONAL(BUILD_WITH_LIBUPSCLIENT, test "x$with_libupsclient" = "xyes")
1187 ### BEGIN of check for libxmms ###
1188 with_xmms_config="xmms-config"
1192 AC_ARG_WITH(libxmms, [AS_HELP_STRING([--with-libxmms@<:@=PREFIX@:>@], [Path to libxmms.])],
1194 if test "x$withval" != "xno" -a "x$withval" != "xyes"
1196 if test -x "$withval/bin/xmms-config"
1198 with_xmms_config="$withval/bin/xmms-config"
1202 if test "x$withval" = "xno"
1212 if test "x$with_libxmms" = "xyes"
1214 with_xmms_cflags=`$with_xmms_config --cflags 2>/dev/null`
1215 xmms_config_status=$?
1217 if test $xmms_config_status -ne 0
1222 if test "x$with_libxmms" = "xyes"
1224 with_xmms_libs=`$with_xmms_config --libs 2>/dev/null`
1225 xmms_config_status=$?
1227 if test $xmms_config_status -ne 0
1232 if test "x$with_libxmms" = "xyes"
1234 AC_CHECK_LIB(xmms, xmms_remote_get_info,
1236 BUILD_WITH_LIBXMMS_CFLAGS="$with_xmms_cflags"
1237 BUILD_WITH_LIBXMMS_LIBS="$with_xmms_libs"
1238 AC_SUBST(BUILD_WITH_LIBXMMS_CFLAGS)
1239 AC_SUBST(BUILD_WITH_LIBXMMS_LIBS)
1246 with_libxmms_numeric=0
1247 if test "x$with_libxmms" = "xyes"
1249 with_libxmms_numeric=1
1251 AC_DEFINE_UNQUOTED(HAVE_LIBXMMS, [$with_libxmms_numeric], [Define to 1 if you have the 'xmms' library (-lxmms).])
1252 AM_CONDITIONAL(BUILD_WITH_LIBXMMS, test "x$with_libxmms" = "xyes")
1253 ### END of check for libxmms ###
1255 # Check for enabled/disabled features
1258 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
1259 # ------------------------------------------------------------
1261 m4_define([my_toupper], [m4_translit([$1], m4_defn([m4_cr_letters]), m4_defn([m4_cr_LETTERS]))])
1266 m4_if([$1], [], [AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 1st argument must not be empty])])dnl
1271 m4_define([EnDis],[disabled])dnl
1272 m4_define([YesNo],[no])dnl
1278 m4_define([EnDis],[enabled])dnl
1279 m4_define([YesNo],[yes])dnl
1282 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 2nd argument must be either enable or disable])dnl
1286 m4_if([$3], [feature], [],
1290 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 3rd argument must be either feature or disable])dnl
1296 AS_HELP_STRING([--$2-$1], [$2 $4 (EnDis by def)]),
1298 enable_$1='[YesNo]'dnl
1300 if test "x$enable_$1" = "xno"
1304 if test "x$enable_$1" = "xyes"
1308 AC_MSG_NOTICE([please specify either --enable-$1 or --disable-$1; enabling $1.])
1313 AC_DEFINE_UNQUOTED([COLLECT_]my_toupper([$1]), [$collectd_$1], [wether or not to enable $3 $4])
1314 AM_CONDITIONAL([BUILD_]my_toupper([$3])[_]my_toupper([$1]), [test "x$enable_$1" = "xyes"])dnl
1316 )# AC_COLLECTD(name, enable/disable, info-text, feature/module)
1318 # AC_PLUGIN(name, default, info)
1319 # ------------------------------------------------------------
1325 AC_ARG_ENABLE([$1], AC_HELP_STRING([--enable-$1], [$3]),
1327 if test "x$enableval" = "xyes"
1335 if test "x$2" = "xyes"
1342 if test "x$enable_plugin" = "xyes"
1344 AC_DEFINE([HAVE_PLUGIN_]my_toupper([$1]), 1, [Define to 1 if the $1 plugin is enabled.])
1346 AM_CONDITIONAL([BUILD_PLUGIN_]my_toupper([$1]), test "x$enable_plugin" = "xyes")
1347 enable_$1="$enable_plugin"
1349 )# AC_PLUGIN(name, default, info)
1351 m4_divert_once([HELP_ENABLE], [
1352 collectd features:])
1353 # FIXME: Remove these calls to `AC_COLLECTD' and then remove that macro.
1354 AC_COLLECTD([debug], [enable], [feature], [debugging])
1355 AC_COLLECTD([daemon], [disable], [feature], [daemon mode])
1356 AC_COLLECTD([getifaddrs],[enable], [feature], [getifaddrs under Linux])
1364 plugin_interface="no"
1369 plugin_processes="no"
1375 plugin_wireless="no"
1378 if test "x$ac_system" = "xLinux"
1380 plugin_battery="yes"
1382 plugin_cpufreq="yes"
1384 plugin_entropy="yes"
1385 plugin_interface="yes"
1390 plugin_processes="yes"
1393 plugin_vserver="yes"
1394 plugin_wireless="yes"
1398 if test "x$with_libiokit" = "xyes"
1400 plugin_battery="yes"
1405 if test "x$with_devinfo$with_kstat" = "xyesyes"
1409 plugin_interface="yes"
1416 if test "x$with_libstatgrab" = "xyes"
1418 plugin_interface="yes"
1424 if test "x$have_processor_info" = "xyes"
1428 if test "x$have_sysctlbyname" = "xyes"
1434 if test "x$have_statfs" = "xyes"
1438 if test "x$have_statvfs" = "xyes"
1443 if test "x$have_getifaddrs" = "xyes"
1445 plugin_interface="yes"
1448 if test "x$have_getloadavg" = "xyes"
1453 # Mac OS X memory interface
1454 if test "x$have_host_statistics" = "xyes"
1459 if test "x$have_thread_info" = "xyes"
1461 plugin_processes="yes"
1464 if test "x$with_libkvm" = "xyes"
1469 if test "x$have_getutent" = "xyes"
1473 if test "x$have_getutxent" = "xyes"
1478 # FIXME: sysctl for swap plugin
1480 m4_divert_once([HELP_ENABLE], [
1483 AC_PLUGIN([apache], [$with_libcurl], [Apache httpd statistics])
1484 AC_PLUGIN([apcups], [yes], [Statistics of UPSes by APC])
1485 AC_PLUGIN([apple_sensors], [$with_libiokit], [Apple's hardware sensors])
1486 AC_PLUGIN([battery], [$plugin_battery], [Battery statistics])
1487 AC_PLUGIN([cpu], [$plugin_cpu], [CPU usage statistics])
1488 AC_PLUGIN([cpufreq], [$plugin_cpufreq], [CPU frequency statistics])
1489 AC_PLUGIN([csv], [yes], [CSV output plugin])
1490 AC_PLUGIN([df], [$plugin_df], [Filesystem usage statistics])
1491 AC_PLUGIN([disk], [$plugin_disk], [Disk usage statistics])
1492 AC_PLUGIN([dns], [$with_libpcap], [DNS traffic analysis])
1493 AC_PLUGIN([email], [yes], [EMail statistics])
1494 AC_PLUGIN([entropy], [$plugin_entropy], [Entropy statistics])
1495 AC_PLUGIN([exec], [yes], [Execution of external programs])
1496 AC_PLUGIN([hddtemp], [yes], [Query hddtempd])
1497 AC_PLUGIN([interface], [$plugin_interface], [Interface traffic statistics])
1498 AC_PLUGIN([iptables], [$with_libiptc], [IPTables rule counters])
1499 AC_PLUGIN([irq], [$plugin_irq], [IRQ statistics])
1500 AC_PLUGIN([load], [$plugin_load], [System load])
1501 AC_PLUGIN([logfile], [yes], [File logging plugin])
1502 AC_PLUGIN([mbmon], [yes], [Query mbmond])
1503 AC_PLUGIN([memory], [$plugin_memory], [Memory usage])
1504 AC_PLUGIN([multimeter], [no], [Read multimeter values])
1505 AC_PLUGIN([mysql], [$with_libmysql], [MySQL statistics])
1506 AC_PLUGIN([network], [yes], [Network communication plugin])
1507 AC_PLUGIN([nfs], [$plugin_nfs], [NFS statistics])
1508 AC_PLUGIN([ntpd], [yes], [NTPd statistics])
1509 AC_PLUGIN([nut], [$with_libupsclient], [Network UPS tools statistics])
1510 AC_PLUGIN([perl], [$with_libperl], [Embed a Perl interpreter])
1511 AC_PLUGIN([ping], [$with_liboping], [Network latency statistics])
1512 AC_PLUGIN([processes], [$plugin_processes], [Process statistics])
1513 AC_PLUGIN([rrdtool], [$with_rrdtool], [RRDTool output plugin])
1514 AC_PLUGIN([sensors], [$with_lm_sensors], [lm_sensors statistics])
1515 AC_PLUGIN([serial], [$plugin_serial], [serial port traffic])
1516 AC_PLUGIN([snmp], [$with_libnetsnmp], [SNMP querying plugin])
1517 AC_PLUGIN([swap], [$plugin_swap], [Swap usage statistics])
1518 AC_PLUGIN([syslog], [$have_syslog], [Syslog logging plugin])
1519 AC_PLUGIN([tape], [$plugin_tape], [Tape drive statistics])
1520 AC_PLUGIN([unixsock], [yes], [Unixsock communication plugin])
1521 AC_PLUGIN([users], [$plugin_users], [User statistics])
1522 AC_PLUGIN([vserver], [$plugin_vserver], [Linux VServer statistics])
1523 AC_PLUGIN([wireless], [$plugin_wireless], [Wireless statistics])
1524 AC_PLUGIN([xmms], [$with_libxmms], [XMMS statistics])
1526 AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/liboconfig/Makefile src/liboping/Makefile)
1528 if test "x$with_liboping" = "xyes" -a "x$with_own_liboping" = "xyes"
1530 with_liboping="yes (shipped version)"
1533 if test "x$with_libperl" = "xyes"
1535 with_libperl="yes (version `perl -MConfig -e 'print $Config{version};'`)"
1537 enable_perl="no (needs libperl)"
1544 libcurl . . . . . . $with_libcurl
1545 libiokit . . . . . $with_libiokit
1546 libiptc . . . . . . $with_libiptc
1547 libkstat . . . . . $with_kstat
1548 libkvm . . . . . . $with_libkvm
1549 libmysql . . . . . $with_libmysql
1550 libnetsnmp . . . . $with_libnetsnmp
1551 liboconfig . . . . $with_liboconfig
1552 liboping . . . . . $with_liboping
1553 libpcap . . . . . . $with_libpcap
1554 libperl . . . . . . $with_libperl
1555 libpthread . . . . $with_libpthread
1556 librrd . . . . . . $with_rrdtool
1557 libsensors . . . . $with_lm_sensors
1558 libstatgrab . . . . $with_libstatgrab
1559 libupsclient . . . $with_libupsclient
1560 libxmms . . . . . . $with_libxmms
1563 daemon mode . . . . $enable_daemon
1564 debug . . . . . . . $enable_debug
1567 apache . . . . . . $enable_apache
1568 apcups . . . . . . $enable_apcups
1569 apple_sensors . . . $enable_apple_sensors
1570 battery . . . . . . $enable_battery
1571 cpu . . . . . . . . $enable_cpu
1572 cpufreq . . . . . . $enable_cpufreq
1573 csv . . . . . . . . $enable_csv
1574 df . . . . . . . . $enable_df
1575 disk . . . . . . . $enable_disk
1576 dns . . . . . . . . $enable_dns
1577 email . . . . . . . $enable_email
1578 entropy . . . . . . $enable_entropy
1579 exec . . . . . . . $enable_exec
1580 hddtemp . . . . . . $enable_hddtemp
1581 interface . . . . . $enable_interface
1582 iptables . . . . . $enable_iptables
1583 irq . . . . . . . . $enable_irq
1584 load . . . . . . . $enable_load
1585 logfile . . . . . . $enable_logfile
1586 mbmon . . . . . . . $enable_mbmon
1587 memory . . . . . . $enable_memory
1588 multimeter . . . . $enable_multimeter
1589 mysql . . . . . . . $enable_mysql
1590 network . . . . . . $enable_network
1591 nfs . . . . . . . . $enable_nfs
1592 ntpd . . . . . . . $enable_ntpd
1593 nut . . . . . . . . $enable_nut
1594 perl . . . . . . . $enable_perl
1595 ping . . . . . . . $enable_ping
1596 processes . . . . . $enable_processes
1597 sensors . . . . . . $enable_sensors
1598 serial . . . . . . $enable_serial
1599 snmp . . . . . . . $enable_snmp
1600 swap . . . . . . . $enable_swap
1601 syslog . . . . . . $enable_syslog
1602 tape . . . . . . . $enable_tape
1603 unixsock . . . . . $enable_unixsock
1604 users . . . . . . . $enable_users
1605 vserver . . . . . . $enable_vserver
1606 wireless . . . . . $enable_wireless
1607 xmms . . . . . . . $enable_xmms