diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2016-12-13 16:39:50 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2016-12-13 16:39:50 +0300 |
commit | 176ab10f7b26785f27fa7dd451ce28d70692311c (patch) | |
tree | 6e766e7fae9afe0723d251c171dbe75d09be4693 /configure.ac | |
parent | decd1976beb539caa87f62f1a04a6150fe004232 (diff) |
....I..PS. [ZBXNEXT-3386] added libevent to server and proxy build options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3489dfd14be..84eb58755d9 100644 --- a/configure.ac +++ b/configure.ac @@ -1325,7 +1325,7 @@ if test "x$server" = "xyes" || test "x$proxy" = "xyes"; then PROXY_LIBS="$PROXY_LIBS $SSH2_LIBS" AC_SUBST(SSH2_CFLAGS) - + found_openipmi="no" dnl Check for libOpenIPMI [by default - skip] LIBOPENIPMI_CHECK_CONFIG([no]) @@ -1343,6 +1343,19 @@ if test "x$server" = "xyes" || test "x$proxy" = "xyes"; then PROXY_LIBS="$PROXY_LIBS $OPENIPMI_LIBS" AC_SUBST(OPENIPMI_CFLAGS) + + dnl Check for libevent + LIBEVENT_CHECK_CONFIG([no]) + if test "x$found_libevent" != "xyes"; then + AC_MSG_ERROR([Unable to use libevent (libevent check failed)]) + fi + SERVER_LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS" + SERVER_LIBS="$LIBS $LIBEVENT_LIBS" + + PROXY_LDFLAGS="$LDFLAGS $LIBEVENT_LDFLAGS" + PROXY_LIBS="$LIBS $LIBEVENT_LIBS" + + AC_SUBST(LIBEVENET_CFLAGS) fi dnl Check for mbed TLS (PolarSSL) libpolarssl [by default - skip] |