diff options
| author | Anton <anton@picapica> | 2019-03-13 19:54:08 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-03-13 19:54:08 +0400 |
| commit | 9ef382841dda8c20b5ad1d6be3ab965da6ce2c2f (patch) | |
| tree | 7cd62f35cd77b8814f212469983acd5b4d1b2a1a | |
| parent | daa60475ed2e92b9afd89b1c4e32bbeda2c26315 (diff) | |
| download | pica-pica-9ef382841dda8c20b5ad1d6be3ab965da6ce2c2f.tar.gz pica-pica-9ef382841dda8c20b5ad1d6be3ab965da6ce2c2f.zip | |
link only pica-node with libevent, prevents linking libevent to pica-client
| -rw-r--r-- | Makefile.am | 2 | ||||
| -rw-r--r-- | configure.ac | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 5391006..a5c5891 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,7 +28,7 @@ pica_node_SOURCES = PICA_node.c PICA_msgproc.c PICA_nodeaddrlist.c \ dist_man_MANS = pica-node.8 pica-node.conf.5 pica_node_CPPFLAGS = -DPICA_INSTALLPREFIX=\"$(prefix)\" -DPICA_SYSCONFDIR=\"$(sysconfdir)\" -DPICA_LOCALSTATEDIR=\"$(localstatedir)\" - +pica_node_LDADD = $(PICA_NODE_LIBS) pkglocalstatedir = $(localstatedir)/pica-node dist_pkglocalstate_DATA = nodelist.db diff --git a/configure.ac b/configure.ac index a49ae64..5390f05 100644 --- a/configure.ac +++ b/configure.ac @@ -94,8 +94,8 @@ AM_CONDITIONAL([PICA_CLIENT], [test "x$PICA_CLIENT_ENABLED" = "xyes"]) #pica-node tests AS_IF([test "x$PICA_NODE_ENABLED" = "xyes"],[ AC_CHECK_LIB([sqlite3], [sqlite3_open], [], [AC_MSG_ERROR(["libsqlite3 library not found"])]) -AC_CHECK_LIB([event], [event_get_version], [], [AC_MSG_ERROR(["libevent not found"])]) - +AC_CHECK_LIB([event], [event_get_version], [PICA_NODE_LIBS="-levent"], [AC_MSG_ERROR(["libevent not found"])]) +AC_SUBST([PICA_NODE_LIBS]) AC_CHECK_PROG([SQLITE3], [sqlite3], [yes], [no]) AS_IF([test "x$SQLITE3" != xyes], [ AC_MSG_ERROR(["sqlite3 program not found"])]) |
