Code

Link the battery plugin to `IOKit' if present.
authorocto <octo>
Tue, 11 Apr 2006 22:24:09 +0000 (22:24 +0000)
committerocto <octo>
Tue, 11 Apr 2006 22:24:09 +0000 (22:24 +0000)
src/Makefile.am

index dc47b88444b47ff1aa763ddf3c163fd0d4970e1a..c554abe97dcd2dd40eef9da3aadad5e083dc6268 100644 (file)
@@ -70,6 +70,9 @@ if BUILD_MODULE_BATTERY
 pkglib_LTLIBRARIES += battery.la
 battery_la_SOURCES = battery.c
 battery_la_LDFLAGS = -module -avoid-version
+if BUILD_WITH_LIBIOKIT
+battery_la_LDFLAGS += -lIOKit
+endif
 collectd_LDADD += "-dlopen" battery.la
 collectd_DEPENDENCIES += battery.la
 endif