]> git.ipfire.org Git - thirdparty/openvpn.git/commit
configure: improve FreeBSD DCO check
authorKristof Provost <kp@FreeBSD.org>
Wed, 1 Mar 2023 09:18:48 +0000 (10:18 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 2 Mar 2023 17:37:29 +0000 (18:37 +0100)
commit86fb085b6d2582916ef59b4bd8bd5e4a072964a3
tree3f4e89e0f2c6e70ae9751f5e7d83759a9b6c6853
parentb9a9de156bc3ad517bfc6d1042ad0ef0350b638e
configure: improve FreeBSD DCO check

The libnv check doesn't work as expected on FreeBSD 14.x, because
FreeBSD has namespaced libnv to avoid conflicts with libnvpair.
This means that the naive check generated by AC_CHECK_LIB() fails to
detect libnv even though it's present.

Instead check for the if_ovpn.h header. This is a more accurate check
anyway, as libnv is present on FreeBSD versions prior to 14 (which do
not support DCO).

Signed-off-by: Kristof Provost <kprovost@netgate.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20230301091848.80760-1-kprovost@netgate.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26314.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 6f261673dee26ae8cfdf58f77038098d4f81d84a)
configure.ac