src/Makefile.am: Define `PREFIX' for the unixsock plugin.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 23 Apr 2007 05:43:07 +0000 (07:43 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 23 Apr 2007 05:43:07 +0000 (07:43 +0200)
src/Makefile.am

index 72d67b3..a230283 100644 (file)
@@ -509,10 +509,8 @@ endif
 if BUILD_MODULE_UNIXSOCK
 pkglib_LTLIBRARIES += unixsock.la
 unixsock_la_SOURCES = unixsock.c
-unixsock_la_LDFLAGS = -module -avoid-version
-if BUILD_WITH_LIBPTHREAD
-unixsock_la_LDFLAGS += -lpthread
-endif
+unixsock_la_CPPFLAGS = -DPREFIX='"${prefix}"'
+unixsock_la_LDFLAGS = -module -avoid-version -lpthread
 collectd_LDADD += "-dlopen" unixsock.la
 collectd_DEPENDENCIES += unixsock.la
 endif