AC_CONFIG_FILES(src/libcollectdclient/lcc_features.h)
-AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/libiptc/Makefile src/libcollectdclient/Makefile src/libcollectdclient/libcollectdclient.pc src/liboconfig/Makefile bindings/Makefile bindings/java/Makefile)
+AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/libesl/Makefile src/libiptc/Makefile src/libcollectdclient/Makefile src/libcollectdclient/libcollectdclient.pc src/liboconfig/Makefile bindings/Makefile bindings/java/Makefile)
if test "x$with_librrd" = "xyes" \
&& test "x$librrd_threadsafe" != "xyes"
SUBDIRS = libcollectdclient
+if BUILD_PLUGIN_FREESWITCH
+SUBDIRS += libesl
+endif
if BUILD_WITH_OWN_LIBIPTC
SUBDIRS += libiptc
endif
if BUILD_PLUGIN_FREESWITCH
pkglib_LTLIBRARIES += freeswitch.la
freeswitch_la_SOURCES = freeswitch.c
+freeswitch_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/libesl
freeswitch_la_LDFLAGS = -module -avoid-version
-freeswitch_la_LIBADD = -lesl -Llibesl
+freeswitch_la_LIBADD = libesl/libesl.la
+freeswitch_la_DEPENDENCIES = libesl/libesl.la
collectd_LDADD += "-dlopen" freeswitch.la
collectd_DEPENDENCIES += freeswitch.la
endif
--- /dev/null
+AUTOMAKE_OPTIONS = foreign no-dependencies
+
+#EXTRA_DIST = libiptc.c README.collectd
+
+if COMPILER_IS_GCC
+AM_CFLAGS = -Wall -Werror
+endif
+
+noinst_LTLIBRARIES = libesl.la
+
+libesl_la_SOURCES = esl.c \
+ esl_config.c \
+ esl_config.h \
+ esl_event.c \
+ esl_event.h \
+ esl.h \
+ esl_oop.cpp \
+ esl_oop.h \
+ esl_threadmutex.c \
+ esl_threadmutex.h
+#libesl_la_CFLAGS = -I$(KERNEL_DIR)/include
+
+