aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-10-14 11:05:45 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-11-08 10:15:10 +0100
commit9730ec7618c63b7ab74dd2433aaa6d1675f26518 (patch)
tree160a074fed5f412c161727d9228963cfd1274f11 /erts/configure.in
parent6f3e884ff20381724c995dd7cbf05eec3a164a7b (diff)
downloadotp-9730ec7618c63b7ab74dd2433aaa6d1675f26518.tar.gz
otp-9730ec7618c63b7ab74dd2433aaa6d1675f26518.tar.bz2
otp-9730ec7618c63b7ab74dd2433aaa6d1675f26518.zip
Configure enable libsctp dependency
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in18
1 files changed, 13 insertions, 5 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 6a26bbf06a..7455516def 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -196,12 +196,18 @@ AS_HELP_STRING([--disable-kernel-poll], [disable kernel poll support]),
AC_ARG_ENABLE(sctp,
-AS_HELP_STRING([--enable-sctp], [enable sctp support (default)])
+AS_HELP_STRING([--enable-sctp], [enable sctp support (default)
+to on demand load the SCTP library in runtime if needed])
+AS_HELP_STRING([--enable-sctp=lib], [enable sctp support
+to link against the SCTP library])
AS_HELP_STRING([--disable-sctp], [disable sctp support]),
-[ case "$enableval" in
- no) enable_sctp=no ;;
- *) enable_sctp=yes ;;
- esac ], enable_sctp=unknown)
+[ case "x$enableval" in
+ xno|xyes|xlib|x)
+ ;;
+ x*)
+ AC_MSG_ERROR("invalid value --enable-sctp=$enableval")
+ ;;
+ esac ])
AC_ARG_ENABLE(hipe,
AS_HELP_STRING([--enable-hipe], [enable hipe support])
@@ -1710,6 +1716,8 @@ if test "x$enable_sctp" != "xno" ; then
fi
if test x"$ac_cv_header_netinet_sctp_h" = x"yes"; then
+ AS_IF([test "x$enable_sctp" = "xlib"],
+ AC_CHECK_LIB(sctp, sctp_bindx))
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,