Blame SOURCES/apr-1.7.0-r1894167.patch

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