From b8717208c70fc2ba1be0382d653e676e05c9aeb6 Mon Sep 17 00:00:00 2001 From: David Beitey Date: Tue, 9 Feb 2016 16:57:11 +1000 Subject: [PATCH] Document compiling apps and include h2load in configure --- README.rst | 12 +++++++++--- configure.ac | 2 +- doc/sources/h2load-howto.rst | 9 +++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 2f70edf1..974fc4f0 100644 --- a/README.rst +++ b/README.rst @@ -58,9 +58,9 @@ To build the documentation, you need to install: * sphinx (http://sphinx-doc.org/) -To build and run the application programs (``nghttp``, ``nghttpd`` and -``nghttpx``) in the ``src`` directory, the following packages are -required: +To build and run the application programs (``nghttp``, ``nghttpd``, +``nghttpx`` and ``h2load``) in the ``src`` directory, the following packages +are required: * OpenSSL >= 1.0.1 * libev >= 4.15 @@ -160,6 +160,12 @@ To compile the source code, gcc >= 4.8.3 or clang >= 3.4 is required. them from crashing. A patch is welcome to make multi threading work on Mac OS X platform. +.. note:: + + To compile the associated applications (nghttp, nghttpd, nghttpx and + h2load), you must use the ``--enable-app`` configure option and ensure + that the specified requirements above are met. + Notes for building on Windows (Mingw/Cygwin) -------------------------------------------- diff --git a/configure.ac b/configure.ac index c4078790..a1ed90c3 100644 --- a/configure.ac +++ b/configure.ac @@ -76,7 +76,7 @@ AC_ARG_ENABLE([threads], AC_ARG_ENABLE([app], [AS_HELP_STRING([--enable-app], - [Build applications (nghttp, nghttpd and nghttpx) [default=check]])], + [Build applications (nghttp, nghttpd, nghttpx and h2load) [default=check]])], [request_app=$enableval], [request_app=check]) AC_ARG_ENABLE([hpack-tools], diff --git a/doc/sources/h2load-howto.rst b/doc/sources/h2load-howto.rst index af3c42e3..f66c2c76 100644 --- a/doc/sources/h2load-howto.rst +++ b/doc/sources/h2load-howto.rst @@ -6,6 +6,15 @@ spdylay (http://tatsuhiro-t.github.io/spdylay/) library, it also supports SPDY protocol. It supports SSL/TLS and clear text for all supported protocols. +Compiling from source +--------------------- + +``h2load`` is compiled alongside ``nghttp2`` and requires that the +``--enable-apps`` flag is passed to ``./configure`` and `required dependencies +`_ are available during +compilation. For details on compiling, see `nghttp2: Building from Git +`_. + Basic Usage -----------