Updated debian/changelog
[collectd.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(collectd, 3.5.0)
3 AC_CONFIG_SRCDIR(src/collectd.c)
4 AC_CONFIG_HEADERS(src/config.h)
5 AM_INIT_AUTOMAKE(dist-bzip2)
6 AC_LANG(C)
7
8 AC_PREFIX_DEFAULT("/opt/collectd")
9
10 #
11 # Checks for programs.
12 #
13 AC_PROG_CC
14 AC_PROG_CPP
15 AC_PROG_INSTALL
16 AC_PROG_LN_S
17 AC_PROG_MAKE_SET
18
19 dnl configure libtool
20 AC_DISABLE_STATIC
21 AC_LIBLTDL_CONVENIENCE
22 AC_SUBST(LTDLINCL)
23 AC_SUBST(LIBLTDL)
24 AC_LIBTOOL_DLOPEN
25 AC_PROG_LIBTOOL
26 #AC_PROG_RANLIB
27 AC_CONFIG_SUBDIRS(libltdl)
28
29 #
30 # Checks for header files.
31 #
32 AC_HEADER_SYS_WAIT
33 AC_HEADER_DIRENT
34 AC_CHECK_HEADERS(fcntl.h)
35 AC_CHECK_HEADERS(signal.h)
36 AC_CHECK_HEADERS(sys/socket.h)
37 AC_CHECK_HEADERS(sys/select.h)
38 AC_CHECK_HEADERS(netdb.h)
39 AC_CHECK_HEADERS(sys/resource.h)
40 AC_CHECK_HEADERS(errno.h)
41 AC_CHECK_HEADERS(syslog.h)
42
43 # For cpu modules
44 AC_CHECK_HEADERS(sys/sysctl.h sys/dkstat.h)
45
46 # For load module
47 AC_CHECK_HEADERS(sys/loadavg.h)
48
49 # For ping module
50 AC_CHECK_HEADERS(arpa/inet.h)
51 AC_CHECK_HEADERS(netinet/in.h)
52
53 # For users module
54 AC_CHECK_HEADERS(utmp.h)
55 AC_CHECK_HEADERS(utmpx.h)
56
57 # For quota module
58 AC_CHECK_HEADERS(grp.h pwd.h sys/ucred.h)
59 AC_CHECK_HEADERS(ctype.h)
60 AC_CHECK_HEADERS(limits.h)
61 AC_CHECK_HEADERS(sys/quota.h)
62 AC_CHECK_HEADERS(xfs/xqm.h)
63
64 # For mount interface
65 AC_CHECK_HEADERS(fs_info.h)
66 AC_CHECK_HEADERS(fshelp.h)
67 AC_CHECK_HEADERS(paths.h)
68 AC_CHECK_HEADERS(mntent.h)
69 AC_CHECK_HEADERS(mnttab.h)
70 AC_CHECK_HEADERS(sys/fstyp.h)
71 AC_CHECK_HEADERS(sys/fs_types.h)
72 AC_CHECK_HEADERS(sys/mntent.h)
73 AC_CHECK_HEADERS(sys/mnttab.h)
74 AC_CHECK_HEADERS(sys/mount.h)
75 AC_CHECK_HEADERS(sys/statfs.h)
76 AC_CHECK_HEADERS(sys/vfs.h)
77 AC_CHECK_HEADERS(sys/vfstab.h)
78
79 # For debugging interface (variable number of arguments)
80 AC_CHECK_HEADERS(stdarg.h)
81
82 dnl Checking for libraries
83 AC_CHECK_LIB(m, ext)
84
85 #
86 # Checks for typedefs, structures, and compiler characteristics.
87 #
88 AC_C_CONST
89 AC_TYPE_PID_T
90 AC_TYPE_SIZE_T
91 AC_HEADER_TIME
92
93 #
94 # Checks for library functions.
95 #
96 AC_PROG_GCC_TRADITIONAL
97 AC_CHECK_FUNCS(gettimeofday select strdup strtol)
98 AC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket))
99 AC_CHECK_FUNCS(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname))
100 AC_CHECK_FUNCS(strchr memcpy strstr strcmp strncmp strncpy strlen)
101 AC_CHECK_FUNCS(strncasecmp strcasecmp)
102
103 # For cpu module
104 AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
105
106 # For load module
107 AC_CHECK_FUNCS(getloadavg, [have_getloadavg="yes"], [have_getloadavg="no"])
108
109 # For users module
110 have_getutent="no"
111 AC_CHECK_FUNCS(getutent getutxent, [have_getutent="yes"])
112
113 # For quota module
114 AC_CHECK_FUNCS(quotactl)
115 AC_CHECK_FUNCS(getgrgid getpwuid)
116
117 # For mount interface
118 AC_CHECK_FUNCS(getfsent getvfsent listmntent)
119 AC_FUNC_GETMNTENT
120 if test "x$ac_cv_func_getmntent" = 'xyes'; then
121         saveCFLAGS="$CFLAGS"
122         CFLAGS="-Wall -Werror $CFLAGS"
123         AC_CACHE_CHECK([whether getmntent takes one argument],
124                 [fu_cv_getmntent1],
125                 AC_COMPILE_IFELSE(
126                         AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
127 #include "$srcdir/src/utils_mount.h"]],
128                                 [[(void)getmntent((FILE *)NULL);]]
129                         ),
130                         [fu_cv_getmntent1=yes],
131                         [fu_cv_getmntent1=no]
132                 )
133         )
134         if test "x$fu_cv_getmntent1" = 'xno'; then
135                 AC_CACHE_CHECK([whether getmntent takes two arguments],
136                         [fu_cv_getmntent2],
137                         AC_COMPILE_IFELSE(
138                                 AC_LANG_PROGRAM([[AC_INCLUDES_DEFAULT
139 #include "$srcdir/src/utils_mount.h"]],
140                                         [[(void)getmntent((FILE *)NULL,
141                                                 (struct mnttab *)NULL);]]
142                                 ),
143                                 [fu_cv_getmntent2=yes],
144                                 [fu_cv_getmntent2=no]
145                         )
146                 )
147         fi
148         CFLAGS="$saveCFLAGS"
149 fi
150 if test "x$fu_cv_getmntent1" = 'xyes'; then
151         AC_DEFINE(HAVE_GETMNTENT1,
152                 1,
153                 [Define if there is a function named getmntent
154                         for reading the list of mounted filesystems, and
155                         that function takes a single argument. (4.3BSD,
156                         SunOS, HP-UX, Dynix, Irix, Linux)]
157                 )
158 fi
159 if test "x$fu_cv_getmntent2" = 'xyes'; then
160         AC_DEFINE(HAVE_GETMNTENT2,
161                 1,
162                 [Define if there is a function named getmntent
163                         for reading the list of mounted filesystems, and
164                         that function takes two arguments. (SVR4)]
165                 )
166 fi
167
168 AC_MSG_CHECKING([for kernel type ($host_os)])
169 case $host_os in
170         *linux*)
171         AC_DEFINE([KERNEL_LINUX], [], [True if program is to be compiled for a Linux kernel])
172         ac_system="Linux"
173         ;;
174         *solaris*)
175         AC_DEFINE([KERNEL_SOLARIS], [], [True if program is to be compiled for a Solaris kernel])
176         ac_system="Solaris"
177         ;;
178         *)
179         ac_system="unknown"
180 esac
181 AC_MSG_RESULT([$ac_system])
182
183 dnl Checks for libraries.
184 AC_CHECK_LIB(socket, socket)
185 AC_CHECK_LIB(resolv, res_search)
186
187 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
188 AC_ARG_WITH(rrdtool, AC_HELP_STRING([--with-rrdtool=PFX], [Path to rrdtool.]),
189 [       if test "x$withval" != "xno" -a "x$withval" != "xyes"
190         then
191                 LDFLAGS="$LDFLAGS -L$withval/lib"
192                 CPPFLAGS="$CPPFLAGS -I$withval/include"
193                 with_rrdtool="yes"
194         fi
195 ], [with_rrdtool="yes"])
196 if test "x$with_rrdtool" = "xyes"
197 then
198         AC_CHECK_LIB(rrd, rrd_update,, [with_rrdtool="no"], [-lm])
199 fi
200 if test "x$with_rrdtool" = "xyes"
201 then
202         AC_CHECK_HEADERS(rrd.h,, [with_rrdtool="no"])
203 fi
204 AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
205
206 #AC_ARG_WITH(pth, AC_HELP_STRING([--with-pth=PFX], [Path to pth (experimental).]),
207 #[      if test "x$withval" != "xno" -a "x$withval" != "xyes"
208 #       then
209 #               LDFLAGS="$LDFLAGS -L$withval/lib"
210 #               CPPFLAGS="$CPPFLAGS -I$withval/include"
211 #               with_pth="yes"
212 #       fi
213 #], [with_pth="no"])
214 #if test "x$with_pth" = "xyes"
215 #then
216 #       AC_CHECK_LIB(pth, pth_init,, [with_pth="no"], [])
217 #fi
218 #if test "x$with_pth" = "xyes"
219 #then
220 #       AC_CHECK_HEADERS(pth.h,, [with_pth="no"])
221 #fi
222 #if test "x$with_pth" = "xyes"
223 #then
224 #       collect_pth=1
225 #else
226 #       collect_pth=0
227 #fi
228 #AC_DEFINE_UNQUOTED(COLLECT_PTH, [$collect_pth],
229 #       [Wether or not to use pth (portable threads) library])
230 #AM_CONDITIONAL(BUILD_WITH_PTH, test "x$with_pth" = "xyes")
231
232 if test "$ac_system" = "Solaris"
233 then
234         with_kstat="yes"
235         AC_CHECK_LIB(kstat, kstat_open,, [with_kstat="no (not found)"])
236         AC_CHECK_LIB(devinfo, di_init)
237         AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
238 else
239         with_kstat="no (Solaris only)"
240 fi
241
242 AC_ARG_WITH(libstatgrab, AC_HELP_STRING([--with-libstatgrab@<:@=PFX@:>@], [Path to libstatgrab.]),
243 [
244         # given..
245         if test "x$withval" != "xno"
246         then
247                 if test "x$withval" != "xyes"
248                 then
249                         LDFLAGS="$LDFLAGS -L$withval/lib"
250                         CPPFLAGS="$CPPFLAGS -I$withval/include"
251                         with_libstatgrab="yes"
252                 fi
253         fi
254 ],
255 [
256         # not given..
257         if test "x$ac_system" != "xunknown"
258         then
259                 with_libstatgrab="no"
260         else
261                 with_libstatgrab="yes"
262         fi
263 ])
264 if test "x$with_libstatgrab" = "xyes"
265 then
266         AC_CHECK_LIB(devstat, getdevs)
267         AC_CHECK_LIB(kvm, kvm_getargv)
268         AC_CHECK_LIB(statgrab, sg_init,, [with_libstatgrab="no (not found)"])
269         AC_CHECK_HEADERS(statgrab.h,,    [with_libstatgrab="no (not found)"])
270 fi
271
272 AC_ARG_WITH(lm-sensors, AC_HELP_STRING([--with-lm-sensors@<:@=PFX@:>@], [Path to lm_sensors.]),
273 [
274         # given..
275         if test "x$withval" != "xno"
276         then
277                 if test "x$withval" != "xyes"
278                 then
279                         LDFLAGS="$LDFLAGS -L$withval/lib"
280                         CPPFLAGS="$CPPFLAGS -I$withval/include"
281                         with_lm_sensors="yes"
282                 fi
283         fi
284 ],
285 [
286         # not given..
287         if test "x$ac_system" = "xLinux"
288         then
289                 with_lm_sensors="yes"
290         else
291                 with_lm_sensors="no"
292         fi
293 ])
294 if test "x$with_lm_sensors" = "xyes"
295 then
296         AC_CHECK_LIB(sensors, sensors_init,
297         [
298                 with_lm_sensors="yes"
299                 AC_DEFINE(HAVE_LIBSENSORS, 1, [Define to 1 if you have the sensors library (-lsensors).])
300         ],
301         [with_lm_sensors="no (not found)"])
302         AC_CHECK_HEADERS(sensors/sensors.h,
303         [
304                 with_lm_sensors="yes"
305                 AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
306         ],
307         [with_lm_sensors="no (not found)"])
308 fi
309
310
311
312 #
313 # Check for enabled/disabled features
314 #
315 m4_divert_once([HELP_ENABLE], [
316 collectd features:])
317 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
318         [Enable debugging (disabled by default)]),
319         [], [enable_debug="no"])
320 if test "x$enable_debug" = "xno"
321 then
322         collect_debug=0
323 else
324         if test "x$enable_debug" = "xyes"
325         then
326                 collect_debug=1
327         else
328                 AC_MSG_NOTICE([Please specify either --enable-debug or --disable-debug; Enabling debugging.])
329                 collect_debug=1
330                 enable_debug="yes"
331         fi
332 fi
333 AC_DEFINE_UNQUOTED(COLLECT_DEBUG, [$collect_debug],
334         [Wether or not to enable debugging])
335 AM_CONDITIONAL(BUILD_DEBUG, test "x$enable_debug" = "xyes")
336
337 AC_ARG_ENABLE(daemon, AC_HELP_STRING([--disable-daemon],
338         [Disable daemon mode (enabled by default)]),
339         [], [enable_daemon="yes"])
340 if test "x$enable_daemon" = "xno"
341 then
342         collect_daemon=0
343 else
344         if test "x$enable_daemon" = "xyes"
345         then
346                 collect_daemon=1
347         else
348                 AC_MSG_NOTICE([Please specify either --enable-daemon or --disable-daemon; Enabling daemon mode.])
349                 collect_daemon=1
350                 enable_daemon="yes"
351         fi
352 fi
353 AC_DEFINE_UNQUOTED(COLLECT_DAEMON, [$collect_daemon],
354         [Wether or not to enable daemon mode])
355 AM_CONDITIONAL(BUILD_DAEMON, test "x$enable_daemon" = "xyes")
356
357 m4_divert_once([HELP_ENABLE], [
358 collectd modules:])
359 AC_ARG_ENABLE(cpu, AC_HELP_STRING([--disable-cpu], [Disable CPU usage statistics]),, [enable_cpu="yes"])
360 if test "x$enable_cpu" != "xno"
361 then
362         if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$have_sysctlbyname" = "xyes"
363         then
364                 enable_cpu="yes"
365         else
366                 enable_cpu="no"
367         fi
368 fi
369 if test "x$enable_cpu" = "xno"
370 then
371         AC_DEFINE(COLLECT_CPU, 0, [Wether or not to collect CPU usage statistics])
372 fi
373 AM_CONDITIONAL(BUILD_MODULE_CPU, test "x$enable_cpu" = "xyes")
374
375 AC_ARG_ENABLE(cpufreq, AC_HELP_STRING([--disable-cpufreq], [Disable system cpu frequency statistics]),, [enable_cpufreq="yes"])
376 if test "x$enable_cpufreq" != "xno"
377 then
378         if test "x$ac_system" = "xLinux"
379         then
380                 enable_cpufreq="yes"
381         else
382                 enable_cpufreq="no"
383         fi
384 fi
385 if test "x$enable_cpufreq" = "xno"
386 then
387         AC_DEFINE(COLLECT_CPUFREQ, 0, [Wether or not to collect cpu frequency statistics])
388 fi
389 AM_CONDITIONAL(BUILD_MODULE_CPUFREQ, test "x$enable_cpufreq" = "xyes")
390
391 AC_ARG_ENABLE(disk, AC_HELP_STRING([--disable-disk], [Disable disk/partition statistics]),, [enable_disk="yes"])
392 if test "x$enable_disk" != "xno"
393 then
394         if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes"
395         then
396                 enable_disk="yes"
397         else
398                 enable_disk="no"
399         fi
400 fi
401 if test "x$enable_disk" = "xno"
402 then
403         AC_DEFINE(COLLECT_DISK, 0, [Wether or not to collect diskstats])
404 fi
405 AM_CONDITIONAL(BUILD_MODULE_DISK, test "x$enable_disk" = "xyes")
406
407 AC_ARG_ENABLE(hddtemp, AC_HELP_STRING([--disable-hddtemp], [Disable hdd temperature statistics]),, [enable_hddtemp="yes"])
408 if test "x$enable_hddtemp" = "xno"
409 then
410         AC_DEFINE(COLLECT_HDDTEMP, 0, [Wether or not to collect hdd temperature statistics])
411 fi
412 AM_CONDITIONAL(BUILD_MODULE_HDDTEMP, test "x$enable_hddtemp" = "xyes")
413
414 AC_ARG_ENABLE(load, AC_HELP_STRING([--disable-load], [Disable system load statistics]),, [enable_load="yes"])
415 if test "x$enable_load" != "xno"
416 then
417         if test "x$have_getloadavg" = "xyes" -o "x$ac_system" = "xLinux" -o "x$with_libstatgrab" = "xyes"
418         then
419                 enable_load="yes"
420         else
421                 enable_load="no"
422         fi
423 fi
424 if test "x$enable_load" = "xno"
425 then
426         AC_DEFINE(COLLECT_LOAD, 0, [Wether or not to collect system load statistics])
427 fi
428 AM_CONDITIONAL(BUILD_MODULE_LOAD, test "x$enable_load" = "xyes")
429
430 AC_ARG_ENABLE(memory, AC_HELP_STRING([--disable-memory], [Disable memory statistics]),, [enable_memory="yes"])
431 if test "x$enable_memory" != "xno"
432 then
433         if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
434         then
435                 enable_memory="yes"
436         else
437                 enable_memory="no"
438         fi
439 fi
440 if test "x$enable_memory" = "xno"
441 then
442         AC_DEFINE(COLLECT_MEMORY, 0, [Wether or not to collect memory statistics])
443 fi
444 AM_CONDITIONAL(BUILD_MODULE_MEMORY, test "x$enable_memory" = "xyes")
445
446 AC_ARG_ENABLE(nfs, AC_HELP_STRING([--disable-nfs], [Disable nfs statistics]),, [enable_nfs="yes"])
447 if test "x$enable_nfs" != "xno"
448 then
449         if test "x$ac_system" = "xLinux"
450         then
451                 enable_nfs="yes"
452         else
453                 enable_nfs="no"
454         fi
455 fi
456 if test "x$enable_nfs" = "xno"
457 then
458         AC_DEFINE(COLLECT_NFS, 0, [Wether or not to collect nfs statistics])
459 fi
460 AM_CONDITIONAL(BUILD_MODULE_NFS, test "x$enable_nfs" = "xyes")
461
462 AC_ARG_ENABLE(ping, AC_HELP_STRING([--disable-ping], [Disable ping statistics]),, [enable_ping="yes"])
463 if test "x$enable_ping" != "xno"
464 then
465         enable_ping="yes"
466 fi
467 if test "x$enable_ping" = "xno"
468 then
469         AC_DEFINE(COLLECT_PING, 0, [Wether or not to collect ping statistics])
470 fi
471 AM_CONDITIONAL(BUILD_MODULE_PING, test "x$enable_ping" = "xyes")
472
473 AC_ARG_ENABLE(processes, AC_HELP_STRING([--disable-processes], [Disable processes statistics]),, [enable_processes="yes"])
474 if test "x$enable_processes" != "xno"
475 then
476         if test "x$ac_system" = "xLinux" 
477         then
478                 enable_processes="yes"
479         else
480                 enable_processes="no"
481         fi
482 fi
483 if test "x$enable_processes" = "xno"
484 then
485         AC_DEFINE(COLLECT_PROCESSES, 0, [Wether or not to collect processes statistics])
486 fi
487 AM_CONDITIONAL(BUILD_MODULE_PROCESSES, test "x$enable_processes" = "xyes")
488
489 #AC_ARG_ENABLE(quota, AC_HELP_STRING([--enable-quota],
490 #       [Enable quota statistics (experimental, disabled by default)]),
491 #       [], [enable_quota="no"])
492 #if test "x$enable_quota" = "xno"
493 #then
494 #       collect_quota=0
495 #else
496 #       if test "x$enable_quota" = "xyes"
497 #       then
498 #               collect_quota=1
499 #       else
500 #               AC_MSG_NOTICE([Please specify either --enable-quota or --disable-quota; Enabling quota statistics.])
501 #               collect_quota=1
502 #               enable_quota="yes"
503 #       fi
504 #fi
505 #AC_DEFINE_UNQUOTED(COLLECT_QUOTA, [$collect_quota],
506 #       [Wether or not to collect quota statistics])
507 #AM_CONDITIONAL(BUILD_MODULE_QUOTA, test "x$enable_quota" = "xyes")
508
509 AC_ARG_ENABLE(sensors, AC_HELP_STRING([--disable-sensors], [Disable lm_sensors statistics]),, [enable_sensors=$with_lm_sensors])
510 if test "x$enable_sensors" != "xno"
511 then
512         if test "x$with_lm_sensors" = "xyes"
513         then
514                 enable_sensors="yes"
515         else
516                 enable_sensors="no"
517         fi
518 fi
519 if test "x$enable_sensors" = "xno"
520 then
521         AC_DEFINE(COLLECT_SENSORS, 0, [Wether or not to collect lm_sensors statistics])
522 fi
523 AM_CONDITIONAL(BUILD_MODULE_SENSORS, test "x$enable_sensors" = "xyes")
524
525 AC_ARG_ENABLE(serial, AC_HELP_STRING([--disable-serial], [Disable serial statistics]),, [enable_serial="yes"])
526 if test "x$enable_serial" != "xno"
527 then
528         if test "x$ac_system" = "xLinux"
529         then
530                 enable_serial="yes"
531         else
532                 enable_serial="no"
533         fi
534 fi
535 if test "x$enable_serial" = "xno"
536 then
537         AC_DEFINE(COLLECT_SERIAL, 0, [Wether or not to collect serial statistics])
538 fi
539 AM_CONDITIONAL(BUILD_MODULE_SERIAL, test "x$enable_serial" = "xyes")
540
541 AC_ARG_ENABLE(swap, AC_HELP_STRING([--disable-swap], [Disable swap statistics]),, [enable_swap="yes"])
542 if test "x$enable_swap" != "xno"
543 then
544         if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
545         then
546                 enable_swap="yes"
547         else
548                 enable_swap="no"
549         fi
550 fi
551 if test "x$enable_swap" = "xno"
552 then
553         AC_DEFINE(COLLECT_SWAP, 0, [Wether or not to collect swap statistics])
554 fi
555 AM_CONDITIONAL(BUILD_MODULE_SWAP, test "x$enable_swap" = "xyes")
556
557 AC_ARG_ENABLE(tape, AC_HELP_STRING([--disable-tape], [Disable tape statistics]),, [enable_tape="yes"])
558 if test "x$enable_tape" != "xno"
559 then
560         if test "x$with_kstat" = "xyes"
561         then
562                 enable_tape="yes"
563         else
564                 enable_tape="no"
565         fi
566 fi
567 if test "x$enable_tape" = "xno"
568 then
569         AC_DEFINE(COLLECT_TAPE, 0, [Wether or not to collect tape statistics])
570 fi
571 AM_CONDITIONAL(BUILD_MODULE_TAPE, test "x$enable_tape" = "xyes")
572
573 AC_ARG_ENABLE(traffic, AC_HELP_STRING([--disable-traffic], [Disable system traffic statistics]),, [enable_traffic="yes"])
574 if test "x$enable_traffic" != "xno"
575 then
576         if test "x$ac_system" = "xLinux" -o "x$with_kstat" = "xyes" -o "x$with_libstatgrab" = "xyes"
577         then
578                 enable_traffic="yes"
579         else
580                 enable_traffic="no"
581         fi
582 fi
583 if test "x$enable_traffic" = "xno"
584 then
585         AC_DEFINE(COLLECT_TRAFFIC, 0, [Wether or not to collect network traffic statistics])
586 fi
587 AM_CONDITIONAL(BUILD_MODULE_TRAFFIC, test "x$enable_traffic" = "xyes")
588
589 AC_ARG_ENABLE(users, AC_HELP_STRING([--disable-users], [Disable user count statistics]),, [enable_users="yes"])
590 if test "x$enable_users" != "xno"
591 then
592        if test "x$have_getutent" = "xyes"
593        then
594                enable_users="yes"
595        else
596                enable_users="no"
597        fi
598 fi
599 if test "x$enable_users" = "xno"
600 then
601        AC_DEFINE(COLLECT_USERS, 0, [Wether or not to collect user count statistics])
602 fi
603 AM_CONDITIONAL(BUILD_MODULE_USERS, test "x$enable_users" = "xyes")
604
605 AC_OUTPUT(Makefile src/libping/Makefile src/Makefile)
606
607 cat <<EOF;
608
609 Configuration:
610   Libraries:
611     librrd  . . . . . . $with_rrdtool
612     lm_sensors  . . . . $with_lm_sensors
613     libstatgrab . . . . $with_libstatgrab
614     libkstat  . . . . . $with_kstat
615
616   Features:
617     debug . . . . . . . $enable_debug
618     daemon mode . . . . $enable_daemon
619
620   Modules:
621     cpu . . . . . . . . $enable_cpu
622     cpufreq . . . . . . $enable_cpufreq
623     disk  . . . . . . . $enable_disk
624     hddtemp . . . . . . $enable_hddtemp
625     load  . . . . . . . $enable_load
626     memory  . . . . . . $enable_memory
627     nfs . . . . . . . . $enable_nfs
628     ping  . . . . . . . $enable_ping
629     processes . . . . . $enable_processes
630     sensors . . . . . . $enable_sensors
631     serial  . . . . . . $enable_serial
632     swap  . . . . . . . $enable_swap
633     tape  . . . . . . . $enable_tape
634     traffic . . . . . . $enable_traffic
635     users . . . . . . . $enable_users
636
637 EOF