• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# nghttp2 - HTTP/2 C Library
2#
3# Copyright (c) 2012, 2013, 2014, 2015 Tatsuhiro Tsujikawa
4# Copyright (c) 2016 Peter Wu <peter@lekensteyn.nl>
5#
6# Permission is hereby granted, free of charge, to any person obtaining
7# a copy of this software and associated documentation files (the
8# "Software"), to deal in the Software without restriction, including
9# without limitation the rights to use, copy, modify, merge, publish,
10# distribute, sublicense, and/or sell copies of the Software, and to
11# permit persons to whom the Software is furnished to do so, subject to
12# the following conditions:
13#
14# The above copyright notice and this permission notice shall be
15# included in all copies or substantial portions of the Software.
16#
17# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25cmake_minimum_required(VERSION 3.0)
26# XXX using 1.8.90 instead of 1.9.0-DEV
27project(nghttp2 VERSION 1.52.0)
28
29# See versioning rule:
30#  https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
31set(LT_CURRENT  38)
32set(LT_REVISION 1)
33set(LT_AGE      24)
34
35set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
36include(Version)
37
38math(EXPR LT_SOVERSION "${LT_CURRENT} - ${LT_AGE}")
39set(LT_VERSION "${LT_SOVERSION}.${LT_AGE}.${LT_REVISION}")
40set(PACKAGE_VERSION     "${PROJECT_VERSION}")
41HexVersion(PACKAGE_VERSION_NUM ${PROJECT_VERSION_MAJOR} ${PROJECT_VERSION_MINOR} ${PROJECT_VERSION_PATCH})
42
43if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
44  set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose the build type" FORCE)
45
46  # Include "None" as option to disable any additional (optimization) flags,
47  # relying on just CMAKE_C_FLAGS and CMAKE_CXX_FLAGS (which are empty by
48  # default). These strings are presented in cmake-gui.
49  set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
50    "None" "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
51endif()
52
53include(GNUInstallDirs)
54
55# For documentation
56find_package(Python3 COMPONENTS Interpreter)
57
58# Auto-detection of features that can be toggled
59find_package(OpenSSL 1.0.1)
60find_package(Libev 4.11)
61find_package(Libcares 1.7.5)
62find_package(ZLIB 1.2.3)
63find_package(Libngtcp2 0.0.0)
64find_package(Libngtcp2_crypto_openssl 0.0.0)
65if(LIBNGTCP2_CRYPTO_OPENSSL_FOUND)
66  set(HAVE_LIBNGTCP2_CRYPTO_OPENSSL 1)
67endif()
68find_package(Libnghttp3 0.0.0)
69if(WITH_LIBBPF)
70  find_package(Libbpf 0.4.0)
71  if(NOT LIBBPF_FOUND)
72    message(FATAL_ERROR "libbpf was requested (WITH_LIBBPF=1) but not found.")
73  endif()
74endif()
75if(OPENSSL_FOUND AND LIBEV_FOUND AND ZLIB_FOUND)
76  set(ENABLE_APP_DEFAULT ON)
77else()
78  set(ENABLE_APP_DEFAULT OFF)
79endif()
80find_package(Systemd 209)
81find_package(Jansson  2.5)
82set(ENABLE_HPACK_TOOLS_DEFAULT ${JANSSON_FOUND})
83# 2.0.8 is required because we use evconnlistener_set_error_cb()
84find_package(Libevent 2.0.8 COMPONENTS core extra openssl)
85set(ENABLE_EXAMPLES_DEFAULT ${LIBEVENT_OPENSSL_FOUND})
86
87find_package(LibXml2 2.6.26)
88set(WITH_LIBXML2_DEFAULT    ${LIBXML2_FOUND})
89find_package(Jemalloc)
90set(WITH_JEMALLOC_DEFAULT   ${JEMALLOC_FOUND})
91
92include(CMakeOptions.txt)
93
94if(ENABLE_LIB_ONLY AND (ENABLE_APP OR ENABLE_HPACK_TOOLS OR ENABLE_EXAMPLES))
95  # Remember when disabled options are disabled for later diagnostics.
96  set(ENABLE_LIB_ONLY_DISABLED_OTHERS 1)
97else()
98  set(ENABLE_LIB_ONLY_DISABLED_OTHERS 0)
99endif()
100if(ENABLE_LIB_ONLY)
101  set(ENABLE_APP            OFF)
102  set(ENABLE_HPACK_TOOLS    OFF)
103  set(ENABLE_EXAMPLES       OFF)
104endif()
105
106# Do not disable assertions based on CMAKE_BUILD_TYPE.
107foreach(_build_type "Release" "MinSizeRel" "RelWithDebInfo")
108  foreach(_lang C CXX)
109    string(TOUPPER "CMAKE_${_lang}_FLAGS_${_build_type}" _var)
110    string(REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " " ${_var} "${${_var}}")
111  endforeach()
112endforeach()
113
114if(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Clang")
115  set(HINT_NORETURN       "__attribute__((noreturn))")
116else()
117  set(HINT_NORETURN)
118endif()
119
120include(ExtractValidFlags)
121foreach(_cxx1x_flag -std=c++14)
122  extract_valid_cxx_flags(_cxx1x_flag_supported ${_cxx1x_flag})
123  if(_cxx1x_flag_supported)
124    set(CXX1XCXXFLAGS ${_cxx1x_flag})
125    break()
126  endif()
127endforeach()
128
129include(CMakePushCheckState)
130include(CheckCXXSourceCompiles)
131cmake_push_check_state()
132set(CMAKE_REQUIRED_DEFINITIONS "${CXX1XCXXFLAGS}")
133# Check that std::future is available.
134check_cxx_source_compiles("
135#include <vector>
136#include <future>
137int main() { std::vector<std::future<int>> v; }" HAVE_STD_FUTURE)
138# Check that std::map::emplace is available for g++-4.7.
139check_cxx_source_compiles("
140#include <map>
141int main() { std::map<int, int>().emplace(1, 2); }" HAVE_STD_MAP_EMPLACE)
142cmake_pop_check_state()
143
144
145# Checks for libraries.
146# Additional libraries required for programs under src directory.
147set(APP_LIBRARIES)
148
149set(CMAKE_THREAD_PREFER_PTHREAD 1)
150find_package(Threads)
151if(CMAKE_USE_PTHREADS_INIT)
152  list(APPEND APP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
153endif()
154# XXX android and C++, is this still needed in cmake?
155# case "$host" in
156#   *android*)
157#     android_build=yes
158#     # android does not need -pthread, but needs following 3 libs for C++
159#     APPLDFLAGS="$APPLDFLAGS -lstdc++ -latomic -lsupc++"
160
161# dl: openssl requires libdl when it is statically linked.
162# XXX shouldn't ${CMAKE_DL_LIBS} be appended to OPENSSL_LIBRARIES instead of
163# APP_LIBRARIES if it is really specific to OpenSSL?
164
165find_package(CUnit 2.1)
166enable_testing()
167set(HAVE_CUNIT      ${CUNIT_FOUND})
168if(HAVE_CUNIT)
169  add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
170endif()
171
172# openssl (for src)
173include(CheckSymbolExists)
174set(HAVE_OPENSSL    ${OPENSSL_FOUND})
175if(OPENSSL_FOUND)
176  set(OPENSSL_INCLUDE_DIRS  ${OPENSSL_INCLUDE_DIR})
177  cmake_push_check_state()
178  set(CMAKE_REQUIRED_INCLUDES   "${OPENSSL_INCLUDE_DIR}")
179  set(CMAKE_REQUIRED_LIBRARIES  "${OPENSSL_LIBRARIES}")
180  if(WIN32)
181    set(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES}" "ws2_32" "bcrypt")
182  endif()
183  check_symbol_exists(SSL_is_quic "openssl/ssl.h" HAVE_SSL_IS_QUIC)
184  if(NOT HAVE_SSL_IS_QUIC)
185    message(WARNING "OpenSSL in ${OPENSSL_LIBRARIES} does not have SSL_is_quic.  HTTP/3 support cannot be enabled")
186  endif()
187  cmake_pop_check_state()
188else()
189  set(OPENSSL_INCLUDE_DIRS  "")
190  set(OPENSSL_LIBRARIES     "")
191endif()
192# libev (for src)
193set(HAVE_LIBEV      ${LIBEV_FOUND})
194set(HAVE_ZLIB       ${ZLIB_FOUND})
195set(HAVE_SYSTEMD    ${SYSTEMD_FOUND})
196set(HAVE_LIBEVENT_OPENSSL ${LIBEVENT_FOUND})
197if(LIBEVENT_FOUND)
198  # Must both link the core and openssl libraries.
199  set(LIBEVENT_OPENSSL_LIBRARIES ${LIBEVENT_LIBRARIES})
200endif()
201# libc-ares (for src)
202set(HAVE_LIBCARES   ${LIBCARES_FOUND})
203if(LIBCARES_FOUND)
204  set(LIBCARES_INCLUDE_DIRS ${LIBCARES_INCLUDE_DIR})
205else()
206  set(LIBCARES_INCLUDE_DIRS "")
207  set(LIBCARES_LIBRARIES    "")
208endif()
209# jansson (for src/nghttp, src/deflatehd and src/inflatehd)
210set(HAVE_JANSSON    ${JANSSON_FOUND})
211# libxml2 (for src/nghttp)
212set(HAVE_LIBXML2    ${LIBXML2_FOUND})
213if(LIBXML2_FOUND)
214  set(LIBXML2_INCLUDE_DIRS  ${LIBXML2_INCLUDE_DIR})
215else()
216  set(LIBXML2_INCLUDE_DIRS  "")
217  set(LIBXML2_LIBRARIES     "")
218endif()
219# jemalloc
220set(HAVE_JEMALLOC   ${JEMALLOC_FOUND})
221
222# libbpf (for bpf)
223set(HAVE_LIBBPF ${LIBBPF_FOUND})
224if(LIBBPF_FOUND)
225  set(BPFCFLAGS -Wall -O2 -g)
226  if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
227    # For Debian/Ubuntu
228    set(EXTRABPFCFLAGS -I/usr/include/${CMAKE_SYSTEM_PROCESSOR}-linux-gnu)
229  endif()
230
231  check_c_source_compiles("
232#include <linux/bpf.h>
233int main() { enum bpf_stats_type foo; (void)foo; }" HAVE_BPF_STATS_TYPE)
234endif()
235
236# The nghttp, nghttpd and nghttpx under src depend on zlib, OpenSSL and libev
237if(ENABLE_APP AND NOT (ZLIB_FOUND AND OPENSSL_FOUND AND LIBEV_FOUND))
238  message(FATAL_ERROR "Applications were requested (ENABLE_APP=1) but dependencies are not met.")
239endif()
240
241# HTTP/3 requires quictls/openssl, libngtcp2, libngtcp2_crypto_openssl
242# and libnghttp3.
243if(ENABLE_HTTP3 AND NOT (HAVE_SSL_IS_QUIC AND LIBNGTCP2_FOUND AND LIBNGTCP2_CRYPTO_OPENSSL_FOUND AND LIBNGHTTP3_FOUND))
244  message(FATAL_ERROR "HTTP/3 was requested (ENABLE_HTTP3=1) but dependencies are not met.")
245endif()
246
247# HPACK tools requires jansson
248if(ENABLE_HPACK_TOOLS AND NOT HAVE_JANSSON)
249  message(FATAL_ERROR "HPACK tools were requested (ENABLE_HPACK_TOOLS=1) but dependencies are not met.")
250endif()
251
252# examples
253if(ENABLE_EXAMPLES AND NOT (OPENSSL_FOUND AND LIBEVENT_OPENSSL_FOUND))
254  message(FATAL_ERROR "examples were requested (ENABLE_EXAMPLES=1) but dependencies are not met.")
255endif()
256
257# third-party http-parser only be built when needed
258if(ENABLE_EXAMPLES OR ENABLE_APP OR ENABLE_HPACK_TOOLS)
259  set(ENABLE_THIRD_PARTY 1)
260  # mruby (for src/nghttpx)
261  set(HAVE_MRUBY      ${WITH_MRUBY})
262  set(HAVE_NEVERBLEED ${WITH_NEVERBLEED})
263else()
264  set(HAVE_MRUBY 0)
265  set(HAVE_NEVERBLEED 0)
266endif()
267
268# Checks for header files.
269include(CheckIncludeFile)
270check_include_file("arpa/inet.h"    HAVE_ARPA_INET_H)
271check_include_file("fcntl.h"        HAVE_FCNTL_H)
272check_include_file("inttypes.h"     HAVE_INTTYPES_H)
273check_include_file("limits.h"       HAVE_LIMITS_H)
274check_include_file("netdb.h"        HAVE_NETDB_H)
275check_include_file("netinet/in.h"   HAVE_NETINET_IN_H)
276check_include_file("pwd.h"          HAVE_PWD_H)
277check_include_file("sys/socket.h"   HAVE_SYS_SOCKET_H)
278check_include_file("sys/time.h"     HAVE_SYS_TIME_H)
279check_include_file("syslog.h"       HAVE_SYSLOG_H)
280check_include_file("time.h"         HAVE_TIME_H)
281check_include_file("unistd.h"       HAVE_UNISTD_H)
282
283include(CheckTypeSize)
284# Checks for typedefs, structures, and compiler characteristics.
285# AC_TYPE_SIZE_T
286check_type_size("ssize_t" SIZEOF_SSIZE_T)
287if(SIZEOF_SSIZE_T STREQUAL "")
288  # ssize_t is a signed type in POSIX storing at least -1.
289  # Set it to "int" to match the behavior of AC_TYPE_SSIZE_T (autotools).
290  set(ssize_t int)
291endif()
292# AC_TYPE_UINT8_T
293# AC_TYPE_UINT16_T
294# AC_TYPE_UINT32_T
295# AC_TYPE_UINT64_T
296# AC_TYPE_INT8_T
297# AC_TYPE_INT16_T
298# AC_TYPE_INT32_T
299# AC_TYPE_INT64_T
300# AC_TYPE_OFF_T
301# AC_TYPE_PID_T
302# AC_TYPE_UID_T
303# XXX To support inline for crappy compilers, see https://cmake.org/Wiki/CMakeTestInline
304# AC_C_INLINE
305# XXX is AC_SYS_LARGEFILE still needed for modern systems?
306# add_definitions(-D_FILE_OFFSET_BITS=64)
307
308include(CheckStructHasMember)
309check_struct_has_member("struct tm" tm_gmtoff time.h HAVE_STRUCT_TM_TM_GMTOFF)
310
311# Check size of pointer to decide we need 8 bytes alignment adjustment.
312check_type_size("int *"   SIZEOF_INT_P)
313check_type_size("time_t"  SIZEOF_TIME_T)
314
315# Checks for library functions.
316include(CheckFunctionExists)
317check_function_exists(_Exit     HAVE__EXIT)
318check_function_exists(accept4   HAVE_ACCEPT4)
319check_function_exists(mkostemp  HAVE_MKOSTEMP)
320
321include(CheckSymbolExists)
322# XXX does this correctly detect initgroups (un)availability on cygwin?
323check_symbol_exists(initgroups grp.h HAVE_DECL_INITGROUPS)
324if(NOT HAVE_DECL_INITGROUPS AND HAVE_UNISTD_H)
325  # FreeBSD declares initgroups() in unistd.h
326  check_symbol_exists(initgroups unistd.h HAVE_DECL_INITGROUPS2)
327  if(HAVE_DECL_INITGROUPS2)
328    set(HAVE_DECL_INITGROUPS 1)
329  endif()
330endif()
331
332set(WARNCFLAGS)
333set(WARNCXXFLAGS)
334if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
335  if(ENABLE_WERROR)
336    set(WARNCFLAGS    /WX)
337    set(WARNCXXFLAGS  /WX)
338  endif()
339else()
340  if(ENABLE_WERROR)
341    extract_valid_c_flags(WARNCFLAGS    -Werror)
342    extract_valid_c_flags(WARNCXXFLAGS  -Werror)
343  endif()
344
345  # For C compiler
346  extract_valid_c_flags(WARNCFLAGS
347    -Wall
348    -Wextra
349    -Wmissing-prototypes
350    -Wstrict-prototypes
351    -Wmissing-declarations
352    -Wpointer-arith
353    -Wdeclaration-after-statement
354    -Wformat-security
355    -Wwrite-strings
356    -Wshadow
357    -Winline
358    -Wnested-externs
359    -Wfloat-equal
360    -Wundef
361    -Wendif-labels
362    -Wempty-body
363    -Wcast-align
364    -Wclobbered
365    -Wvla
366    -Wpragmas
367    -Wunreachable-code
368    -Waddress
369    -Wattributes
370    -Wdiv-by-zero
371    -Wshorten-64-to-32
372
373    -Wconversion
374    -Wextended-offsetof
375    -Wformat-nonliteral
376    -Wlanguage-extension-token
377    -Wmissing-field-initializers
378    -Wmissing-noreturn
379    -Wmissing-variable-declarations
380    # Not used because we cannot change public structs
381    # -Wpadded
382    -Wsign-conversion
383    # Not used because this basically disallows default case
384    # -Wswitch-enum
385    -Wunreachable-code-break
386    -Wunused-macros
387    -Wunused-parameter
388    -Wredundant-decls
389    # Only work with Clang for the moment
390    -Wheader-guard
391    # This is required because we pass format string as "const char*.
392    -Wno-format-nonliteral
393  )
394
395  extract_valid_cxx_flags(WARNCXXFLAGS
396    # For C++ compiler
397    -Wall
398    -Wformat-security
399  )
400endif()
401
402if(ENABLE_STATIC_CRT)
403  foreach(lang C CXX)
404    foreach(suffix "" _DEBUG _MINSIZEREL _RELEASE _RELWITHDEBINFO)
405      set(var "CMAKE_${lang}_FLAGS${suffix}")
406      string(REPLACE "/MD" "/MT" ${var} "${${var}}")
407    endforeach()
408  endforeach()
409endif()
410
411if(ENABLE_DEBUG)
412  set(DEBUGBUILD 1)
413endif()
414
415# Some platform does not have working std::future.  We disable
416# threading for those platforms.
417if(NOT ENABLE_THREADS OR NOT HAVE_STD_FUTURE)
418  set(NOTHREADS 1)
419endif()
420
421add_definitions(-DHAVE_CONFIG_H)
422configure_file(cmakeconfig.h.in config.h)
423# autotools-compatible names
424# Sphinx expects relative paths in the .rst files. Use the fact that the files
425# below are all one directory level deep.
426file(RELATIVE_PATH top_srcdir   "${CMAKE_CURRENT_BINARY_DIR}/dir" "${CMAKE_CURRENT_SOURCE_DIR}")
427file(RELATIVE_PATH top_builddir "${CMAKE_CURRENT_BINARY_DIR}/dir" "${CMAKE_CURRENT_BINARY_DIR}")
428set(abs_top_srcdir  "${CMAKE_CURRENT_SOURCE_DIR}")
429set(abs_top_builddir "${CMAKE_CURRENT_BINARY_DIR}")
430# libnghttp2.pc (pkg-config file)
431set(prefix          "${CMAKE_INSTALL_PREFIX}")
432set(exec_prefix     "${CMAKE_INSTALL_PREFIX}")
433set(libdir          "${CMAKE_INSTALL_FULL_LIBDIR}")
434set(includedir      "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
435set(VERSION         "${PACKAGE_VERSION}")
436# For init scripts and systemd service file (in contrib/)
437set(bindir          "${CMAKE_INSTALL_FULL_BINDIR}")
438set(sbindir         "${CMAKE_INSTALL_FULL_SBINDIR}")
439foreach(name
440   lib/libnghttp2.pc
441   lib/includes/nghttp2/nghttp2ver.h
442   integration-tests/config.go
443   integration-tests/setenv
444   doc/conf.py
445   doc/index.rst
446   doc/package_README.rst
447   doc/tutorial-client.rst
448   doc/tutorial-server.rst
449   doc/tutorial-hpack.rst
450   doc/nghttpx-howto.rst
451   doc/h2load-howto.rst
452   doc/building-android-binary.rst
453   doc/nghttp2.h.rst
454   doc/nghttp2ver.h.rst
455   doc/contribute.rst
456)
457  configure_file("${name}.in" "${name}" @ONLY)
458endforeach()
459
460if(APPLE)
461  add_definitions(-D__APPLE_USE_RFC_3542)
462endif()
463
464include_directories(
465  "${CMAKE_CURRENT_BINARY_DIR}" # for config.h
466)
467# For use in src/CMakeLists.txt
468set(PKGDATADIR "${CMAKE_INSTALL_FULL_DATADIR}/${CMAKE_PROJECT_NAME}")
469set(PKGLIBDIR "${CMAKE_INSTALL_FULL_LIBDIR}/${CMAKE_PROJECT_NAME}")
470
471install(FILES README.rst DESTINATION "${CMAKE_INSTALL_DOCDIR}")
472
473add_subdirectory(lib)
474#add_subdirectory(lib/includes)
475add_subdirectory(third-party)
476add_subdirectory(src)
477add_subdirectory(examples)
478add_subdirectory(tests)
479#add_subdirectory(tests/testdata)
480add_subdirectory(integration-tests)
481if(ENABLE_DOC)
482  add_subdirectory(doc)
483endif()
484add_subdirectory(contrib)
485add_subdirectory(script)
486add_subdirectory(bpf)
487
488
489string(TOUPPER "${CMAKE_BUILD_TYPE}" _build_type)
490message(STATUS "summary of build options:
491
492    Package version: ${VERSION}
493    Library version: ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}
494    Install prefix:  ${CMAKE_INSTALL_PREFIX}
495    Target system:   ${CMAKE_SYSTEM_NAME}
496    Compiler:
497      Build type:     ${CMAKE_BUILD_TYPE}
498      C compiler:     ${CMAKE_C_COMPILER}
499      CFLAGS:         ${CMAKE_C_FLAGS_${_build_type}} ${CMAKE_C_FLAGS}
500      C++ compiler:   ${CMAKE_CXX_COMPILER}
501      CXXFLAGS:       ${CMAKE_CXX_FLAGS_${_build_type}} ${CMAKE_CXX_FLAGS}
502      WARNCFLAGS:     ${WARNCFLAGS}
503      CXX1XCXXFLAGS:  ${CXX1XCXXFLAGS}
504    Python:
505      Python:          ${Python3_EXECUTABLE}
506      Python3_VERSION: ${Python3_VERSION}
507    Test:
508      CUnit:          ${HAVE_CUNIT} (LIBS='${CUNIT_LIBRARIES}')
509      Failmalloc:     ${ENABLE_FAILMALLOC}
510    Libs:
511      OpenSSL:        ${HAVE_OPENSSL} (LIBS='${OPENSSL_LIBRARIES}')
512      Libxml2:        ${HAVE_LIBXML2} (LIBS='${LIBXML2_LIBRARIES}')
513      Libev:          ${HAVE_LIBEV} (LIBS='${LIBEV_LIBRARIES}')
514      Libc-ares:      ${HAVE_LIBCARES} (LIBS='${LIBCARES_LIBRARIES}')
515      Libngtcp2:      ${HAVE_LIBNGTCP2} (LIBS='${LIBNGTCP2_LIBRARIES}')
516      Libngtcp2_crypto_openssl: ${HAVE_LIBNGTCP2_CRYPTO_OPENSSL} (LIBS='${LIBNGTCP2_CRYPTO_OPENSSL_LIBRARIES}')
517      Libnghttp3:     ${HAVE_LIBNGHTTP3} (LIBS='${LIBNGHTTP3_LIBRARIES}')
518      Libbpf:         ${HAVE_LIBBPF} (LIBS='${LIBBPF_LIBRARIES}')
519      Libevent(SSL):  ${HAVE_LIBEVENT_OPENSSL} (LIBS='${LIBEVENT_OPENSSL_LIBRARIES}')
520      Jansson:        ${HAVE_JANSSON} (LIBS='${JANSSON_LIBRARIES}')
521      Jemalloc:       ${HAVE_JEMALLOC} (LIBS='${JEMALLOC_LIBRARIES}')
522      Zlib:           ${HAVE_ZLIB} (LIBS='${ZLIB_LIBRARIES}')
523      Systemd:        ${HAVE_SYSTEMD} (LIBS='${SYSTEMD_LIBRARIES}')
524    Third-party:
525      http-parser:    ${ENABLE_THIRD_PARTY}
526      MRuby:          ${HAVE_MRUBY}
527      Neverbleed:     ${HAVE_NEVERBLEED}
528    Features:
529      Applications:   ${ENABLE_APP}
530      HPACK tools:    ${ENABLE_HPACK_TOOLS}
531      Examples:       ${ENABLE_EXAMPLES}
532      Threading:      ${ENABLE_THREADS}
533      HTTP/3(EXPERIMENTAL): ${ENABLE_HTTP3}
534")
535if(ENABLE_LIB_ONLY_DISABLED_OTHERS)
536  message("Only the library will be built. To build other components "
537    "(such as applications and examples), set ENABLE_LIB_ONLY=OFF.")
538endif()
539