diff options
author | dormando <dormando@rydia.net> | 2020-06-10 22:56:07 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2021-10-05 12:21:25 -0700 |
commit | d22b66483bce8843110795609386edc6ebf65b69 (patch) | |
tree | ac2107f9450c857d9ed125a17aef79a4158da7f9 /configure.ac | |
parent | 56dc81db316a0b957415e371d20c683fea9d7d2f (diff) | |
download | memcached-d22b66483bce8843110795609386edc6ebf65b69.tar.gz |
proxy: initial commit.
See BUILD for compilation details.
See t/startfile.lua for configuration examples.
(see also https://github.com/memcached/memcached-proxylibs for
extensions, config libraries, more examples)
NOTE: io_uring mode is _not stable_, will crash.
As of this commit it is not recommended to run the proxy in production.
If you are interested please let us know, as we are actively stabilizing
for production use.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0985f07..a0851f2 100644 --- a/configure.ac +++ b/configure.ac @@ -114,6 +114,12 @@ AC_ARG_ENABLE(static, AC_ARG_ENABLE(unix_socket, [AS_HELP_STRING([--disable-unix-socket], [Disable unix domain socket])]) +AC_ARG_ENABLE(proxy, + [AS_HELP_STRING([--enable-proxy], [Enable proxy code EXPERIMENTAL])]) + +AC_ARG_ENABLE(proxy-uring, + [AS_HELP_STRING([--enable-proxy-uring], [Enable proxy io_uring code EXPERIMENTAL])]) + dnl ********************************************************************** dnl DETECT_SASL_CB_GETCONF dnl @@ -217,6 +223,18 @@ if test "x$enable_unix_socket" = "xno"; then AC_DEFINE([DISABLE_UNIX_SOCKET],1,[Set to nonzero if you want to disable unix domain socket]) fi +if test "x$enable_proxy" = "xyes"; then + AC_DEFINE([PROXY],1,[Set to nonzero if you want to enable proxy code]) + CPPFLAGS="-Ivendor/lua/src -Ivendor/liburing/src/include $CPPFLAGS" + dnl lua needs math lib. + LIBS="$LIBS -lm -ldl" +fi + +if test "x$enable_proxy_uring" = "xyes"; then + AC_DEFINE([HAVE_LIBURING],1,[Set to nonzero if you want to enable proxy uring handling]) + CPPFLAGS="-Ivendor/liburing/src/include $CPPFLAGS" +fi + AM_CONDITIONAL([BUILD_DTRACE],[test "$build_dtrace" = "yes"]) AM_CONDITIONAL([DTRACE_INSTRUMENT_OBJ],[test "$dtrace_instrument_obj" = "yes"]) AM_CONDITIONAL([ENABLE_SASL],[test "$enable_sasl" = "yes"]) @@ -226,6 +244,8 @@ AM_CONDITIONAL([ENABLE_TLS],[test "$enable_tls" = "yes"]) AM_CONDITIONAL([ENABLE_ASAN],[test "$enable_asan" = "yes"]) AM_CONDITIONAL([ENABLE_STATIC],[test "$enable_static" = "yes"]) AM_CONDITIONAL([DISABLE_UNIX_SOCKET],[test "$enable_unix_socket" = "no"]) +AM_CONDITIONAL([ENABLE_PROXY],[test "$enable_proxy" = "yes"]) +AM_CONDITIONAL([ENABLE_PROXY_URING],[test "$enable_proxy_uring" = "yes"]) AC_SUBST(DTRACE) |