From 004174c77fd6df2289ddc5984e88a1281a4f65ad Mon Sep 17 00:00:00 2001 From: Jafar Al-Gharaibeh Date: Tue, 1 Aug 2017 16:26:01 -0500 Subject: [PATCH] config: Disable pimd on OpenBSD 6.1 OpenBSD dropped support for PIM in 6.1. Error out if the user does not disable pimd explicitly. Signed-off-by: Jafar Al-Gharaibeh --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index a67f5934e3..6b5cd19a5f 100755 --- a/configure.ac +++ b/configure.ac @@ -868,6 +868,16 @@ case "$host_os" in AC_DEFINE(OPEN_BSD,,OpenBSD) AC_DEFINE(KAME,1,KAME IPv6) + + if test "x${enable_pimd}" != "xno"; then + case "$host_os" in + openbsd6.0) + ;; + openbsd[6-9]*) + AC_MSG_FAILURE([pimd cannot be enabled as PIM support has been removed from OpenBSD 6.1]) + ;; + esac + fi ;; *) AC_MSG_RESULT([BSD]) -- 2.39.5