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 <jafar@atcorp.com>
This commit is contained in:
Jafar Al-Gharaibeh 2017-08-01 16:26:01 -05:00
parent ea2fd55a65
commit 004174c77f

View File

@ -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])