File: 03-sctp.patch

package info (click to toggle)
iperf3 3.12-1%2Bdeb12u2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 3,064 kB
  • sloc: ansic: 13,652; sh: 4,767; makefile: 241; python: 134
file content (31 lines) | stat: -rw-r--r-- 1,123 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: SCTP workaround for kfreebsd
 Freebsd has SCTP in the kernel but no sctp library is available,
 then iperf3 fails to compile because the lack of the library.
 .
 This patch moves the search for the library before kernel headers checks
Author: Roberto Lumbreras <rover@debian.org>
Forwarded: no
Index: iperf3-3.12/configure.ac
===================================================================
--- iperf3-3.12.orig/configure.ac	2022-12-01 18:35:05.415897604 +0100
+++ iperf3-3.12/configure.ac	2022-12-01 18:35:05.415897604 +0100
@@ -113,9 +113,10 @@
 # Check for SCTP support
 if $try_sctp; then
 AC_CHECK_HEADERS([sys/socket.h])
+AC_SEARCH_LIBS(sctp_bindx, [sctp])
+if test "x$ac_cv_search_sctp_bindx" != "xno"; then
 AC_CHECK_HEADERS([netinet/sctp.h],
 		 AC_DEFINE([HAVE_SCTP_H], [1], [Have SCTP support.])
-		 AC_SEARCH_LIBS(sctp_bindx, [sctp])
 		 AC_CHECK_TYPES([struct sctp_assoc_value], [], [],
 				[[#include <netinet/sctp.h>]]),
 		 [],
@@ -124,6 +125,7 @@
 #endif
 ])
 fi
+fi
 
 AC_CHECK_HEADER([endian.h],
 		AC_DEFINE([HAVE_ENDIAN_H], [1], [Define to 1 if you have the <endian.h> header file.]),