summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a6a4d8)
raw | patch | inline | side by side (parent: 9a6a4d8)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 8 Apr 2010 20:38:11 +0000 (22:38 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 8 Apr 2010 20:38:11 +0000 (22:38 +0200) |
The dependency for the module is still missing, but I don't know how to
specify that from the top of my head.
specify that from the top of my head.
configure.in | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.in b/configure.in
index c15cbceaad8ad1a76c8f897ae64c7c21cbedec78..84cccba72855cb259e71be74995af4f774a7eaf6 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_PROG_YACC
PKG_PROG_PKG_CONFIG
-AC_CHECK_PROG([HAVE_PROTOC_C], [protoc-c], [yes], [no])
+AC_CHECK_PROG([have_protoc_c], [protoc-c], [yes], [no])
+AM_CONDITIONAL(HAVE_PROTOC_C, test "x$have_protoc_c" = "xyes")
AC_MSG_CHECKING([for kernel type ($host_os)])
case $host_os in
AC_PLUGIN([oracle], [$with_oracle], [Oracle plugin])
AC_PLUGIN([perl], [$plugin_perl], [Embed a Perl interpreter])
# FIXME: Check for libevent, too.
-AC_PLUGIN([pinba], [$HAVE_PROTOC_C], [Pinba statistics])
+AC_PLUGIN([pinba], [$have_protoc_c], [Pinba statistics])
AC_PLUGIN([ping], [$with_liboping], [Network latency statistics])
AC_PLUGIN([postgresql], [$with_libpq], [PostgreSQL database statistics])
AC_PLUGIN([powerdns], [yes], [PowerDNS statistics])
libxmms . . . . . . . $with_libxmms
libyajl . . . . . . . $with_libyajl
libevent . . . . . . $with_libevent
- protobuf-c . . . . . $HAVE_PROTOC_C
+ protobuf-c . . . . . $have_protoc_c
oracle . . . . . . . $with_oracle
python . . . . . . . $with_python
diff --git a/src/Makefile.am b/src/Makefile.am
index 53cfac2f075f593d1a65b49325e39efd73e0bdf2..ca43fc9fe64c93d5cf47880d7bd4fff42e7356e0 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
if BUILD_PLUGIN_PINBA
pkglib_LTLIBRARIES += pinba.la
-pinba_la_SOURCES = pinba.c pinba-pb.c
+pinba_la_SOURCES = pinba.c pinba.pb-c.c pinba.pb-c.h
pinba_la_LDFLAGS = -module -avoid-version
collectd_LDADD += "-dlopen" pinba.la
collectd_DEPENDENCIES += pinba.la
echo "$@ has some POD errors!"; false; \
fi
+if HAVE_PROTOC_C
+pinba.pb-c.c pinba.pb-c.h: pinba.proto
+ protoc-c --c_out $(builddir) pinba.proto
+endif
+
install-exec-hook:
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
if test -e $(DESTDIR)$(sysconfdir)/collectd.conf; \