diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-01 22:21:14 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-12-02 21:04:51 +0000 |
commit | 53a2fde368d0161a38bc096d121ef61a9afbbe94 (patch) | |
tree | 85fbf0e7785397caa077823c1cf7a76438bdf5b9 /configure.ac | |
parent | b7fc3a0a6d2329174721f2baccc18fc770bb0d9a (diff) |
Integrate libmnl (minimal netlink) library with libosmocore select loop
This adds an easy way to listen to netlink events form the Linux kernel
from within libosmocore applications.
The new dependency can be disabled via the "--disable-lbimnl" configure flag.
Change-Id: I4f787ee68f0d6d04f0a5655eb57d55b3b326a42f
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7de495bc..10fb4963 100644 --- a/configure.ac +++ b/configure.ac @@ -194,6 +194,19 @@ AS_IF([test "x$systemd_logging" = "xyes"], [ AM_CONDITIONAL(ENABLE_SYSTEMD_LOGGING, test "x$systemd_logging" = "xyes") AC_SUBST(ENABLE_SYSTEMD_LOGGING) +AC_ARG_ENABLE([libmnl], + [AS_HELP_STRING( + [--disable-libmnl], + [Build without netlink socket support via libmnl] + )], + [mnl=$enableval], [mnl="yes"]) +AS_IF([test "x$mnl" = "xyes"], [ + PKG_CHECK_MODULES(LIBMNL, libmnl) + AC_DEFINE([ENABLE_LIBMNL], [1], [Enable netlink socket support via libmnl]) +]) +AM_CONDITIONAL(ENABLE_LIBMNL, test "x$mnl" = "xyes") +AC_SUBST(ENABLE_LIBMNL) + AC_ARG_ENABLE([libsctp], [AS_HELP_STRING([--disable-libsctp], [Do not enable socket multiaddr APIs requiring libsctp])], [ENABLE_LIBSCTP=$enableval], [ENABLE_LIBSCTP="yes"]) AM_CONDITIONAL(ENABLE_LIBSCTP, test x"$ENABLE_LIBSCTP" = x"yes") |