summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac4
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"])])