Blame SOURCES/apr-1.7.0-r1894167.patch

d657f6
# ./pullrev.sh 1894167
d657f6
http://svn.apache.org/viewvc?view=revision&revision=1894167
d657f6
d657f6
--- apr-1.7.0/build/apr_network.m4
d657f6
+++ apr-1.7.0/build/apr_network.m4
d657f6
@@ -906,8 +906,16 @@
d657f6
 dnl
d657f6
 AC_DEFUN([APR_CHECK_SCTP],
d657f6
 [
d657f6
-  AC_CACHE_CHECK([whether SCTP is supported], [apr_cv_sctp], [
d657f6
-  AC_TRY_RUN([
d657f6
+AC_ARG_ENABLE([sctp],
d657f6
+    APR_HELP_STRING([--disable-sctp], [disable SCTP protocol support]),
d657f6
+    [apr_wants_sctp=$enableval],
d657f6
+    [apr_wants_sctp=any])
d657f6
+
d657f6
+if test "$apr_wants_sctp" = no; then
d657f6
+    apr_cv_sctp=no
d657f6
+else
d657f6
+    AC_CACHE_CHECK([whether SCTP is supported], [apr_cv_sctp], [
d657f6
+    AC_TRY_RUN([
d657f6
 #ifdef HAVE_SYS_TYPES_H
d657f6
 #include <sys/types.h>
d657f6
 #endif
d657f6
@@ -932,7 +940,12 @@
d657f6
        exit(2);
d657f6
     exit(0);
d657f6
 }], [apr_cv_sctp=yes], [apr_cv_sctp=no], [apr_cv_sctp=no])])
d657f6
+fi
d657f6
 
d657f6
+if test "${apr_wants_sctp}X${apr_cv_sctp}" = yesXno; then
d657f6
+   AC_MSG_ERROR([SCTP support requested but not available])
d657f6
+fi
d657f6
+
d657f6
 if test "$apr_cv_sctp" = "yes"; then
d657f6
     have_sctp=1
d657f6
 else