From fe3cd8b75c242397d35cd857cbb5b477c3dccf14 Mon Sep 17 00:00:00 2001 From: octo Date: Tue, 11 Apr 2006 22:24:09 +0000 Subject: [PATCH] Link the battery plugin to `IOKit' if present. --- src/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index dc47b884..c554abe9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 -- 2.30.2