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 dc47b88..c554abe 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