freeswitch plugin: Modified -L option in Makefile.am for libesl for freeswitch plugin
[collectd.git] / src / Makefile.am
index 30b0710..d8c6bf6 100644 (file)
@@ -325,6 +325,15 @@ collectd_LDADD += "-dlopen" filecount.la
 collectd_DEPENDENCIES += filecount.la
 endif
 
+if BUILD_PLUGIN_FREESWITCH
+pkglib_LTLIBRARIES += freeswitch.la
+freeswitch_la_SOURCES = freeswitch.c
+freeswitch_la_LDFLAGS = -module -avoid-version
+freeswitch_la_LIBADD = -lesl -Llibesl
+collectd_LDADD += "-dlopen" freeswitch.la
+collectd_DEPENDENCIES += freeswitch.la
+endif
+
 if BUILD_PLUGIN_GMOND
 pkglib_LTLIBRARIES += gmond.la
 gmond_la_SOURCES = gmond.c
@@ -941,8 +950,12 @@ endif
 if BUILD_PLUGIN_TOKYOTYRANT
 pkglib_LTLIBRARIES += tokyotyrant.la
 tokyotyrant_la_SOURCES = tokyotyrant.c
-tokyotyrant_la_LDFLAGS = -module -avoid-version
+tokyotyrant_la_CPPFLAGS  = $(AM_CPPFLAGS) $(BUILD_WITH_LIBTOKYOTYRANT_CPPFLAGS)
+tokyotyrant_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBTOKYOTYRANT_LDFLAGS)
 tokyotyrant_la_LIBADD  = $(BUILD_WITH_LIBTOKYOTYRANT_LIBS)
+if BUILD_WITH_LIBSOCKET
+tokyotyrant_la_LIBADD += -lsocket
+endif
 collectd_LDADD += "-dlopen" tokyotyrant.la
 collectd_DEPENDENCIES += tokyotyrant.la
 endif