projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build system: Search for and link with libcollectdclient.
[collection4.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
ebbc6c6
..
e27fd54
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-14,6
+14,7
@@
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LEX
AC_PROG_YACC
AC_PROG_INSTALL
AC_PROG_LEX
AC_PROG_YACC
+PKG_PROG_PKG_CONFIG
AM_CONDITIONAL(COMPILER_IS_GCC, test "x$GCC" = "xyes")
#
AM_CONDITIONAL(COMPILER_IS_GCC, test "x$GCC" = "xyes")
#
@@
-32,4
+33,8
@@
AC_CHECK_LIB(rrd_th, rrd_graph_v, [],
AC_CHECK_LIB(yajl, yajl_gen_alloc, [],
[AC_MSG_ERROR(cannot find libyajl.)])
AC_CHECK_LIB(yajl, yajl_gen_alloc, [],
[AC_MSG_ERROR(cannot find libyajl.)])
+PKG_CHECK_MODULES([libcollectdclient], [libcollectdclient],
+ [with_libcollectdclient="yes"],
+ [with_libcollectdclient="no"])
+
AC_OUTPUT(Makefile share/Makefile src/Makefile)
AC_OUTPUT(Makefile share/Makefile src/Makefile)