summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-06-27 21:22:11 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-07-09 11:44:07 -0400
commit90acbcf20b5f896ca8f631923afe946c90d90de7 (patch)
treea4942121f0c624d1ea6f16bf093924fade010b88 /src/conf_macros.m4
parent801fcc63a9ec83d76d8d027758f9a0357b34890f (diff)
downloadsssd_unused-90acbcf20b5f896ca8f631923afe946c90d90de7.zip
sssd_unused-90acbcf20b5f896ca8f631923afe946c90d90de7.tar.gz
sssd_unused-90acbcf20b5f896ca8f631923afe946c90d90de7.tar.xz
Use netlink to detect going online
Integrates libnl to detect adding routes. When a route is added, the offline status of all back ends is reset. This patch adds no heuristics to detect whether back end went offline. Fixes: #456
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index 65de7fb..cb4b325 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -233,3 +233,19 @@ AC_DEFUN([WITH_SEMANAGE],
fi
AM_CONDITIONAL([BUILD_SEMANAGE], [test x"$with_semanage" = xyes])
])
+
+AC_DEFUN([WITH_LIBNL],
+ [ AC_ARG_WITH([libnl],
+ [AC_HELP_STRING([--with-libnl],
+ [Whether to build with libnetlink support [yes]]
+ )
+ ],
+ [],
+ with_libnl=yes
+ )
+ if test x"$with_libnl" = xyes; then
+ HAVE_LIBNL=1
+ AC_SUBST(HAVE_LIBNL)
+ AC_DEFINE_UNQUOTED(HAVE_LIBNL, 1, [Build with libnetlink support])
+ fi
+ ])