FS-10690: [libblade] Added PCRE to linux build, which can be used from system packages
This commit is contained in:
parent
62ee80962f
commit
560fd03842
|
@ -26,9 +26,9 @@ libblade_la_SOURCES += src/blade_identity.c src/blade_rpc.c src/blade_connection
|
||||||
libblade_la_SOURCES += src/blade_protocol.c src/blade_subscription.c src/blade_channel.c
|
libblade_la_SOURCES += src/blade_protocol.c src/blade_subscription.c src/blade_channel.c
|
||||||
libblade_la_SOURCES += src/blade_transport.c src/blade_transport_wss.c
|
libblade_la_SOURCES += src/blade_transport.c src/blade_transport_wss.c
|
||||||
|
|
||||||
libblade_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS)
|
libblade_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(PCRE_CFLAGS)
|
||||||
libblade_la_LDFLAGS = -version-info 0:1:0 -lncurses -lpthread -lm -lconfig -lcivetweb $(AM_LDFLAGS)
|
libblade_la_LDFLAGS = -version-info 0:1:0 -lncurses -lpthread -lm -lconfig -lcivetweb $(AM_LDFLAGS)
|
||||||
libblade_la_LIBADD = libunqlite.la
|
libblade_la_LIBADD = libunqlite.la $(PCRE_LIBS)
|
||||||
|
|
||||||
library_includedir = $(prefix)/include
|
library_includedir = $(prefix)/include
|
||||||
library_include_HEADERS = src/include/blade.h src/include/blade_types.h src/include/blade_stack.h
|
library_include_HEADERS = src/include/blade.h src/include/blade_types.h src/include/blade_stack.h
|
||||||
|
|
|
@ -251,6 +251,7 @@ fi
|
||||||
|
|
||||||
PKG_CHECK_MODULES([SODIUM], [libsodium >= 1.0.0],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([libsodium is required])])
|
PKG_CHECK_MODULES([SODIUM], [libsodium >= 1.0.0],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([libsodium is required])])
|
||||||
PKG_CHECK_MODULES([LIBKS], [libks >= 0.1],[AC_MSG_RESULT([yes])],[AC_MSG_WARN([libks is required, but not found.])])
|
PKG_CHECK_MODULES([LIBKS], [libks >= 0.1],[AC_MSG_RESULT([yes])],[AC_MSG_WARN([libks is required, but not found.])])
|
||||||
|
PKG_CHECK_MODULES([PCRE], [libpcre >= 7.8])
|
||||||
|
|
||||||
# Enable clang address sanitizer bit build
|
# Enable clang address sanitizer bit build
|
||||||
AC_ARG_ENABLE(address_sanitizer,
|
AC_ARG_ENABLE(address_sanitizer,
|
||||||
|
|
|
@ -293,7 +293,7 @@ KS_DECLARE(ks_status_t) blade_restmgr_data_set(blade_restmgr_t *brestmgr, void *
|
||||||
|
|
||||||
int blade_restmgr_handle_begin_request(struct mg_connection *conn)
|
int blade_restmgr_handle_begin_request(struct mg_connection *conn)
|
||||||
{
|
{
|
||||||
struct mg_request_info *info = mg_get_request_info(conn);
|
const struct mg_request_info *info = mg_get_request_info(conn);
|
||||||
|
|
||||||
ks_log(KS_LOG_DEBUG, "Request for: %s on %s\n", info->request_uri, info->request_method);
|
ks_log(KS_LOG_DEBUG, "Request for: %s on %s\n", info->request_uri, info->request_method);
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#include <sodium.h>
|
#include <sodium.h>
|
||||||
#include <libconfig.h>
|
#include <libconfig.h>
|
||||||
#include <civetweb.h>
|
#include <civetweb.h>
|
||||||
|
#include <pcre.h>
|
||||||
#include "unqlite.h"
|
#include "unqlite.h"
|
||||||
#include "blade_types.h"
|
#include "blade_types.h"
|
||||||
#include "blade_stack.h"
|
#include "blade_stack.h"
|
||||||
|
|
Loading…
Reference in New Issue