aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-10-13 15:05:19 +0200
committerRaimo Niskanen <[email protected]>2016-10-13 15:05:19 +0200
commit0c422708ed793a1ee107848f41bf591e4e0a9725 (patch)
tree7c6631d5d0e1f452d838a2707c8a82b0b60d829c /erts
parent9d3fc7af810302009c031c642be7c867e211d815 (diff)
downloadotp-0c422708ed793a1ee107848f41bf591e4e0a9725.tar.gz
otp-0c422708ed793a1ee107848f41bf591e4e0a9725.tar.bz2
otp-0c422708ed793a1ee107848f41bf591e4e0a9725.zip
Revert "Check libsctp for sctp funcs in configure.in"
This reverts commit 52fae83743a6e84d719f4f82fe45e6e0efdbd6f0: 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. Reverting to the old behaviour of not checking for libsctp before checking for sctp functions. Then it works on Linux by loading libsctp and looking up the symbols i runtime, and it works on FreeBSD since there is no separate libsctp to link against - the functions are part of the default system libraries.
Diffstat (limited to 'erts')
-rw-r--r--erts/configure.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 69b9af3c8c..f2c272d292 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -1726,8 +1726,7 @@ if test "x$enable_sctp" != "xno" ; then
fi
if test x"$ac_cv_header_netinet_sctp_h" = x"yes"; then
- AC_CHECK_LIB(sctp, sctp_bindx)
- AC_CHECK_FUNCS([sctp_peeloff sctp_getladdrs sctp_freeladdrs sctp_getpaddrs sctp_freepaddrs])
+ AC_CHECK_FUNCS([sctp_bindx 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,