aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorjonasf <[email protected]>2016-06-30 15:06:17 +0200
committerjonasf <[email protected]>2016-06-30 15:43:54 +0200
commit52fae83743a6e84d719f4f82fe45e6e0efdbd6f0 (patch)
tree4ff9a5a8f624ef28f5b4298a50ff1a8a9d7dd9a3 /erts/configure.in
parent7c91a9c8d4a05ab254b89a6b1d700ff794017579 (diff)
downloadotp-52fae83743a6e84d719f4f82fe45e6e0efdbd6f0.tar.gz
otp-52fae83743a6e84d719f4f82fe45e6e0efdbd6f0.tar.bz2
otp-52fae83743a6e84d719f4f82fe45e6e0efdbd6f0.zip
Check libsctp for sctp funcs in configure.in
Call AC_CHECK_LIB before calling AC_CHECK_FUNCS to check for functions in libsctp. Otherwise AC_CHECK_FUNCS will not link with libsctp to see if function exists.
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 81ecad4f51..c5b08547cb 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -1676,7 +1676,8 @@ if test "x$enable_sctp" != "xno" ; then
fi
if test x"$ac_cv_header_netinet_sctp_h" = x"yes"; then
- AC_CHECK_FUNCS([sctp_bindx sctp_peeloff sctp_getladdrs sctp_freeladdrs sctp_getpaddrs sctp_freepaddrs])
+ AC_CHECK_LIB(sctp, sctp_bindx)
+ AC_CHECK_FUNCS([sctp_peeloff sctp_getladdrs sctp_freeladdrs sctp_getpaddrs sctp_freepaddrs])
AC_CHECK_DECLS([SCTP_UNORDERED, SCTP_ADDR_OVER, SCTP_ABORT,
SCTP_EOF, SCTP_SENDALL, SCTP_ADDR_CONFIRMED,
SCTP_DELAYED_ACK_TIME,