You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2015/09/23 14:06:44 UTC
svn commit: r1704826 - /httpd/httpd/trunk/modules/http2/config.m4
Author: icing
Date: Wed Sep 23 12:06:41 2015
New Revision: 1704826
URL: http://svn.apache.org/viewvc?rev=1704826&view=rev
Log:
adding --enable-http2 as preferred config option
Modified:
httpd/httpd/trunk/modules/http2/config.m4
Modified: httpd/httpd/trunk/modules/http2/config.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/config.m4?rev=1704826&r1=1704825&r2=1704826&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/config.m4 (original)
+++ httpd/httpd/trunk/modules/http2/config.m4 Wed Sep 23 12:06:41 2015
@@ -90,7 +90,7 @@ AC_DEFUN(APACHE_CHECK_NGHTTP2,[
PKG_CONFIG_PATH="${ap_nghttp2_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH}"
export PKG_CONFIG_PATH
fi
- AC_ARG_ENABLE(nghttp2-staticlib-deps,APACHE_HELP_STRING(--enable-nghttp2-staticlib-deps,[link mod_h2 with dependencies of libnghttp2's static libraries (as indicated by "pkg-config --static"). Must be specified in addition to --enable-h2.]), [
+ AC_ARG_ENABLE(nghttp2-staticlib-deps,APACHE_HELP_STRING(--enable-nghttp2-staticlib-deps,[link mod_h2 with dependencies of libnghttp2's static libraries (as indicated by "pkg-config --static"). Must be specified in addition to --enable-http2.]), [
if test "$enableval" = "yes"; then
PKGCONFIG_LIBOPTS="--static"
fi
@@ -167,8 +167,24 @@ AC_DEFUN(APACHE_CHECK_NGHTTP2,[
])
-dnl # hook module into the Autoconf mechanism (--enable-h2 option)
-APACHE_MODULE(h2, [HTTP/2 support (mod_h2)], $h2_objs, , most, [
+dnl # hook module into the Autoconf mechanism (--enable-http2 or
+dnl # --enabled-h2 option,)
+APACHE_MODULE(http2, [HTTP/2 protocol handling in addition to HTTP protocol
+handling. Implemented by mod_h2. This module requires a libnghttp2 installation.
+See --with-nghttp2 on how to manage non-standard locations. This module
+is usually linked shared and requires loading. ], $h2_objs, , most, [
+ APACHE_CHECK_NGHTTP2
+ if test "$ac_cv_nghttp2" = "yes" ; then
+ if test "x$enable_ssl" = "xshared"; then
+ # The only symbol which needs to be exported is the module
+ # structure, so ask libtool to hide everything else:
+ APR_ADDTO(MOD_H2_LDADD, [-export-symbols-regex h2_module])
+ fi
+ else
+ enable_h2=no
+ fi
+])
+APACHE_MODULE(h2, [HTTP/2 support (Deprecated. Use --enable-http2)], $h2_objs, , most, [
APACHE_CHECK_NGHTTP2
if test "$ac_cv_nghttp2" = "yes" ; then
if test "x$enable_ssl" = "xshared"; then