From d37d3c8181cb232f79f676828d34699bbee24f5e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 7 Jan 2021 13:49:47 +0100 Subject: configure.ac: Ensure netinet/sctp.h is present we unconditionally depend on this header file, yet nothing in configure.ac ensures its presence. Building on a clean Debian 10 with all existing dependencies installed passes configure but fails at compilation time. Change-Id: I0a4407ef6ee512ad5ea8775d90acfe1c4fa67cd0 --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 692db57..c186855 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,8 @@ AS_CASE(["$LD"],[*clang*], [AS_CASE(["${host_os}"], [*linux*],[archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'])]) +AC_CHECK_HEADERS(netinet/sctp.h,,AC_MSG_ERROR(netinet/sctp.h not found)) + dnl check for pkg-config (explained in detail in libosmocore/configure.ac) AC_PATH_PROG(PKG_CONFIG_INSTALLED, pkg-config, no) if test "x$PKG_CONFIG_INSTALLED" = "xno"; then -- cgit v1.2.3