1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 4.0.5)
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 sys/ioctl.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/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)
178 AC_CHECK_HEADERS(sys/sysctl.h, [], [],
181 # include <sys/types.h>
184 # include <sys/param.h>
189 AC_CHECK_HEADERS(linux/major.h libgen.h)
191 # For the apple_sensors module
192 AC_CHECK_HEADERS(CoreFoundation/CoreFoundation.h IOKit/IOKitLib.h IOKit/IOTypes.h IOKit/ps/IOPSKeys.h IOKit/IOBSD.h IOKit/storage/IOBlockStorageDriver.h)
194 # For the battery plugin
195 AC_CHECK_HEADERS(IOKit/ps/IOPowerSources.h, [], [],
197 #if HAVE_IOKIT_IOKITLIB_H
198 # include <IOKit/IOKitLib.h>
200 #if HAVE_IOKIT_IOTYPES_H
201 # include <IOKit/IOTypes.h>
205 # For the swap module
206 AC_CHECK_HEADERS(sys/swap.h, [], [],
209 # include <sys/types.h>
212 # include <sys/param.h>
217 # For the processes plugin
219 AC_CHECK_HEADERS(sys/loadavg.h linux/config.h utmp.h utmpx.h)
221 # For interface plugin
222 AC_CHECK_HEADERS(ifaddrs.h)
223 AC_CHECK_HEADERS(net/if.h, [], [],
226 # include <sys/types.h>
228 #if HAVE_SYS_SOCKET_H
229 # include <sys/socket.h>
232 AC_CHECK_HEADERS(linux/if.h, [], [],
235 # include <sys/types.h>
237 #if HAVE_SYS_SOCKET_H
238 # include <sys/socket.h>
241 AC_CHECK_HEADERS(linux/netdevice.h, [], [],
244 # include <sys/types.h>
246 #if HAVE_SYS_SOCKET_H
247 # include <sys/socket.h>
250 # include <linux/if.h>
255 AC_CHECK_HEADERS(sys/ucred.h, [], [],
258 # include <sys/types.h>
261 # include <sys/param.h>
265 # For mount interface
266 AC_CHECK_HEADERS(sys/mount.h, [], [],
269 # include <sys/types.h>
272 # include <sys/param.h>
276 # For the email plugin
277 AC_CHECK_HEADERS(linux/un.h, [], [],
279 #if HAVE_SYS_SOCKET_H
280 # include <sys/socket.h>
284 AC_CHECK_HEADERS(curl/curl.h pwd.h grp.h sys/un.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/statfs.h sys/statvfs.h sys/vfs.h sys/vfstab.h kvm.h)
287 AC_CHECK_HEADERS(arpa/nameser.h)
288 AC_CHECK_HEADERS(arpa/nameser_compat.h, [], [],
290 #if HAVE_ARPA_NAMESER_H
291 # include <arpa/nameser.h>
295 AC_CHECK_HEADERS(net/if_arp.h, [], [],
296 [#if HAVE_SYS_SOCKET_H
297 # include <sys/socket.h>
300 AC_CHECK_HEADERS(net/ppp_defs.h)
301 AC_CHECK_HEADERS(net/if_ppp.h, [], [],
302 [#if HAVE_NET_PPP_DEFS_H
303 # include <net/ppp_defs.h>
306 AC_CHECK_HEADERS(netinet/if_ether.h, [], [],
311 # include <sys/types.h>
313 #if HAVE_SYS_SOCKET_H
314 # include <sys/socket.h>
319 #if HAVE_NETINET_IN_H
320 # include <netinet/in.h>
324 # For the multimeter plugin
326 AC_CHECK_HEADERS(termios.h, [have_termios_h="yes"])
329 # Checking for libraries
334 # Checks for typedefs, structures, and compiler characteristics.
343 # Checks for library functions.
345 AC_PROG_GCC_TRADITIONAL
346 AC_CHECK_FUNCS(gettimeofday select strdup strtol getaddrinfo getnameinfo strchr memcpy strstr strcmp strncmp strncpy strlen strncasecmp strcasecmp openlog closelog)
348 AC_CHECK_FUNCS(getpwnam_r)
349 AC_CHECK_FUNCS(getgrnam_r)
351 socket_needs_socket="no"
352 AC_CHECK_FUNCS(socket, [], AC_CHECK_LIB(socket, socket, [socket_needs_socket="yes"], AC_MSG_ERROR(cannot find socket)))
353 AM_CONDITIONAL(BUILD_WITH_LIBSOCKET, test "x$socket_needs_socket" = "xyes")
355 nanosleep_needs_rt="no"
356 AC_CHECK_FUNCS(nanosleep, [], AC_CHECK_LIB(rt, nanosleep, [nanosleep_needs_rt="yes"], AC_MSG_ERROR(cannot find nanosleep)))
357 AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
359 AC_CHECK_FUNCS(regcomp regerror regexec regfree)
361 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
362 AC_CHECK_FUNCS(host_statistics, [have_host_statistics="yes"], [have_host_statistics="no"])
363 AC_CHECK_FUNCS(processor_info, [have_processor_info="yes"], [have_processor_info="no"])
364 AC_CHECK_FUNCS(thread_info, [have_thread_info="yes"], [have_thread_info="no"])
365 AC_CHECK_FUNCS(statfs, [have_statfs="yes"], [have_statfs="no"])
366 AC_CHECK_FUNCS(statvfs, [have_statvfs="yes"], [have_statvfs="no"])
367 AC_CHECK_FUNCS(getifaddrs, [have_getifaddrs="yes"], [have_getifaddrs="no"])
368 AC_CHECK_FUNCS(syslog, [have_syslog="yes"], [have_syslog="no"])
369 AC_CHECK_FUNCS(getutent, [have_getutent="yes"], [have_getutent="no"])
370 AC_CHECK_FUNCS(getutxent, [have_getutxent="yes"], [have_getutxent="no"])
373 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
376 AC_ARG_WITH(nan-emulation, [AS_HELP_STRING([--with-nan-emulation], [use emulated NAN. For crosscompiling only.])],
378 if test "x$withval" = "xno"; then
380 else if test "x$withval" = "xyes"; then
387 if test "x$nan_type" = "xnone"; then
388 AC_CACHE_CHECK([whether NAN is defined by default],
395 static float foo = NAN;
403 [have_nan_default="yes"],
404 [have_nan_default="no"]
407 if test "x$have_nan_default" = "xyes"
412 if test "x$nan_type" = "xnone"; then
413 AC_CACHE_CHECK([whether NAN is defined by __USE_ISOC99],
419 #define __USE_ISOC99 1
421 static float foo = NAN;
429 [have_nan_isoc="yes"],
433 if test "x$have_nan_isoc" = "xyes"
438 if test "x$nan_type" = "xnone"; then
439 AC_CACHE_CHECK([whether NAN can be defined by 0/0],
449 #define NAN (0.0 / 0.0)
451 # define isnan(f) ((f) != (f))
453 static float foo = NAN;
461 [have_nan_zero="yes"],
465 if test "x$have_nan_zero" = "xyes"
471 if test "x$nan_type" = "xdefault"; then
472 AC_DEFINE(NAN_STATIC_DEFAULT, 1,
473 [Define if NAN is defined by default and can initialize static variables.])
474 else if test "x$nan_type" = "xisoc99"; then
475 AC_DEFINE(NAN_STATIC_ISOC, 1,
476 [Define if NAN is defined by __USE_ISOC99 and can initialize static variables.])
477 else if test "x$nan_type" = "xzero"; then
478 AC_DEFINE(NAN_ZERO_ZERO, 1,
479 [Define if NAN can be defined as (0.0 / 0.0)])
481 AC_MSG_ERROR([Didn't find out how to statically initialize variables to NAN. Sorry.])
484 # For mount interface
485 #AC_CHECK_FUNCS(getfsent getvfsent)
488 AC_CHECK_FUNCS(getfsstat, [have_getfsstat="yes"])
490 AC_CHECK_FUNCS(getvfsstat, [have_getvfsstat="yes"])
492 AC_CHECK_FUNCS(listmntent, [have_listmntent="yes"])
495 AC_CHECK_FUNCS(getmntent, [have_getmntent="c"])
496 if test "x$have_getmntent" = "xno"; then
497 AC_CHECK_LIB(sun, getmntent, [have_getmntent="sun"])
499 if test "x$have_getmntent" = "xno"; then
500 AC_CHECK_LIB(seq, getmntent, [have_getmntent="seq"])
502 if test "x$have_getmntent" = "xno"; then
503 AC_CHECK_LIB(gen, getmntent, [have_getmntent="gen"])
506 if test "x$have_getmntent" = "xc"; then
507 AC_CACHE_CHECK([whether getmntent takes one argument],
508 [have_one_getmntent],
510 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
512 #include "$srcdir/src/utils_mount.h"]],
516 fh = setmntent ("/etc/mtab", "r");
520 [have_one_getmntent="yes"],
521 [have_one_getmntent="no"]
524 AC_CACHE_CHECK([whether getmntent takes two arguments],
525 [have_two_getmntent],
527 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
528 #include <sys/mnttab.h>
529 #include "$srcdir/src/utils_mount.h"]],
534 fh = fopen ("/etc/mnttab", "r");
535 status = getmntent (fh, &mt);
538 [have_two_getmntent="yes"],
539 [have_two_getmntent="no"]
544 # Check for different versions of `getmntent' here..
546 if test "x$have_getmntent" = "xc"; then
547 if test "x$have_one_getmntent" = "xyes"; then
548 AC_DEFINE(HAVE_ONE_GETMNTENT, 1,
549 [Define if the function getmntent exists and takes one argument.])
551 if test "x$have_two_getmntent" = "xyes"; then
552 AC_DEFINE(HAVE_TWO_GETMNTENT, 1,
553 [Define if the function getmntent exists and takes two arguments.])
556 if test "x$have_getmntent" = "xsun"; then
557 AC_DEFINE(HAVE_SUN_GETMNTENT, 1,
558 [Define if the function getmntent exists. It's the version from libsun.])
560 if test "x$have_getmntent" = "xseq"; then
561 AC_DEFINE(HAVE_SEQ_GETMNTENT, 1,
562 [Define if the function getmntent exists. It's the version from libseq.])
564 if test "x$have_getmntent" = "xgen"; then
565 AC_DEFINE(HAVE_GEN_GETMNTENT, 1,
566 [Define if the function getmntent exists. It's the version from libgen.])
569 # Check for structures
570 AC_CHECK_MEMBERS([struct if_data.ifi_ibytes, struct if_data.ifi_opackets, struct if_data.ifi_ierrors],
571 [AC_DEFINE(HAVE_STRUCT_IF_DATA, 1, [Define if struct if_data exists and is usable.])],
574 #include <sys/types.h>
575 #include <sys/socket.h>
578 AC_CHECK_MEMBERS([struct net_device_stats.rx_bytes, struct net_device_stats.tx_packets, struct net_device_stats.rx_errors],
579 [AC_DEFINE(HAVE_STRUCT_NET_DEVICE_STATS, 1, [Define if struct net_device_stats exists and is usable.])],
582 #include <sys/types.h>
583 #include <sys/socket.h>
584 #include <linux/if.h>
585 #include <linux/netdevice.h>
588 AC_CHECK_MEMBERS([struct udphdr.uh_dport, struct udphdr.uh_sport], [], [],
593 # include <sys/types.h>
595 #if HAVE_NETINET_IN_SYSTM_H
596 # include <netinet/in_systm.h>
598 #if HAVE_NETINET_IN_H
599 # include <netinet/in.h>
601 #if HAVE_NETINET_IP_H
602 # include <netinet/ip.h>
604 #if HAVE_NETINET_UDP_H
605 # include <netinet/udp.h>
608 AC_CHECK_MEMBERS([struct udphdr.dest, struct udphdr.source], [], [],
613 # include <sys/types.h>
615 #if HAVE_NETINET_IN_SYSTM_H
616 # include <netinet/in_systm.h>
618 #if HAVE_NETINET_IN_H
619 # include <netinet/in.h>
621 #if HAVE_NETINET_IP_H
622 # include <netinet/ip.h>
624 #if HAVE_NETINET_UDP_H
625 # include <netinet/udp.h>
629 AC_CHECK_MEMBERS([kstat_io_t.nwritten, kstat_io_t.writes, kstat_io_t.nwrites, kstat_io_t.wtime],
638 AC_MSG_CHECKING([for kernel type ($host_os)])
641 AC_DEFINE([KERNEL_LINUX], 1, [True if program is to be compiled for a Linux kernel])
645 AC_DEFINE([KERNEL_SOLARIS], 1, [True if program is to be compiled for a Solaris kernel])
651 AC_MSG_RESULT([$ac_system])
654 AC_CHECK_LIB(resolv, res_search,
656 AC_DEFINE(HAVE_LIBRESOLV, 1, [Define to 1 if you have the 'resolv' library (-lresolv).])
658 [with_libresolv="no"])
659 AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes")
662 m4_divert_once([HELP_WITH], [
663 collectd additional packages:])
665 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
666 AC_ARG_WITH(rrdtool, [AS_HELP_STRING([--with-rrdtool@<:@=PREFIX@:>@], [Path to rrdtool.])],
667 [ if test "x$withval" != "xno" && test "x$withval" != "xyes"
669 LDFLAGS="$LDFLAGS -L$withval/lib"
670 CPPFLAGS="$CPPFLAGS -I$withval/include"
673 ], [with_rrdtool="yes"])
674 if test "x$with_rrdtool" = "xyes"
676 AC_CHECK_LIB(rrd, rrd_update,
678 AC_DEFINE(HAVE_LIBRRD, 1, [Define to 1 if you have the rrd library (-lrrd).])
680 [with_rrdtool="no (librrd not found)"], [-lm])
682 if test "x$with_rrdtool" = "xyes"
684 AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no (rrd.h not found)"])
686 if test "x$with_rrdtool" = "xyes"
692 AC_DEFINE_UNQUOTED(COLLECT_RRDTOOL, [$collect_rrdtool],
693 [Wether or not to use rrdtool library])
694 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
696 AC_ARG_WITH(libpthread, [AS_HELP_STRING([--with-libpthread=@<:@=PREFIX@:>@], [Path to libpthread.])],
697 [ if test "x$withval" != "xno" -a "x$withval" != "xyes"
699 LDFLAGS="$LDFLAGS -L$withval/lib"
700 CPPFLAGS="$CPPFLAGS -I$withval/include"
701 with_libpthread="yes"
703 if test "x$withval" = "xno"
705 with_libpthread="no (disabled)"
708 ], [with_libpthread="yes"])
709 if test "x$with_libpthread" = "xyes"
711 AC_CHECK_LIB(pthread, pthread_create, [with_libpthread="yes"], [with_libpthread="no (libpthread not found)"], [])
713 if test "x$with_libpthread" = "xyes"
715 AC_CHECK_HEADERS(pthread.h,, [with_libpthread="no (pthread.h not found)"])
717 if test "x$with_libpthread" = "xyes"
723 AC_DEFINE_UNQUOTED(HAVE_LIBPTHREAD, [$collect_pthread],
724 [Wether or not to use pthread (POSIX threads) library])
725 AM_CONDITIONAL(BUILD_WITH_LIBPTHREAD, test "x$with_libpthread" = "xyes")
727 if test "$ac_system" = "Solaris"
732 with_kstat="no (Solaris only)"
733 with_devinfo="no (Solaris only)"
736 if test "x$with_kstat" = "xyes"
738 AC_CHECK_LIB(kstat, kstat_open, [with_kstat="yes"], [with_kstat="no (libkstat not found)"], [])
740 if test "x$with_kstat" = "xyes"
742 AC_CHECK_LIB(devinfo, di_init, [with_devinfo="yes"], [with_devinfo="no (not found)"], [])
743 AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
745 if test "x$with_kstat" = "xyes"
747 AC_DEFINE(HAVE_LIBKSTAT, 1,
748 [Define to 1 if you have the 'kstat' library (-lkstat)])
750 AM_CONDITIONAL(BUILD_WITH_LIBKSTAT, test "x$with_kstat" = "xyes")
751 AM_CONDITIONAL(BUILD_WITH_LIBDEVINFO, test "x$with_devinfo" = "xyes")
753 ### BEGIN of check for libcurl ###
754 with_curl_config="curl-config"
757 AC_ARG_WITH(libcurl, [AS_HELP_STRING([--with-libcurl@<:@=PREFIX@:>@], [Path to libcurl.])],
759 if test "x$withval" != "xno" -a "x$withval" != "xyes"
761 if test -x "$withval/bin/curl-config"
763 with_curl_config="$withval/bin/curl-config"
767 if test "x$withval" = "xno"
777 if test "x$with_libcurl" = "xyes"
779 with_curl_libs=`$with_curl_config --libs 2>/dev/null`
780 curl_config_status=$?
782 if test $curl_config_status -ne 0
786 AC_CHECK_LIB(curl, curl_easy_init,
788 BUILD_WITH_LIBCURL_LIBS="$with_curl_libs"
789 AC_SUBST(BUILD_WITH_LIBCURL_LIBS)
797 if test "x$with_libcurl" = "xyes" -a $with_curl_prefix -ne 0
799 with_curl_prefix=`$with_curl_config --libs 2>/dev/null`
800 curl_config_status=$?
802 if test $curl_config_status -ne 0
806 if test -d "$with_curl_prefix/include"
808 CPPFLAGS="$CPPFLAGS -I$with_curl_prefix/include"
813 with_libcurl_numeric=0
814 if test "x$with_libcurl" = "xyes"
816 with_libcurl_numeric=1
818 AC_DEFINE_UNQUOTED(HAVE_LIBCURL, [$with_libcurl_numeric], [Define to 1 if you have the 'curl' library (-lcurl).])
819 AM_CONDITIONAL(BUILD_WITH_LIBCURL, test "x$with_libcurl" = "xyes")
820 ### END of check for libcurl ###
824 AC_CHECK_LIB(IOKit, IOServiceGetMatchingServices,
833 AC_DEFINE_UNQUOTED(COLLECT_LIBIOKIT, [$collect_libiokit], [Wether or not to use the IOKit library])
834 AM_CONDITIONAL(BUILD_WITH_LIBIOKIT, test "x$with_libiokit" = "xyes")
836 with_libstatgrab="yes"
838 AC_ARG_WITH(libstatgrab, [AS_HELP_STRING([--with-libstatgrab@<:@=PREFIX@:>@], [Path to libstatgrab.])],
840 if test "x$withval" != "xno" -a "x$withval" != "xyes"
842 LDFLAGS="$LDFLAGS -L$withval/lib"
843 CPPFLAGS="$CPPFLAGS -I$withval/include"
844 with_libstatgrab="yes"
848 if test "x$ac_system" == "xunknown"
850 with_libstatgrab="yes"
852 with_libstatgrab="no"
855 if test "x$with_libstatgrab" = "xyes"
857 AC_CHECK_LIB(statgrab, sg_init, [with_libstatgrab="yes"], [with_libstatgrab="no (libstatgrab not found)"])
859 if test "x$with_libstatgrab" = "xyes"
861 AC_CHECK_HEADERS(statgrab.h,, [with_libstatgrab="no (statgrab.h not found)"])
863 if test "x$with_libstatgrab" = "xyes"
865 AC_CHECK_LIB(devstat, getdevs, [with_libdevstat="yes"], [with_libdevstat="no"])
867 if test "x$with_libstatgrab" = "xyes"
869 collect_libstatgrab=1
871 collect_libstatgrab=0
873 AC_DEFINE_UNQUOTED(COLLECT_LIBSTATGRAB, [$collect_libstatgrab],
874 [Wether or not to use statgrab library])
875 AM_CONDITIONAL(BUILD_WITH_LIBSTATGRAB, test "x$with_libstatgrab" = "xyes")
876 AM_CONDITIONAL(BUILD_WITH_LIBDEVSTAT, test "x$with_libdevstat" = "xyes")
878 AC_CHECK_LIB(kvm, kvm_getswapinfo, [with_libkvm="yes"], [with_libkvm="no"])
879 if test "x$with_libkvm" = "xyes"
881 AC_DEFINE(HAVE_LIBKVM, 1, [Define to 1 if you have the 'kvm' library (-lkvm)])
883 AM_CONDITIONAL(BUILD_WITH_LIBKVM, test "x$with_libkvm" = "xyes")
885 AC_ARG_WITH(lm-sensors, [AS_HELP_STRING([--with-lm-sensors@<:@=PREFIX@:>@], [Path to lm_sensors.])],
887 if test "x$withval" != "xno" && test "x$withval" != "xyes"
889 LDFLAGS="$LDFLAGS -L$withval/lib"
890 CPPFLAGS="$CPPFLAGS -I$withval/include"
891 with_lm_sensors="yes"
895 if test "x$ac_system" = "xLinux"
897 with_lm_sensors="yes"
902 if test "x$with_lm_sensors" = "xyes"
904 AC_CHECK_LIB(sensors, sensors_init,
906 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
908 [with_lm_sensors="no (libsensors not found)"])
910 if test "x$with_lm_sensors" = "xyes"
912 AC_CHECK_HEADERS(sensors/sensors.h,
914 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
916 [with_lm_sensors="no (sensors/sensors.h not found)"])
918 if test "x$with_lm_sensors" = "xyes"
924 AC_DEFINE_UNQUOTED(COLLECT_LM_SENSORS, [$collect_lm_sensors],
925 [Wether or not to use sensors library])
926 AM_CONDITIONAL(BUILD_WITH_LM_SENSORS, test "x$with_lm_sensors" = "xyes")
928 AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to libmysql.])],
930 if test "x$withval" != "xno" && test "x$withval" != "xyes"
932 LDFLAGS="$LDFLAGS -L$withval/lib"
933 CPPFLAGS="$CPPFLAGS -I$withval/include"
940 if test "x$with_libmysql" = "xyes"
942 AC_CHECK_LIB(mysqlclient, mysql_init,
944 AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1, [Define to 1 if you have the mysqlclient library (-lmysqlclient).])
945 ], [with_libmysql="no (libmysql not found)"])
947 if test "x$with_libmysql" = "xyes"
949 AC_CHECK_HEADERS(mysql/mysql.h,
951 AC_DEFINE(HAVE_MYSQL_MYSQL_H, 1, [Define to 1 if you have the <mysql/mysql.h> header file.])
952 ], [with_libmysql="no (mysql/mysql.h not found)"])
954 if test "x$with_libmysql" = "xyes"
960 AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libmysql],
961 [Wether or not to use mysql library])
962 AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libmysql" = "xyes")
964 with_own_liboconfig="no"
965 liboconfig_LDFLAGS="$LDFLAGS"
966 liboconfig_CPPFLAGS="$CPPFLAGS"
967 AC_ARG_WITH(liboconfig, [AS_HELP_STRING([--with-liboconfig@<:@=PREFIX@:>@], [Path to liboconfig.])],
969 if test "x$withval" != "xno" && test "x$withval" != "xyes"
971 if test -d "$withval/lib"
973 liboconfig_LDFLAGS="$LDFLAGS -L$withval/lib"
975 if test -d "$withval/include"
977 liboconfig_CPPFLAGS="$CPPFLAGS -I$withval/include"
980 if test "x$withval" = "xno"
982 AC_MSG_ERROR("liboconfig is required")
986 with_liboconfig="yes"
989 save_LDFLAGS="$LDFLAGS"
990 save_CPPFLAGS="$CPPFLAGS"
991 LDFLAGS="$liboconfig_LDFLAGS"
992 CPPFLAGS="$liboconfig_CPPFLAGS"
993 AC_CHECK_LIB(oconfig, oconfig_parse_fh,
995 with_liboconfig="yes"
996 with_own_liboconfig="no"
999 with_liboconfig="yes"
1000 with_own_liboconfig="yes"
1001 LDFLAGS="$save_LDFLAGS"
1002 CPPFLAGS="$save_CPPFLAGS"
1005 AM_CONDITIONAL(BUILD_WITH_OWN_LIBOCONFIG, test "x$with_own_liboconfig" = "xyes")
1006 if test "x$with_own_liboconfig" = "xyes"
1008 with_liboconfig="yes (shipped version)"
1011 #with_liboping="yes"
1012 with_own_liboping="no"
1013 liboping_LDFLAGS="$LDFLAGS"
1014 liboping_CPPFLAGS="$CPPFLAGS"
1015 AC_ARG_WITH(liboping, [AS_HELP_STRING([--with-liboping@<:@=PREFIX@:>@], [Path to liboping.])],
1017 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1019 if test -d "$withval/lib"
1021 liboping_LDFLAGS="$LDFLAGS -L$withval/lib"
1023 if test -d "$withval/include"
1025 liboping_CPPFLAGS="$CPPFLAGS -I$withval/include"
1028 if test "x$withval" = "xno"
1031 with_own_liboping="no"
1039 if test "x$with_liboping" = "xyes"
1041 save_LDFLAGS="$LDFLAGS"
1042 save_CPPFLAGS="$CPPFLAGS"
1043 LDFLAGS="$liboping_LDFLAGS"
1044 CPPFLAGS="$liboping_CPPFLAGS"
1045 AC_CHECK_LIB(oping, ping_construct,
1048 with_own_liboping="no"
1052 with_own_liboping="yes"
1053 LDFLAGS="$save_LDFLAGS"
1054 CPPFLAGS="$save_CPPFLAGS"
1057 AM_CONDITIONAL(BUILD_WITH_LIBOPING, test "x$with_liboping" = "xyes")
1058 AM_CONDITIONAL(BUILD_WITH_OWN_LIBOPING, test "x$with_own_liboping" = "xyes")
1060 AC_ARG_WITH(libpcap, [AS_HELP_STRING([--with-libpcap@<:@=PREFIX@:>@], [Path to libpcap.])],
1062 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1064 LDFLAGS="$LDFLAGS -L$withval/lib"
1065 CPPFLAGS="$CPPFLAGS -I$withval/include"
1072 if test "x$with_libpcap" = "xyes"
1074 AC_CHECK_LIB(pcap, pcap_open_live,
1076 AC_DEFINE(HAVE_LIBPCAP, 1, [Define to 1 if you have the pcap library (-lpcap).])
1077 ], [with_libpcap="no (libpcap not found)"])
1079 if test "x$with_libpcap" = "xyes"
1081 AC_CHECK_HEADERS(pcap.h,
1083 AC_DEFINE(HAVE_PCAP_H, 1, [Define to 1 if you have the <pcap.h> header file.])
1084 ], [with_libpcap="no (pcap.h not found)"])
1086 if test "x$with_libpcap" = "xyes"
1092 AC_DEFINE_UNQUOTED(COLLECT_LIBPCAP, [$collect_libpcap],
1093 [Wether or not to use the pcap library])
1094 AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes")
1096 perl_interpreter="perl"
1097 AC_ARG_WITH(libperl, [AS_HELP_STRING([--with-libperl@<:@=PREFIX@:>@], [Path to libperl.])],
1099 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1101 LDFLAGS="$LDFLAGS -L$withval/lib"
1102 CPPFLAGS="$CPPFLAGS -I$withval/include"
1103 perl_interpreter="$withval/bin/perl"
1110 if test "x$with_libperl" = "xyes"
1113 SAVE_LDFLAGS=$LDFLAGS
1114 PERL_CFLAGS=`$perl_interpreter -MExtUtils::Embed -e ccopts`
1115 PERL_LDFLAGS=`$perl_interpreter -MExtUtils::Embed -e ldopts`
1116 CFLAGS="$CFLAGS $PERL_CFLAGS"
1117 LDFLAGS="$LDFLAGS $PERL_LDFLAGS"
1119 AC_CACHE_CHECK([for libperl],
1129 PerlInterpreter *perl = NULL;
1130 Perl_load_module (perl, PERL_LOADMOD_NOIMPORT,
1131 newSVpv ("Collectd::Plugin::FooBar", 24),
1134 [have_libperl="yes"],
1139 if test "x$have_libperl" = "xyes"
1141 AC_DEFINE(HAVE_LIBPERL, 1, [Define if libperl is present and usable.])
1142 AC_SUBST(PERL_CFLAGS)
1143 AC_SUBST(PERL_LDFLAGS)
1149 LDFLAGS=$SAVE_LDFLAGS
1151 AM_CONDITIONAL(BUILD_WITH_LIBPERL, test "x$with_libperl" = "xyes")
1153 AC_ARG_WITH(libiptc, [AS_HELP_STRING([--with-libiptc@<:@=PREFIX@:>@], [Path to libiptc.])],
1155 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1157 LDFLAGS="$LDFLAGS -L$withval/lib"
1158 CPPFLAGS="$CPPFLAGS -I$withval/include"
1163 if test "x$ac_system" = "xLinux"
1167 with_libiptc="no (Linux only)"
1170 if test "x$with_libiptc" = "xyes"
1172 AC_CHECK_LIB(iptc, iptc_init,
1174 AC_DEFINE(HAVE_LIBIPTC, 1, [Define to 1 if you have the iptc library (-liptc).])
1175 ], [with_libiptc="no (libiptc not found)"])
1177 if test "x$with_libiptc" = "xyes"
1179 AC_CHECK_HEADERS(libiptc/libiptc.h,
1181 AC_DEFINE(HAVE_LIBIPTC_LIBIPTC_H, 1, [Define to 1 if you have the <libiptc/libiptc.h> header file.])
1182 ], [with_libiptc="no (libiptc/libiptc.h not found)"])
1184 if test "x$with_libiptc" = "xyes"
1190 AM_CONDITIONAL(BUILD_WITH_LIBIPTC, test "x$with_libiptc" = "xyes")
1192 AC_ARG_WITH(libnetsnmp, [AS_HELP_STRING([--with-libnetsnmp@<:@=PREFIX@:>@], [Path to the Net-SNMPD library.])],
1194 if test "x$withval" != "xno" && test "x$withval" != "xyes"
1196 LDFLAGS="$LDFLAGS -L$withval/lib"
1197 CPPFLAGS="$CPPFLAGS -I$withval/include"
1198 with_libnetsnmp="yes"
1201 [with_libnetsnmp="yes"])
1202 if test "x$with_libnetsnmp" = "xyes"
1204 AC_CHECK_LIB(netsnmp, init_snmp,
1206 AC_DEFINE(HAVE_LIBSNMP, 1, [Define to 1 if you have the Net-SNMP library (-lnetsnmp).])
1207 ], [with_libnetsnmp="no (libnetsnmp not found)"])
1209 if test "x$with_libnetsnmp" = "xyes"
1211 AC_CHECK_HEADERS(net-snmp/net-snmp-config.h,
1213 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.])
1214 ], [with_libnetsnmp="no (net-snmp/net-snmp-config.h not found)"])
1216 AM_CONDITIONAL(BUILD_WITH_LIBNETSNMP, test "x$with_libnetsnmp" = "xyes")
1218 with_upsclient_config="libupsclient-config"
1219 with_upsclient_cflags=""
1220 with_upsclient_libs=""
1221 AC_ARG_WITH(libupsclient, [AS_HELP_STRING([--with-libupsclient@<:@=PREFIX@:>@], [Path to libupsclient.])],
1223 if test "x$withval" = "xno"
1225 with_libupsclient="no"
1227 with_libupsclient="yes"
1228 if "x$withval" != "xyes"
1230 with_upsclient_config="$withval/bin/libupsclient-config"
1235 with_libupsclient="yes"
1237 if test "x$with_libupsclient" = "xyes"
1239 with_upsclient_cflags=`$with_upsclient_config --cflags 2>/dev/null`
1240 upsclient_config_status=$?
1242 if test $upsclient_config_status -ne 0
1244 with_libupsclient="no"
1247 if test "x$with_libupsclient" = "xyes"
1249 with_upsclient_libs=`$with_upsclient_config --libs 2>/dev/null`
1250 upsclient_config_status=$?
1252 if test $upsclient_config_status -ne 0
1254 with_libupsclient="no"
1257 if test "x$with_libupsclient" = "xyes"
1259 AC_CHECK_LIB(upsclient, upscli_connect,
1261 BUILD_WITH_LIBUPSCLIENT_CFLAGS="$with_upsclient_cflags"
1262 BUILD_WITH_LIBUPSCLIENT_LIBS="$with_upsclient_libs"
1263 AC_SUBST(BUILD_WITH_LIBUPSCLIENT_CFLAGS)
1264 AC_SUBST(BUILD_WITH_LIBUPSCLIENT_LIBS)
1267 with_libupsclient="no"
1270 if test "x$with_libupsclient" = "xyes"
1272 AC_DEFINE(HAVE_LIBUPSCLIENT, 1, [Define to 1 if you have the upsclient library (-lupsclient).])
1274 AM_CONDITIONAL(BUILD_WITH_LIBUPSCLIENT, test "x$with_libupsclient" = "xyes")
1276 ### BEGIN of check for libxmms ###
1277 with_xmms_config="xmms-config"
1280 AC_ARG_WITH(libxmms, [AS_HELP_STRING([--with-libxmms@<:@=PREFIX@:>@], [Path to libxmms.])],
1282 if test "x$withval" != "xno" -a "x$withval" != "xyes"
1284 if test -x "$withval/bin/xmms-config"
1286 with_xmms_config="$withval/bin/xmms-config"
1289 if test "x$withval" = "xno"
1299 if test "x$with_libxmms" = "xyes"
1301 with_xmms_cflags=`$with_xmms_config --cflags 2>/dev/null`
1302 xmms_config_status=$?
1304 if test $xmms_config_status -ne 0
1309 if test "x$with_libxmms" = "xyes"
1311 with_xmms_libs=`$with_xmms_config --libs 2>/dev/null`
1312 xmms_config_status=$?
1314 if test $xmms_config_status -ne 0
1319 if test "x$with_libxmms" = "xyes"
1321 AC_CHECK_LIB(xmms, xmms_remote_get_info,
1323 BUILD_WITH_LIBXMMS_CFLAGS="$with_xmms_cflags"
1324 BUILD_WITH_LIBXMMS_LIBS="$with_xmms_libs"
1325 AC_SUBST(BUILD_WITH_LIBXMMS_CFLAGS)
1326 AC_SUBST(BUILD_WITH_LIBXMMS_LIBS)
1333 with_libxmms_numeric=0
1334 if test "x$with_libxmms" = "xyes"
1336 with_libxmms_numeric=1
1338 AC_DEFINE_UNQUOTED(HAVE_LIBXMMS, [$with_libxmms_numeric], [Define to 1 if you have the 'xmms' library (-lxmms).])
1339 AM_CONDITIONAL(BUILD_WITH_LIBXMMS, test "x$with_libxmms" = "xyes")
1340 ### END of check for libxmms ###
1342 # Check for enabled/disabled features
1345 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
1346 # ------------------------------------------------------------
1348 m4_define([my_toupper], [m4_translit([$1], m4_defn([m4_cr_letters]), m4_defn([m4_cr_LETTERS]))])
1353 m4_if([$1], [], [AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 1st argument must not be empty])])dnl
1358 m4_define([EnDis],[disabled])dnl
1359 m4_define([YesNo],[no])dnl
1365 m4_define([EnDis],[enabled])dnl
1366 m4_define([YesNo],[yes])dnl
1369 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 2nd argument must be either enable or disable])dnl
1373 m4_if([$3], [feature], [],
1377 AC_FATAL([AC_COLLECTD([$1], [$2], [$3], [$4]): 3rd argument must be either feature or disable])dnl
1383 AS_HELP_STRING([--$2-$1], [$2 $4 (EnDis by def)]),
1385 enable_$1='[YesNo]'dnl
1387 if test "x$enable_$1" = "xno"
1391 if test "x$enable_$1" = "xyes"
1395 AC_MSG_NOTICE([please specify either --enable-$1 or --disable-$1; enabling $1.])
1400 AC_DEFINE_UNQUOTED([COLLECT_]my_toupper([$1]), [$collectd_$1], [wether or not to enable $3 $4])
1401 AM_CONDITIONAL([BUILD_]my_toupper([$3])[_]my_toupper([$1]), [test "x$enable_$1" = "xyes"])dnl
1403 )# AC_COLLECTD(name, enable/disable, info-text, feature/module)
1405 # AC_PLUGIN(name, default, info)
1406 # ------------------------------------------------------------
1412 AC_ARG_ENABLE([$1], AC_HELP_STRING([--enable-$1], [$3]),
1414 if test "x$enableval" = "xyes"
1422 if test "x$2" = "xyes"
1429 if test "x$enable_plugin" = "xyes"
1431 AC_DEFINE([HAVE_PLUGIN_]my_toupper([$1]), 1, [Define to 1 if the $1 plugin is enabled.])
1433 AM_CONDITIONAL([BUILD_PLUGIN_]my_toupper([$1]), test "x$enable_plugin" = "xyes")
1434 enable_$1="$enable_plugin"
1436 )# AC_PLUGIN(name, default, info)
1438 m4_divert_once([HELP_ENABLE], [
1439 collectd features:])
1440 # FIXME: Remove these calls to `AC_COLLECTD' and then remove that macro.
1441 AC_COLLECTD([debug], [enable], [feature], [debugging])
1442 AC_COLLECTD([daemon], [disable], [feature], [daemon mode])
1443 AC_COLLECTD([getifaddrs],[enable], [feature], [getifaddrs under Linux])
1451 plugin_interface="no"
1455 plugin_multimeter="no"
1457 plugin_processes="no"
1463 plugin_wireless="no"
1466 if test "x$ac_system" = "xLinux"
1468 plugin_battery="yes"
1470 plugin_cpufreq="yes"
1472 plugin_entropy="yes"
1473 plugin_interface="yes"
1478 plugin_processes="yes"
1481 plugin_vserver="yes"
1482 plugin_wireless="yes"
1486 if test "x$with_libiokit" = "xyes"
1488 plugin_battery="yes"
1493 if test "x$with_devinfo$with_kstat" = "xyesyes"
1497 plugin_interface="yes"
1504 if test "x$with_libstatgrab" = "xyes"
1506 plugin_interface="yes"
1512 if test "x$have_processor_info" = "xyes"
1516 if test "x$have_sysctlbyname" = "xyes"
1522 if test "x$have_statfs" = "xyes"
1526 if test "x$have_statvfs" = "xyes"
1531 if test "x$have_getifaddrs" = "xyes"
1533 plugin_interface="yes"
1536 if test "x$have_getloadavg" = "xyes"
1541 # Mac OS X memory interface
1542 if test "x$have_host_statistics" = "xyes"
1547 if test "x$have_termios_h" = "xyes"
1549 plugin_multimeter="yes"
1552 if test "x$have_thread_info" = "xyes"
1554 plugin_processes="yes"
1557 if test "x$with_libkvm" = "xyes"
1562 if test "x$have_getutent" = "xyes"
1566 if test "x$have_getutxent" = "xyes"
1571 # FIXME: sysctl for swap plugin
1573 m4_divert_once([HELP_ENABLE], [
1576 AC_PLUGIN([apache], [$with_libcurl], [Apache httpd statistics])
1577 AC_PLUGIN([apcups], [yes], [Statistics of UPSes by APC])
1578 AC_PLUGIN([apple_sensors], [$with_libiokit], [Apple's hardware sensors])
1579 AC_PLUGIN([battery], [$plugin_battery], [Battery statistics])
1580 AC_PLUGIN([cpu], [$plugin_cpu], [CPU usage statistics])
1581 AC_PLUGIN([cpufreq], [$plugin_cpufreq], [CPU frequency statistics])
1582 AC_PLUGIN([csv], [yes], [CSV output plugin])
1583 AC_PLUGIN([df], [$plugin_df], [Filesystem usage statistics])
1584 AC_PLUGIN([disk], [$plugin_disk], [Disk usage statistics])
1585 AC_PLUGIN([dns], [$with_libpcap], [DNS traffic analysis])
1586 AC_PLUGIN([email], [yes], [EMail statistics])
1587 AC_PLUGIN([entropy], [$plugin_entropy], [Entropy statistics])
1588 AC_PLUGIN([exec], [yes], [Execution of external programs])
1589 AC_PLUGIN([hddtemp], [yes], [Query hddtempd])
1590 AC_PLUGIN([interface], [$plugin_interface], [Interface traffic statistics])
1591 AC_PLUGIN([iptables], [$with_libiptc], [IPTables rule counters])
1592 AC_PLUGIN([irq], [$plugin_irq], [IRQ statistics])
1593 AC_PLUGIN([load], [$plugin_load], [System load])
1594 AC_PLUGIN([logfile], [yes], [File logging plugin])
1595 AC_PLUGIN([mbmon], [yes], [Query mbmond])
1596 AC_PLUGIN([memory], [$plugin_memory], [Memory usage])
1597 AC_PLUGIN([multimeter], [$plugin_multimeter], [Read multimeter values])
1598 AC_PLUGIN([mysql], [$with_libmysql], [MySQL statistics])
1599 AC_PLUGIN([network], [yes], [Network communication plugin])
1600 AC_PLUGIN([nfs], [$plugin_nfs], [NFS statistics])
1601 AC_PLUGIN([ntpd], [yes], [NTPd statistics])
1602 AC_PLUGIN([nut], [$with_libupsclient], [Network UPS tools statistics])
1603 AC_PLUGIN([perl], [$with_libperl], [Embed a Perl interpreter])
1604 AC_PLUGIN([ping], [$with_liboping], [Network latency statistics])
1605 AC_PLUGIN([processes], [$plugin_processes], [Process statistics])
1606 AC_PLUGIN([rrdtool], [$with_rrdtool], [RRDTool output plugin])
1607 AC_PLUGIN([sensors], [$with_lm_sensors], [lm_sensors statistics])
1608 AC_PLUGIN([serial], [$plugin_serial], [serial port traffic])
1609 AC_PLUGIN([snmp], [$with_libnetsnmp], [SNMP querying plugin])
1610 AC_PLUGIN([swap], [$plugin_swap], [Swap usage statistics])
1611 AC_PLUGIN([syslog], [$have_syslog], [Syslog logging plugin])
1612 AC_PLUGIN([tape], [$plugin_tape], [Tape drive statistics])
1613 AC_PLUGIN([unixsock], [yes], [Unixsock communication plugin])
1614 AC_PLUGIN([users], [$plugin_users], [User statistics])
1615 AC_PLUGIN([vserver], [$plugin_vserver], [Linux VServer statistics])
1616 AC_PLUGIN([wireless], [$plugin_wireless], [Wireless statistics])
1617 AC_PLUGIN([xmms], [$with_libxmms], [XMMS statistics])
1619 AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/liboconfig/Makefile src/liboping/Makefile)
1621 if test "x$with_liboping" = "xyes" -a "x$with_own_liboping" = "xyes"
1623 with_liboping="yes (shipped version)"
1626 if test "x$with_libperl" = "xyes"
1628 with_libperl="yes (version `perl -MConfig -e 'print $Config{version};'`)"
1630 enable_perl="no (needs libperl)"
1637 libcurl . . . . . . $with_libcurl
1638 libiokit . . . . . $with_libiokit
1639 libiptc . . . . . . $with_libiptc
1640 libkstat . . . . . $with_kstat
1641 libkvm . . . . . . $with_libkvm
1642 libmysql . . . . . $with_libmysql
1643 libnetsnmp . . . . $with_libnetsnmp
1644 liboconfig . . . . $with_liboconfig
1645 liboping . . . . . $with_liboping
1646 libpcap . . . . . . $with_libpcap
1647 libperl . . . . . . $with_libperl
1648 libpthread . . . . $with_libpthread
1649 librrd . . . . . . $with_rrdtool
1650 libsensors . . . . $with_lm_sensors
1651 libstatgrab . . . . $with_libstatgrab
1652 libupsclient . . . $with_libupsclient
1653 libxmms . . . . . . $with_libxmms
1656 daemon mode . . . . $enable_daemon
1657 debug . . . . . . . $enable_debug
1660 apache . . . . . . $enable_apache
1661 apcups . . . . . . $enable_apcups
1662 apple_sensors . . . $enable_apple_sensors
1663 battery . . . . . . $enable_battery
1664 cpu . . . . . . . . $enable_cpu
1665 cpufreq . . . . . . $enable_cpufreq
1666 csv . . . . . . . . $enable_csv
1667 df . . . . . . . . $enable_df
1668 disk . . . . . . . $enable_disk
1669 dns . . . . . . . . $enable_dns
1670 email . . . . . . . $enable_email
1671 entropy . . . . . . $enable_entropy
1672 exec . . . . . . . $enable_exec
1673 hddtemp . . . . . . $enable_hddtemp
1674 interface . . . . . $enable_interface
1675 iptables . . . . . $enable_iptables
1676 irq . . . . . . . . $enable_irq
1677 load . . . . . . . $enable_load
1678 logfile . . . . . . $enable_logfile
1679 mbmon . . . . . . . $enable_mbmon
1680 memory . . . . . . $enable_memory
1681 multimeter . . . . $enable_multimeter
1682 mysql . . . . . . . $enable_mysql
1683 network . . . . . . $enable_network
1684 nfs . . . . . . . . $enable_nfs
1685 ntpd . . . . . . . $enable_ntpd
1686 nut . . . . . . . . $enable_nut
1687 perl . . . . . . . $enable_perl
1688 ping . . . . . . . $enable_ping
1689 processes . . . . . $enable_processes
1690 sensors . . . . . . $enable_sensors
1691 serial . . . . . . $enable_serial
1692 snmp . . . . . . . $enable_snmp
1693 swap . . . . . . . $enable_swap
1694 syslog . . . . . . $enable_syslog
1695 tape . . . . . . . $enable_tape
1696 unixsock . . . . . $enable_unixsock
1697 users . . . . . . . $enable_users
1698 vserver . . . . . . $enable_vserver
1699 wireless . . . . . $enable_wireless
1700 xmms . . . . . . . $enable_xmms