]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Conf: Check for enabled pthreads when using BFD
authorDavid Petera <david.petera@nic.cz>
Mon, 24 Nov 2025 13:39:38 +0000 (14:39 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 17 Dec 2025 13:00:08 +0000 (14:00 +0100)
BFD protocol strictly depends on pthreads being enabled,
but the compilation configuration checks do not reflect it now.

Add a check for pthreads when BFD is included in the
configured protocols.

Thank you Alexander Zubkov <green@qrator.net> for the report and patch!

Closes: #306
configure.ac

index cf6a2d581faed39829d1cfe0d2939e08db6c5451..fc7f76e208869ef2eb28c04abda60927ede8785b 100644 (file)
@@ -340,6 +340,10 @@ AC_MSG_CHECKING([protocols])
 protocols=`echo "$with_protocols" | sed 's/,/ /g'`
 if test "$protocols" = no ; then protocols= ; fi
 for a in $protocols ; do
+  if test "$a" = bfd && ! test "$enable_pthreads" = yes ; then
+    AC_MSG_RESULT([failed])
+    AC_MSG_ERROR([Protocol $a requires pthreads])
+  fi
   if ! test -f $srcdir/proto/$a/Makefile ; then
     AC_MSG_RESULT([failed])
     AC_MSG_ERROR([Requested protocol $a not found])