CMakeLists.txt
9 removals
525 lines
9 additions
525 lines
# Licensed to the Apache Software Foundation (ASF) under one or more
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
#
#
# Read README.cmake before using this.
# Read README.cmake before using this.
PROJECT(HTTPD C)
PROJECT(HTTPD C)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
INCLUDE(CheckSymbolExists)
INCLUDE(CheckSymbolExists)
INCLUDE(CheckCSourceCompiles)
INCLUDE(CheckCSourceCompiles)
FIND_PACKAGE(LibXml2)
FIND_PACKAGE(LibXml2)
FIND_PACKAGE(Lua51)
FIND_PACKAGE(Lua51)
FIND_PACKAGE(OpenSSL)
FIND_PACKAGE(OpenSSL)
FIND_PACKAGE(ZLIB)
FIND_PACKAGE(ZLIB)
FIND_PACKAGE(CURL)
FIND_PACKAGE(CURL)
# Options for support libraries not supported by cmake-bundled FindFOO
# Options for support libraries not supported by cmake-bundled FindFOO
# Default to using APR trunk (libapr-2.lib) if it exists in PREFIX/lib;
# Default to using APR trunk (libapr-2.lib) if it exists in PREFIX/lib;
# otherwise, default to APR 1.x + APR-util 1.x
# otherwise, default to APR 1.x + APR-util 1.x
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/libapr-2.lib")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/libapr-2.lib")
SET(default_apr_libraries "${CMAKE_INSTALL_PREFIX}/lib/libapr-2.lib")
SET(default_apr_libraries "${CMAKE_INSTALL_PREFIX}/lib/libapr-2.lib")
ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/libapr-1.lib")
ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/libapr-1.lib")
SET(ldaplib "${CMAKE_INSTALL_PREFIX}/lib/apr_ldap-1.lib")
SET(ldaplib "${CMAKE_INSTALL_PREFIX}/lib/apr_ldap-1.lib")
IF(NOT EXISTS ${ldaplib})
IF(NOT EXISTS ${ldaplib})
SET(ldaplib)
SET(ldaplib)
ENDIF()
ENDIF()
SET(default_apr_libraries ${CMAKE_INSTALL_PREFIX}/lib/libapr-1.lib ${CMAKE_INSTALL_PREFIX}/lib/libaprutil-1.lib ${ldaplib})
SET(default_apr_libraries ${CMAKE_INSTALL_PREFIX}/lib/libapr-1.lib ${CMAKE_INSTALL_PREFIX}/lib/libaprutil-1.lib ${ldaplib})
ELSE()
ELSE()
SET(default_apr_libraries)
SET(default_apr_libraries)
ENDIF()
ENDIF()
# PCRE names its libraries differently for debug vs. release builds.
# PCRE names its libraries differently for debug vs. release builds.
# We can't query our own CMAKE_BUILD_TYPE at configure time.
# We can't query our own CMAKE_BUILD_TYPE at configure time.
# If the debug version exists in PREFIX/lib, default to that one.
# If the debug version exists in PREFIX/lib, default to that one.
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcre2-8d.lib")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcre2-8d.lib")
SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre2-8d.lib)
SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre2-8d.lib)
SET(default_pcre_cflags "-DHAVE_PCRE2")
SET(default_pcre_cflags "-DHAVE_PCRE2")
ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcre2-8.lib")
ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcre2-8.lib")
SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre2-8.lib)
SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre2-8.lib)
SET(default_pcre_cflags "-DHAVE_PCRE2")
SET(default_pcre_cflags "-DHAVE_PCRE2")
ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcred.lib")
ELSEIF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/pcred.lib")
SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcred.lib)
SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcred.lib)
ELSE()
ELSE()
SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre.lib)
SET(default_pcre_libraries ${CMAKE_INSTALL_PREFIX}/lib/pcre.lib)
ENDIF()
ENDIF()
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/nghttp2d.lib")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/nghttp2d.lib")
SET(default_nghttp2_libraries "${CMAKE_INSTALL_PREFIX}/lib/nghttp2d.lib")
SET(default_nghttp2_libraries "${CMAKE_INSTALL_PREFIX}/lib/nghttp2d.lib")
ELSE()
ELSE()
SET(default_nghttp2_libraries "${CMAKE_INSTALL_PREFIX}/lib/nghttp2.lib")
SET(default_nghttp2_libraries "${CMAKE_INSTALL_PREFIX}/lib/nghttp2.lib")
ENDIF()
ENDIF()
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/brotlienc.lib")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/brotlienc.lib")
SET(default_brotli_libraries "${CMAKE_INSTALL_PREFIX}/lib/brotlienc.lib" "${CMAKE_INSTALL_PREFIX}/lib/brotlicommon.lib")
SET(default_brotli_libraries "${CMAKE_INSTALL_PREFIX}/lib/brotlienc.lib" "${CMAKE_INSTALL_PREFIX}/lib/brotlicommon.lib")
ELSE()
ELSE()
SET(default_brotli_libraries)
SET(default_brotli_libraries)
ENDIF()
ENDIF()
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/libcurl.lib")
SET(default_curl_libraries "${CMAKE_INSTALL_PREFIX}/lib/libcurl.lib")
ELSE()
SET(default_curl_libraries)
ENDIF()
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/jansson.lib")
IF(EXISTS "${CMAKE_INSTALL_PREFIX}/lib/jansson.lib")
SET(default_jansson_libraries "${CMAKE_INSTALL_PREFIX}/lib/jansson.lib")
SET(default_jansson_libraries "${CMAKE_INSTALL_PREFIX}/lib/jansson.lib")
ELSE()
ELSE()
SET(default_jansson_libraries)
SET(default_jansson_libraries)
ENDIF()
ENDIF()
SET(APR_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with APR[-Util] include files")
SET(APR_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with APR[-Util] include files")
SET(APR_LIBRARIES ${default_apr_libraries} CACHE STRING "APR libraries to link with")
SET(APR_LIBRARIES ${default_apr_libraries} CACHE STRING "APR libraries to link with")
SET(NGHTTP2_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with NGHTTP2 include files within nghttp2 subdirectory")
SET(NGHTTP2_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with NGHTTP2 include files within nghttp2 subdirectory")
SET(NGHTTP2_LIBRARIES ${default_nghttp2_libraries} CACHE STRING "NGHTTP2 libraries to link with")
SET(NGHTTP2_LIBRARIES ${default_nghttp2_libraries} CACHE STRING "NGHTTP2 libraries to link with")
SET(PCRE_CFLAGS "${default_pcre_cflags}" CACHE STRING "PCRE flags for util_pcre.c compilation")
SET(PCRE_CFLAGS "${default_pcre_cflags}" CACHE STRING "PCRE flags for util_pcre.c compilation")
SET(PCRE_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with PCRE include files")
SET(PCRE_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with PCRE include files")
SET(PCRE_LIBRARIES ${default_pcre_libraries} CACHE STRING "PCRE libraries to link with")
SET(PCRE_LIBRARIES ${default_pcre_libraries} CACHE STRING "PCRE libraries to link with")
SET(LIBXML2_ICONV_INCLUDE_DIR "" CACHE STRING "Directory with iconv include files for libxml2")
SET(LIBXML2_ICONV_INCLUDE_DIR "" CACHE STRING "Directory with iconv include files for libxml2")
SET(LIBXML2_ICONV_LIBRARIES "" CACHE STRING "iconv libraries to link with for libxml2")
SET(LIBXML2_ICONV_LIBRARIES "" CACHE STRING "iconv libraries to link with for libxml2")
SET(BROTLI_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with include files for Brotli")
SET(BROTLI_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with include files for Brotli")
SET(BROTLI_LIBRARIES ${default_brotli_libraries} CACHE STRING "Brotli libraries to link with")
SET(BROTLI_LIBRARIES ${default_brotli_libraries} CACHE STRING "Brotli libraries to link with")
SET(CURL_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with include files for cURL")
SET(CURL_LIBRARIES "${default_curl_libraries}" CACHE STRING "cURL libraries to link with")
SET(JANSSON_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with include files for jansson")
SET(JANSSON_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE STRING "Directory with include files for jansson")
SET(JANSSON_LIBRARIES "${default_jansson_libraries}" CACHE STRING "Jansson libraries to link with")
SET(JANSSON_LIBRARIES "${default_jansson_libraries}" CACHE STRING "Jansson libraries to link with")
# end support library configuration
# end support library configuration
# Misc. options
# Misc. options
OPTION(INSTALL_PDB "Install .pdb files (if generated)" ON)
OPTION(INSTALL_PDB "Install .pdb files (if generated)" ON)
OPTION(INSTALL_MANUAL "Install manual" ON)
OPTION(INSTALL_MANUAL "Install manual" ON)
SET(ENABLE_MODULES "O" CACHE STRING "Minimum module enablement (e.g., \"i\" to build all but those without prerequisites)")
SET(ENABLE_MODULES "O" CACHE STRING "Minimum module enablement (e.g., \"i\" to build all but those without prerequisites)")
SET(WITH_MODULES "" CACHE STRING "comma-separated paths to single-file modules to statically link into the server")
SET(WITH_MODULES "" CACHE STRING "comma-separated paths to single-file modules to statically link into the server")
SET(EXTRA_INCLUDES "" CACHE STRING "Extra include directories")
SET(EXTRA_INCLUDES "" CACHE STRING "Extra include directories")
SET(EXTRA_LIBS "" CACHE STRING "Extra libraries")
SET(EXTRA_LIBS "" CACHE STRING "Extra libraries")
SET(EXTRA_COMPILE_FLAGS "" CACHE STRING "Extra compile flags")
SET(EXTRA_COMPILE_FLAGS "" CACHE STRING "Extra compile flags")
IF(NOT EXISTS "${APR_INCLUDE_DIR}/apr.h")
IF(NOT EXISTS "${APR_INCLUDE_DIR}/apr.h")
MESSAGE(FATAL_ERROR "APR include directory ${APR_INCLUDE_DIR} is not correct.")
MESSAGE(FATAL_ERROR "APR include directory ${APR_INCLUDE_DIR} is not correct.")
ENDIF()
ENDIF()
FOREACH(onelib ${APR_LIBRARIES})
FOREACH(onelib ${APR_LIBRARIES})
IF(NOT EXISTS ${onelib})
IF(NOT EXISTS ${onelib})
MESSAGE(FATAL_ERROR "APR library ${onelib} was not found.")
MESSAGE(FATAL_ERROR "APR library ${onelib} was not found.")
ENDIF()
ENDIF()
ENDFOREACH()
ENDFOREACH()
MACRO(DEFINE_WITH_BLANKS output_definition input_symbol input_value)
MACRO(DEFINE_WITH_BLANKS output_definition input_symbol input_value)
IF(MSVC_IDE OR ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.11)
IF(MSVC_IDE OR ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.11)
SET(${output_definition} "-D${input_symbol}=\"${input_value}\"")
SET(${output_definition} "-D${input_symbol}=\"${input_value}\"")
ELSE()
ELSE()
# command-line tool + older cmake, where extra quotes must be added and
# command-line tool + older cmake, where extra quotes must be added and
# escaped to survive
# escaped to survive
SET(${output_definition} "-D${input_symbol}=\"\\\"${input_value}\\\"\"")
SET(${output_definition} "-D${input_symbol}=\"\\\"${input_value}\\\"\"")
ENDIF()
ENDIF()
ENDMACRO()
ENDMACRO()
MACRO(GET_MOD_ENABLE_RANK macro_modname macro_mod_enable_val macro_output_rank)
MACRO(GET_MOD_ENABLE_RANK macro_modname macro_mod_enable_val macro_output_rank)
IF(${macro_mod_enable_val} STREQUAL "O")
IF(${macro_mod_enable_val} STREQUAL "O")
SET(${macro_output_rank} 0)
SET(${macro_output_rank} 0)
ELSEIF(${macro_mod_enable_val} STREQUAL "i")
ELSEIF(${macro_mod_enable_val} STREQUAL "i")
SET(${macro_output_rank} 1)
SET(${macro_output_rank} 1)
ELSEIF(${macro_mod_enable_val} STREQUAL "I")
ELSEIF(${macro_mod_enable_val} STREQUAL "I")
SET(${macro_output_rank} 2)
SET(${macro_output_rank} 2)
ELSEIF(${macro_mod_enable_val} STREQUAL "a")
ELSEIF(${macro_mod_enable_val} STREQUAL "a")
SET(${macro_output_rank} 3)
SET(${macro_output_rank} 3)
ELSEIF(${macro_mod_enable_val} STREQUAL "A")
ELSEIF(${macro_mod_enable_val} STREQUAL "A")
SET(${macro_output_rank} 4)
SET(${macro_output_rank} 4)
ELSE()
ELSE()
MESSAGE(FATAL_ERROR "Unexpected enablement value \"${macro_mod_enable_val}\" for ${macro_modname}")
MESSAGE(FATAL_ERROR "Unexpected enablement value \"${macro_mod_enable_val}\" for ${macro_modname}")
ENDIF()
ENDIF()
ENDMACRO()
ENDMACRO()
GET_MOD_ENABLE_RANK("ENABLE_MODULES setting" ${ENABLE_MODULES} enable_modules_rank)
GET_MOD_ENABLE_RANK("ENABLE_MODULES setting" ${ENABLE_MODULES} enable_modules_rank)
# Figure out what APR/APU features are available
# Figure out what APR/APU features are available
#
#
# CHECK_APR_FEATURE checks for features defined to 1 or 0 in apr.h or apu.h
# CHECK_APR_FEATURE checks for features defined to 1 or 0 in apr.h or apu.h
# The symbol representing the feature will be set to TRUE or FALSE for
# The symbol representing the feature will be set to TRUE or FALSE for
# compatibility with the feature tests set by FindFooPackage.
# compatibility with the feature tests set by FindFooPackage.
#
#
# (unclear why CHECK_SYMBOL_EXISTS is needed, but I was getting "found" for anything
# (unclear why CHECK_SYMBOL_EXISTS is needed, but I was getting "found" for anything
# not defined to either 1 or 0)
# not defined to either 1 or 0)
MACRO(CHECK_APR_FEATURE which_define)
MACRO(CHECK_APR_FEATURE which_define)
SET(CMAKE_REQUIRED_INCLUDES "${APR_INCLUDE_DIR}")
SET(CMAKE_REQUIRED_INCLUDES "${APR_INCLUDE_DIR}")
CHECK_SYMBOL_EXISTS(${which_define} "apr.h;apu.h" tmp_${which_define})
CHECK_SYMBOL_EXISTS(${which_define} "apr.h;apu.h" tmp_${which_define})
IF(${tmp_${which_define}})
IF(${tmp_${which_define}})
CHECK_C_SOURCE_COMPILES("#include \"${APR_INCLUDE_DIR}/apr.h\"
CHECK_C_SOURCE_COMPILES("#include \"${APR_INCLUDE_DIR}/apr.h\"
#include \"${APR_INCLUDE_DIR}/apu.h\"
#include \"${APR_INCLUDE_DIR}/apu.h\"
int main() {
int main() {
#ifndef ${which_define}
#ifndef ${which_define}
#error gobble
#error gobble
#endif
#endif
#if !${which_define}
#if !${which_define}
#error gobble
#error gobble
#endif
#endif
return 1;}" ${which_define})
return 1;}" ${which_define})
ELSE()
ELSE()
SET(${which_define})
SET(${which_define})
ENDIF()
ENDIF()
IF(${${which_define}})
IF(${${which_define}})
SET(${which_define} TRUE)
SET(${which_define} TRUE)
ELSE()
ELSE()
SET(${which_define} FALSE)
SET(${which_define} FALSE)
ENDIF()
ENDIF()
ENDMACRO()
ENDMACRO()
CHECK_APR_FEATURE(APR_HAS_XLATE)
CHECK_APR_FEATURE(APR_HAS_XLATE)
CHECK_APR_FEATURE(APU_HAVE_CRYPTO)
CHECK_APR_FEATURE(APU_HAVE_CRYPTO)
# APR_HAS_LDAP is defined in apr_ldap.h, which exists only in apr 1.x, so use
# APR_HAS_LDAP is defined in apr_ldap.h, which exists only in apr 1.x, so use
# special code instead of CHECK_APR_FEATURE()
# special code instead of CHECK_APR_FEATURE()
# As with CHECK_APR_FEATURE(), convert to a TRUE/FALSE result.
# As with CHECK_APR_FEATURE(), convert to a TRUE/FALSE result.
CHECK_C_SOURCE_COMPILES("#include \"${APR_INCLUDE_DIR}/apr.h\"
CHECK_C_SOURCE_COMPILES("#include \"${APR_INCLUDE_DIR}/apr.h\"
#include \"${APR_INCLUDE_DIR}/apr_ldap.h\"
#include \"${APR_INCLUDE_DIR}/apr_ldap.h\"
int main() {
int main() {
#if !APR_HAS_LDAP
#if !APR_HAS_LDAP
#error gobble
#error gobble
#endif
#endif
return 1;}" APR_HAS_LDAP)
return 1;}" APR_HAS_LDAP)
IF(${APR_HAS_LDAP})
IF(${APR_HAS_LDAP})
SET(APR_HAS_LDAP TRUE)
SET(APR_HAS_LDAP TRUE)
ELSE()
ELSE()
SET(APR_HAS_LDAP FALSE)
SET(APR_HAS_LDAP FALSE)
ENDIF()
ENDIF()
# See if nghttp2 exists in a configured or defaulted location
# See if nghttp2 exists in a configured or defaulted location
SET(NGHTTP2_FOUND TRUE)
SET(NGHTTP2_FOUND TRUE)
IF(EXISTS "${NGHTTP2_INCLUDE_DIR}/nghttp2/nghttp2.h")
IF(EXISTS "${NGHTTP2_INCLUDE_DIR}/nghttp2/nghttp2.h")
FOREACH(onelib ${NGHTTP2_LIBRARIES})
FOREACH(onelib ${NGHTTP2_LIBRARIES})
IF(NOT EXISTS ${onelib})
IF(NOT EXISTS ${onelib})
SET(NGHTTP2_FOUND FALSE)
SET(NGHTTP2_FOUND FALSE)
ENDIF()
ENDIF()
ENDFOREACH()
ENDFOREACH()
ELSE()
ELSE()
SET(NGHTTP2_FOUND FALSE)
SET(NGHTTP2_FOUND FALSE)
ENDIF()
ENDIF()
# See if we have Brotli
# See if we have Brotli
SET(BROTLI_FOUND TRUE)
SET(BROTLI_FOUND TRUE)
IF(EXISTS "${BROTLI_INCLUDE_DIR}/brotli/encode.h")
IF(EXISTS "${BROTLI_INCLUDE_DIR}/brotli/encode.h")
FOREACH(onelib ${BROTLI_LIBRARIES})
FOREACH(onelib ${BROTLI_LIBRARIES})
IF(NOT EXISTS ${onelib})
IF(NOT EXISTS ${onelib})
SET(BROTLI_FOUND FALSE)
SET(BROTLI_FOUND FALSE)
ENDIF()
ENDIF()
ENDFOREACH()
ENDFOREACH()
ELSE()
ELSE()
SET(BROTLI_FOUND FALSE)
SET(BROTLI_FOUND FALSE)
ENDIF()
ENDIF()
# See if we have Jansson
# See if we have Jansson
SET(JANSSON_FOUND TRUE)
SET(JANSSON_FOUND TRUE)
IF(EXISTS "${JANSSON_INCLUDE_DIR}/jansson.h")
IF(EXISTS "${JANSSON_INCLUDE_DIR}/jansson.h")
FOREACH(onelib ${JANSSON_LIBRARIES})
FOREACH(onelib ${JANSSON_LIBRARIES})
IF(NOT EXISTS ${onelib})
IF(NOT EXISTS ${onelib})
SET(JANSSON_FOUND FALSE)
SET(JANSSON_FOUND FALSE)
ENDIF()
ENDIF()
ENDFOREACH()
ENDFOREACH()
ELSE()
ELSE()
SET(JANSSON_FOUND FALSE)
SET(JANSSON_FOUND FALSE)
ENDIF()
ENDIF()
MESSAGE(STATUS "")
MESSAGE(STATUS "")
MESSAGE(STATUS "Summary of feature detection:")
MESSAGE(STATUS "Summary of feature detection:")
MESSAGE(STATUS "")
MESSAGE(STATUS "")
MESSAGE(STATUS "LIBXML2_FOUND ............ : ${LIBXML2_FOUND}")
MESSAGE(STATUS "LIBXML2_FOUND ............ : ${LIBXML2_FOUND}")
MESSAGE(STATUS "LUA51_FOUND .............. : ${LUA51_FOUND}")
MESSAGE(STATUS "LUA51_FOUND .............. : ${LUA51_FOUND}")
MESSAGE(STATUS "NGHTTP2_FOUND ............ : ${NGHTTP2_FOUND}")
MESSAGE(STATUS "NGHTTP2_FOUND ............ : ${NGHTTP2_FOUND}")
MESSAGE(STATUS "OPENSSL_FOUND ............ : ${OPENSSL_FOUND}")
MESSAGE(STATUS "OPENSSL_FOUND ............ : ${OPENSSL_FOUND}")
MESSAGE(STATUS "ZLIB_FOUND ............... : ${ZLIB_FOUND}")
MESSAGE(STATUS "ZLIB_FOUND ............... : ${ZLIB_FOUND}")
MESSAGE(STATUS "BROTLI_FOUND ............. : ${BROTLI_FOUND}")
MESSAGE(STATUS "BROTLI_FOUND ............. : ${BROTLI_FOUND}")
MESSAGE(STATUS "CURL_FOUND ............... : ${CURL_FOUND}")
MESSAGE(STATUS "CURL_FOUND ............... : ${CURL_FOUND}")
MESSAGE(STATUS "JANSSON_FOUND ............ : ${JANSSON_FOUND}")
MESSAGE(STATUS "JANSSON_FOUND ............ : ${JANSSON_FOUND}")
MESSAGE(STATUS "APR_HAS_LDAP ............. : ${APR_HAS_LDAP}")
MESSAGE(STATUS "APR_HAS_LDAP ............. : ${APR_HAS_LDAP}")
MESSAGE(STATUS "APR_HAS_XLATE ............ : ${APR_HAS_XLATE}")
MESSAGE(STATUS "APR_HAS_XLATE ............ : ${APR_HAS_XLATE}")
MESSAGE(STATUS "APU_HAVE_CRYPTO .......... : ${APU_HAVE_CRYPTO}")
MESSAGE(STATUS "APU_HAVE_CRYPTO .......... : ${APU_HAVE_CRYPTO}")
MESSAGE(STATUS "")
MESSAGE(STATUS "")
# Options for each available module
# Options for each available module
# "A" ("A"ctive) means installed and active in default .conf, fail if can't be built
# "A" ("A"ctive) means installed and active in default .conf, fail if can't be built
# "I" ("I"nactive) means installed and inactive (LoadModule commented out) in default .conf, fail if can't be built
# "I" ("I"nactive) means installed and inactive (LoadModule commented out) in default .conf, fail if can't be built
# "O" ("O"mit) means not installed, no LoadModule
# "O" ("O"mit) means not installed, no LoadModule
# "a" - like "A", but ignore with a warning if any prereqs aren't available
# "a" - like "A", but ignore with a warning if any prereqs aren't available
# "i" - like "I", but ignore with a warning if any prereqs aren't available
# "i" - like "I", but ignore with a warning if any prereqs aren't available
# Current heuristic for default enablement:
# Current heuristic for default enablement:
#
#
# Module requires a prereq and -> O
# Module requires a prereq and -> O
# finding/usingprereq isn't implemented
# finding/usingprereq isn't implemented
# yet
# yet
#
#
# Module is included by default in -> a if it has prereqs, A otherwise
# Module is included by default in -> a if it has prereqs, A otherwise
# autoconf-based build
# autoconf-based build
#
#
# Module is included in -> i if it has prereqs, I otherwise
# Module is included in -> i if it has prereqs, I otherwise
# --enable-modules=most
# --enable-modules=most
#
#
# Otherwise -> O
# Otherwise -> O
#
#
SET(MODULE_LIST
SET(MODULE_LIST
"modules/aaa/mod_access_compat+A+mod_access compatibility"
"modules/aaa/mod_access_compat+A+mod_access compatibility"
"modules/aaa/mod_allowmethods+I+restrict allowed HTTP methods"
"modules/aaa/mod_allowmethods+I+restrict allowed HTTP methods"
"modules/aaa/mod_auth_basic+A+basic authentication"
"modules/aaa/mod_auth_basic+A+basic authentication"
"modules/aaa/mod_auth_digest+I+RFC2617 Digest authentication"
"modules/aaa/mod_auth_digest+I+RFC2617 Digest authentication"
"modules/aaa/mod_auth_form+I+form authentication"
"modules/aaa/mod_auth_form+I+form authentication"
"modules/aaa/mod_authn_anon+I+anonymous user authentication control"
"modules/aaa/mod_authn_anon+I+anonymous user authentication control"
"modules/aaa/mod_authn_core+A+core authentication module"
"modules/aaa/mod_authn_core+A+core authentication module"
"modules/aaa/mod_authn_dbd+I+SQL-based authentication control"
"modules/aaa/mod_authn_dbd+I+SQL-based authentication control"
"modules/aaa/mod_authn_dbm+I+DBM-based authentication control"
"modules/aaa/mod_authn_dbm+I+DBM-based authentication control"
"modules/aaa/mod_authn_file+A+file-based authentication control"
"modules/aaa/mod_authn_file+A+file-based authentication control"
"modules/aaa/mod_authn_socache+I+Cached authentication control"
"modules/aaa/mod_authn_socache+I+Cached authentication control"
"modules/aaa/mod_authnz_fcgi+I+FastCGI authorizer-based authentication and authorization"
"modules/aaa/mod_authnz_fcgi+I+FastCGI authorizer-based authentication and authorization"
"modules/aaa/mod_authnz_ldap+i+LDAP based authentication"
"modules/aaa/mod_authnz_ldap+i+LDAP based authentication"
"modules/aaa/mod_authz_core+A+core authorization provider vector module"
"modules/aaa/mod_authz_core+A+core authorization provider vector module"
"modules/aaa/mod_authz_dbd+I+SQL based authorization and Login/Session support"
"modules/aaa/mod_authz_dbd+I+SQL based authorization and Login/Session support"
"modules/aaa/mod_authz_dbm+I+DBM-based authorization control"
"modules/aaa/mod_authz_dbm+I+DBM-based authorization control"
"modules/aaa/mod_authz_groupfile+A+'require group' authorization control"
"modules/aaa/mod_authz_groupfile+A+'require group' authorization control"
"modules/aaa/mod_authz_host+A+host-based authorization control"
"modules/aaa/mod_authz_host+A+host-based authorization control"
"modules/aaa/mod_authz_owner+I+'require file-owner' authorization control"
"modules/aaa/mod_authz_owner+I+'require file-owner' authorization control"
"modules/aaa/mod_authz_user+A+'require user' authorization control"
"modules/aaa/mod_authz_user+A+'require user' authorization control"
"modules/arch/win32/mod_isapi+I+isapi extension support"
"modules/arch/win32/mod_isapi+I+isapi extension support"
"modules/cache/mod_cache+I+dynamic file caching. At least one storage management module (e.g. mod_cache_disk) is also necessary."
"modules/cache/mod_cache+I+dynamic file caching. At least one storage management module (e.g. mod_cache_disk) is also necessary."
"modules/cache/mod_cache_disk+I+disk caching module"
"modules/cache/mod_cache_disk+I+disk caching module"
"modules/cache/mod_cache_socache+I+shared object caching module"
"modules/cache/mod_cache_socache+I+shared object caching module"
"modules/cache/mod_file_cache+I+File cache"
"modules/cache/mod_file_cache+I+File cache"
"modules/cache/mod_socache_dbm+I+dbm small object cache provider"
"modules/cache/mod_socache_dbm+I+dbm small object cache provider"
"modules/cache/mod_socache_dc+O+distcache small object cache provider"
"modules/cache/mod_socache_dc+O+distcache small object cache provider"
"modules/cache/mod_socache_memcache+I+memcache small object cache provider"
"modules/cache/mod_socache_memcache+I+memcache small object cache provider"
"modules/cache/mod_socache_shmcb+I+ shmcb small object cache provider"
"modules/cache/mod_socache_shmcb+I+ shmcb small object cache provider"
"modules/cache/mod_socache_redis+I+redis small object cache provider"
"modules/cache/mod_socache_redis+I+redis small object cache provider"
"modules/cluster/mod_heartbeat+I+Generates Heartbeats"
"modules/cluster/mod_heartbeat+I+Generates Heartbeats"
"modules/cluster/mod_heartmonitor+I+Collects Heartbeats"
"modules/cluster/mod_heartmonitor+I+Collects Heartbeats"
"modules/core/mod_macro+I+Define and use macros in configuration files"
"modules/core/mod_macro+I+Define and use macros in configuration files"
"modules/core/mod_watchdog+I+Watchdog module"
"modules/core/mod_watchdog+I+Watchdog module"
"modules/database/mod_dbd+I+Apache DBD Framework"
"modules/database/mod_dbd+I+Apache DBD Framework"
"modules/dav/fs/mod_dav_fs+I+DAV provider for the filesystem."
"modules/dav/fs/mod_dav_fs+I+DAV provider for the filesystem."
"modules/dav/lock/mod_dav_lock+I+DAV provider for generic locking"
"modules/dav/lock/mod_dav_lock+I+DAV provider for generic locking"
"modules/dav/main/mod_dav+I+WebDAV protocol handling."
"modules/dav/main/mod_dav+I+WebDAV protocol handling."
"modules/debugging/mod_bucketeer+O+buckets manipulation filter. Useful only for developers and testing purposes."
"modules/debugging/mod_bucketeer+O+buckets manipulation filter. Useful only for developers and testing purposes."
"modules/debugging/mod_dumpio+I+I/O dump filter"
"modules/debugging/mod_dumpio+I+I/O dump filter"
"modules/echo/mod_echo+O+ECHO server"
"modules/echo/mod_echo+O+ECHO server"
"modules/examples/mod_case_filter+O+Example uppercase conversion filter"
"modules/examples/mod_case_filter+O+Example uppercase conversion filter"
"modules/examples/mod_case_filter_in+O+Example uppercase conversion input filter"
"modules/examples/mod_case_filter_in+O+Example uppercase conversion input filter"
"modules/examples/mod_example_hooks+O+Example hook callback handler module"
"modules/examples/mod_example_hooks+O+Example hook callback handler module"
"modules/examples/mod_example_ipc+O+Example of shared memory and mutex usage"
"modules/examples/mod_example_ipc+O+Example of shared memory and mutex usage"
"modules/filters/mod_brotli+i+Brotli compression support"
"modules/filters/mod_brotli+i+Brotli compression support"
"modules/filters/mod_buffer+I+Filter Buffering"
"modules/filters/mod_buffer+I+Filter Buffering"
"modules/filters/mod_charset_lite+i+character set translation"
"modules/filters/mod_charset_lite+i+character set translation"
"modules/filters/mod_data+O+RFC2397 data encoder"
"modules/filters/mod_data+O+RFC2397 data encoder"
"modules/filters/mod_deflate+i+Deflate transfer encoding support"
"modules/filters/mod_deflate+i+Deflate transfer encoding support"
"modules/filters/mod_ext_filter+I+external filter module"
"modules/filters/mod_ext_filter+I+external filter module"
"modules/filters/mod_filter+A+Smart Filtering"
"modules/filters/mod_filter+A+Smart Filtering"
"modules/filters/mod_include+I+Server Side Includes"
"modules/filters/mod_include+I+Server Side Includes"
"modules/filters/mod_proxy_html+i+Fix HTML Links in a Reverse Proxy"
"modules/filters/mod_proxy_html+i+Fix HTML Links in a Reverse Proxy"
"modules/filters/mod_ratelimit+I+Output Bandwidth Limiting"
"modules/filters/mod_ratelimit+I+Output Bandwidth Limiting"
"modules/filters/mod_reflector+O+Reflect request through the output filter stack"
"modules/filters/mod_reflector+O+Reflect request through the output filter stack"
"modules/filters/mod_reqtimeout+A+Limit time waiting for request from client"
"modules/filters/mod_reqtimeout+A+Limit time waiting for request from client"
"modules/filters/mod_request+I+Request Body Filtering"
"modules/filters/mod_request+I+Request Body Filtering"
"modules/filters/mod_sed+I+filter request and/or response bodies through sed"
"modules/filters/mod_sed+I+filter request and/or response bodies through sed"
"modules/filters/mod_substitute+I+response content rewrite-like filtering"
"modules/filters/mod_substitute+I+response content rewrite-like filtering"
"modules/filters/mod_xml2enc+i+i18n support for markup filters"
"modules/filters/mod_xml2enc+i+i18n support for markup filters"
"modules/generators/mod_asis+I+as-is filetypes"
"modules/generators/mod_asis+I+as-is filetypes"
"modules/generators/mod_autoindex+A+directory listing"
"modules/generators/mod_autoindex+A+directory listing"
"modules/generators/mod_cgi+I+CGI scripts"
"modules/generators/mod_cgi+I+CGI scripts"
"modules/generators/mod_info+I+server information"
"modules/generators/mod_info+I+server information"
"modules/generators/mod_status+I+process/thread monitoring"
"modules/generators/mod_status+I+process/thread monitoring"
"modules/http/mod_mime+A+mapping of file-extension to MIME. Disabling this module is normally not recommended."
"modules/http/mod_mime+A+mapping of file-extension to MIME. Disabling this module is normally not recommended."
"modules/http2/mod_http2+i+HTTP/2 protocol support"
"modules/http2/mod_http2+i+HTTP/2 protocol support"
"modules/ldap/mod_ldap+i+LDAP caching and connection pooling services"
"modules/ldap/mod_ldap+i+LDAP caching and connection pooling services"
"modules/loggers/mod_log_config+A+logging configuration. You won't be able to log requests to the server without this module."
"modules/loggers/mod_log_config+A+logging configuration. You won't be able to log requests to the server without this module."
"modules/loggers/mod_log_debug+I+configurable debug logging"
"modules/loggers/mod_log_debug+I+configurable debug logging"
"modules/loggers/mod_log_forensic+I+forensic logging"
"modules/loggers/mod_log_forensic+I+forensic logging"
"modules/loggers/mod_logio+I+input and output logging"
"modules/loggers/mod_logio+I+input and output logging"
"modules/lua/mod_lua+i+Apache Lua Framework"
"modules/lua/mod_lua+i+Apache Lua Framework"
"modules/md/mod_md+i+Apache Managed Domains (Certificates)"
"modules/md/mod_md+i+Apache Managed Domains (Certificates)"
"modules/mappers/mod_actions+I+Action triggering on requests"
"modules/mappers/mod_actions+I+Action triggering on requests"
"modules/mappers/mod_alias+A+mapping of requests to different filesystem parts"
"modules/mappers/mod_alias+A+mapping of requests to different filesystem parts"
"modules/mappers/mod_dir+A+directory request handling"
"modules/mappers/mod_dir+A+directory request handling"
"modules/mappers/mod_imagemap+I+server-side imagemaps"
"modules/mappers/mod_imagemap+I+server-side imagemaps"
"modules/mappers/mod_negotiation+I+content negotiation"
"modules/mappers/mod_negotiation+I+content negotiation"
"modules/mappers/mod_rewrite+I+rule based URL manipulation"
"modules/mappers/mod_rewrite+I+rule based URL manipulation"
"modules/mappers/mod_speling+I+correct common URL misspellings"
"modules/mappers/mod_speling+I+correct common URL misspellings"
"modules/mappers/mod_userdir+I+mapping of requests to user-specific directories"
"modules/mappers/mod_userdir+I+mapping of requests to user-specific directories"
"modules/mappers/mod_vhost_alias+I+mass virtual hosting module"
"modules/mappers/mod_vhost_alias+I+mass virtual hosting module"
"modules/metadata/mod_cern_meta+O+CERN-type meta files"
"modules/metadata/mod_cern_meta+O+CERN-type meta files"
"modules/metadata/mod_env+A+clearing/setting of ENV vars"
"modules/metadata/mod_env+A+clearing/setting of ENV vars"
"modules/metadata/mod_expires+I+Expires header control"
"modules/metadata/mod_expires+I+Expires header control"
"modules/metadata/mod_headers+A+HTTP header control"
"modules/metadata/mod_headers+A+HTTP header control"
"modules/metadata/mod_ident+O+RFC 1413 identity check"
"modules/metadata/mod_ident+O+RFC 1413 identity check"
"modules/metadata/mod_mime_magic+O+automagically determining MIME type"
"modules/metadata/mod_mime_magic+O+automagically determining MIME type"
"modules/metadata/mod_remoteip+I+translate header contents to an apparent client remote_ip"
"modules/metadata/mod_remoteip+I+translate header contents to an apparent client remote_ip"
"modules/metadata/mod_setenvif+A+basing ENV vars on headers"
"modules/metadata/mod_setenvif+A+basing ENV vars on headers"
"modules/metadata/mod_unique_id+I+per-request unique ids"
"modules/metadata/mod_unique_id+I+per-request unique ids"
"modules/metadata/mod_usertrack+I+user-session tracking"
"modules/metadata/mod_usertrack+I+user-session tracking"
"modules/metadata/mod_version+A+determining httpd version in config files"
"modules/metadata/mod_version+A+determining httpd version in config files"
"modules/proxy/balancers/mod_lbmethod_bybusyness+I+Apache proxy Load balancing by busyness"
"modules/proxy/balancers/mod_lbmethod_bybusyness+I+Apache proxy Load balancing by busyness"
"modules/proxy/balancers/mod_lbmethod_byrequests+I+Apache proxy Load balancing by request counting"
"modules/proxy/balancers/mod_lbmethod_byrequests+I+Apache proxy Load balancing by request counting"
"modules/proxy/balancers/mod_lbmethod_bytraffic+I+Apache proxy Load balancing by traffic counting"
"modules/proxy/balancers/mod_lbmethod_bytraffic+I+Apache proxy Load balancing by traffic counting"
"modules/proxy/balancers/mod_lbmethod_heartbeat+I+Apache proxy Load balancing from Heartbeats"
"modules/proxy/balancers/mod_lbmethod_heartbeat+I+Apache proxy Load balancing from Heartbeats"
"modules/proxy/mod_proxy_ajp+I+Apache proxy AJP module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_ajp+I+Apache proxy AJP module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_balancer+I+Apache proxy BALANCER module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_balancer+I+Apache proxy BALANCER module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy+I+Apache proxy module"
"modules/proxy/mod_proxy+I+Apache proxy module"
"modules/proxy/mod_proxy_connect+I+Apache proxy CONNECT module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_connect+I+Apache proxy CONNECT module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_express+I+mass reverse-proxy module. Requires --enable-proxy."
"modules/proxy/mod_proxy_express+I+mass reverse-proxy module. Requires --enable-proxy."
"modules/proxy/mod_proxy_fcgi+I+Apache proxy FastCGI module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_fcgi+I+Apache proxy FastCGI module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_ftp+I+Apache proxy FTP module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_ftp+I+Apache proxy FTP module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_http+I+Apache proxy HTTP module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_http+I+Apache proxy HTTP module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_hcheck+I+Apache proxy health check module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_hcheck+I+Apache proxy health check module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_scgi+I+Apache proxy SCGI module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_scgi+I+Apache proxy SCGI module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_wstunnel+I+Apache proxy Websocket Tunnel module. Requires and is enabled by --enable-proxy."
"modules/proxy/mod_proxy_wstunnel+I+Apache proxy Websocket Tunnel module. Requires and is enabled by --enable-proxy."
"modules/http2/mod_proxy_http2+i+Apache proxy HTTP/2 module. Requires --enable-proxy."
"modules/http2/mod_proxy_http2+i+Apache proxy HTTP/2 module. Requires --enable-proxy."
"modules/session/mod_session+I+session module"
"modules/session/mod_session+I+session module"
"modules/session/mod_session_cookie+I+session cookie module"
"modules/session/mod_session_cookie+I+session cookie module"
"modules/session/mod_session_crypto+i+session crypto module"
"modules/session/mod_session_crypto+i+session crypto module"
"modules/session/mod_session_dbd+I+session dbd module"
"modules/session/mod_session_dbd+I+session dbd module"
"modules/slotmem/mod_slotmem_plain+I+slotmem provider that uses plain memory"
"modules/slotmem/mod_slotmem_plain+I+slotmem provider that uses plain memory"
"modules/slotmem/mod_slotmem_shm+I+slotmem provider that uses shared memory"
"modules/slotmem/mod_slotmem_shm+I+slotmem provider that uses shared memory"
"modules/ssl/mod_ssl+i+SSL/TLS support"
"modules/ssl/mod_ssl+i+SSL/TLS support"
"modules/test/mod_dialup+O+rate limits static files to dialup modem speeds"
"modules/test/mod_dialup+O+rate limits static files to dialup modem speeds"
"modules/test/mod_optional_fn_export+O+example optional function exporter"
"modules/test/mod_optional_fn_export+O+example optional function exporter"
"modules/test/mod_optional_fn_import+O+example optional function importer"
"modules/test/mod_optional_fn_import+O+example optional function importer"
"modules/test/mod_optional_hook_export+O+example optional hook exporter"
"modules/test/mod_optional_hook_export+O+example optional hook exporter"
"modules/test/mod_optional_hook_import+O+example optional hook importer"
"modules/test/mod_optional_hook_import+O+example optional hook importer"
)
)
# Track which modules actually built have APIs to link against.
# Track which modules actually built have APIs to link against.
SET(installed_mod_libs_exps)
SET(installed_mod_libs_exps)
# Define extra definitions, sources, headers, etc. required by some modules.
# Define extra definitions, sources, headers, etc. required by some modules.
# This could be included in the master list of modules above, though it
# This could be included in the master list of modules above, though it
# certainly would get a lot more unreadable.
# certainly would get a lot more unreadable.
SET(mod_apreq_extra_defines APREQ_DECLARE_EXPORT)
SET(mod_apreq_extra_defines APREQ_DECLARE_EXPORT)
SET(mod_apreq_extra_sources modules/apreq/handle.c)
SET(mod_apreq_extra_sources modules/apreq/handle.c)
SET(mod_apreq_main_source modules/apreq/filter.c)
SET(mod_apreq_main_source modules/apreq/filter.c)
SET(mod_authz_dbd_extra_defines AUTHZ_DBD_DECLARE_EXPORT)
SET(mod_authz_dbd_extra_defines AUTHZ_DBD_DECLARE_EXPORT)
SET(mod_authnz_ldap_requires APR_HAS_LDAP)
SET(mod_authnz_ldap_requires APR_HAS_LDAP)
SET(mod_authnz_ldap_extra_libs mod_ldap)
SET(mod_authnz_ldap_extra_libs mod_ldap)
SET(mod_cache_extra_defines CACHE_DECLARE_EXPORT)
SET(mod_cache_extra_defines CACHE_DECLARE_EXPORT)
SET(mod_cache_extra_sources
SET(mod_cache_extra_sources
modules/cache/cache_storage.c modules/cache/cache_util.c
modules/cache/cache_storage.c modules/cache/cache_util.c
)
)
SET(mod_cache_install_lib 1)
SET(mod_cache_install_lib 1)
SET(mod_cache_disk_extra_libs mod_cache)
SET(mod_cache_disk_extra_libs mod_cache)
SET(mod_cache_socache_extra_libs mod_cache)
SET(mod_cache_socache_extra_libs mod_cache)
SET(mod_charset_lite_requires APR_HAS_XLATE)
SET(mod_charset_lite_requires APR_HAS_XLATE)
SET(mod_dav_extra_defines DAV_DECLARE_EXPORT)
SET(mod_dav_extra_defines DAV_DECLARE_EXPORT)
SET(mod_dav_extra_sources
SET(mod_dav_extra_sources
modules/dav/main/liveprop.c modules/dav/main/props.c
modules/dav/main/liveprop.c modules/dav/main/props.c
modules/dav/main/std_liveprop.c modules/dav/main/providers.c
modules/dav/main/std_liveprop.c modules/dav/main/providers.c
modules/dav/main/util.c modules/dav/main/util_lock.c
modules/dav/main/util.c modules/dav/main/util_lock.c
)
)
SET(mod_dav_install_lib 1)
SET(mod_dav_install_lib 1)
SET(mod_dav_fs_extra_sources
SET(mod_dav_fs_extra_sources
modules/dav/fs/dbm.c modules/dav/fs/lock.c
modules/dav/fs/dbm.c modules/dav/fs/lock.c
modules/dav/fs/repos.c
modules/dav/fs/repos.c
)
)
SET(mod_dav_fs_extra_libs mod_dav)
SET(mod_dav_fs_extra_libs mod_dav)
SET(mod_dav_lock_extra_sources modules/dav/lock/locks.c)
SET(mod_dav_lock_extra_sources modules/dav/lock/locks.c)
SET(mod_dav_lock_extra_libs mod_dav)
SET(mod_dav_lock_extra_libs mod_dav)
SET(mod_dbd_extra_defines DBD_DECLARE_EXPORT)
SET(mod_dbd_extra_defines DBD_DECLARE_EXPORT)
SET(mod_deflate_requires ZLIB_FOUND)
SET(mod_deflate_requires ZLIB_FOUND)
IF(ZLIB_FOUND)
IF(ZLIB_FOUND)
SET(mod_deflate_extra_includes ${ZLIB_INCLUDE_DIR})
SET(mod_deflate_extra_includes ${ZLIB_INCLUDE_DIR})
SET(mod_deflate_extra_libs ${ZLIB_LIBRARIES})
SET(mod_deflate_extra_libs ${ZLIB_LIBRARIES})
ENDIF()
ENDIF()
SET(mod_brotli_requires BROTLI_FOUND)
SET(mod_brotli_requires BROTLI_FOUND)
IF(BROTLI_FOUND)
IF(BROTLI_FOUND)
SET(mod_brotli_extra_includes ${BROTLI_INCLUDE_DIR})
SET(mod_brotli_extra_includes ${BROTLI_INCLUDE_DIR})
SET(mod_brotli_extra_libs ${BROTLI_LIBRARIES})
SET(mod_brotli_extra_libs ${BROTLI_LIBRARIES})
ENDIF()
ENDIF()
SET(mod_firehose_requires SOMEONE_TO_MAKE_IT_COMPILE_ON_WINDOWS)
SET(mod_firehose_requires SOMEONE_TO_MAKE_IT_COMPILE_ON_WINDOWS)
SET(mod_heartbeat_extra_libs mod_watchdog)
SET(mod_heartbeat_extra_libs mod_watchdog)
SET(mod_http2_requires NGHTTP2_FOUND)
SET(mod_http2_requires NGHTTP2_FOUND)
SET(mod_http2_extra_defines ssize_t=long)
SET(mod_http2_extra_defines ssize_t=long)
SET(mod_http2_extra_includes ${NGHTTP2_INCLUDE_DIR})
SET(mod_http2_extra_includes ${NGHTTP2_INCLUDE_DIR})
SET(mod_http2_extra_libs ${NGHTTP2_LIBRARIES})
SET(mod_http2_extra_libs ${NGHTTP2_LIBRARIES})
SET(mod_http2_extra_sources
SET(mod_http2_extra_sources
modules/http2/h2_alt_svc.c
modules/http2/h2_alt_svc.c
modules/http2/h2_bucket_eos.c modules/http2/h2_config.c
modules/http2/h2_bucket_eos.c modules/http2/h2_config.c
modules/http2/h2_conn.c modules/http2/h2_conn_io.c
modules/http2/h2_conn.c modules/http2/h2_conn_io.c
modules/http2/h2_ctx.c modules/http2/h2_filter.c
modules/http2/h2_ctx.c modules/http2/h2_filter.c
modules/http2/h2_from_h1.c modules/http2/h2_h2.c
modules/http2/h2_from_h1.c modules/http2/h2_h2.c
modules/http2/h2_bucket_beam.c
modules/http2/h2_bucket_beam.c
modules/http2/h2_mplx.c modules/http2/h2_push.c
modules/http2/h2_mplx.c modules/http2/h2_push.c
modules/http2/h2_request.c modules/http2/h2_headers.c
modules/http2/h2_request.c modules/http2/h2_headers.c
modules/http2/h2_session.c modules/http2/h2_stream.c
modules/http2/h2_session.c modules/http2/h2_stream.c
modules/http2/h2_switch.c
modules/http2/h2_switch.c
modules/http2/h2_task.c modules/http2/h2_util.c
modules/http2/h2_task.c modules/http2/h2_util.c
modules/http2/h2_workers.c
modules/http2/h2_workers.c
)
)
SET(mod_ldap_extra_defines LDAP_DECLARE_EXPORT)
SET(mod_ldap_extra_defines LDAP_DECLARE_EXPORT)
SET(mod_ldap_extra_libs wldap32)
SET(mod_ldap_extra_libs wldap32)
SET(mod_ldap_extra_sources
SET(mod_ldap_extra_sources
modules/ldap/util_ldap_cache.c modules/ldap/util_ldap_cache_mgr.c
modules/ldap/util_ldap_cache.c modules/ldap/util_ldap_cache_mgr.c
)
)
SET(mod_ldap_main_source modules/ldap/util_ldap.c)
SET(mod_ldap_main_source modules/ldap/util_ldap.c)
SET(mod_ldap_requires APR_HAS_LDAP)
SET(mod_ldap_requires APR_HAS_LDAP)
SET(mod_lua_extra_defines AP_LUA_DECLARE_EXPORT)
SET(mod_lua_extra_defines AP_LUA_DECLARE_EXPORT)
SET(mod_lua_extra_includes ${LUA_INCLUDE_DIR})
SET(mod_lua_extra_includes ${LUA_INCLUDE_DIR})
SET(mod_lua_extra_libs ${LUA_LIBRARIES})
SET(mod_lua_extra_libs ${LUA_LIBRARIES})
SET(mod_lua_extra_sources
SET(mod_lua_extra_sources
modules/lua/lua_apr.c modules/lua/lua_config.c
modules/lua/lua_apr.c modules/lua/lua_config.c
modules/lua/lua_passwd.c modules/lua/lua_request.c
modules/lua/lua_passwd.c modules/lua/lua_request.c
modules/lua/lua_vmprep.c modules/lua/lua_dbd.c
modules/lua/lua_vmprep.c modules/lua/lua_dbd.c
)
)
SET(mod_lua_requires LUA51_FOUND)
SET(mod_lua_requires LUA51_FOUND)
SET(mod_md_requires OPENSSL_FOUND CURL_FOUND JANSSON_FOUND)
SET(mod_md_requires OPENSSL_FOUND CURL_FOUND JANSSON_FOUND)
SET(mod_md_extra_includes ${OPENSSL_INCLUDE_DIR} ${CURL_INCLUDE_DIR} ${JANSSON_INCLUDE_DIR})
SET(mod_md_extra_includes ${OPENSSL_INCLUDE_DIR} ${CURL_INCLUDE_DIR} ${JANSSON_INCLUDE_DIR})
SET(mod_md_extra_libs ${OPENSSL_LIBRARIES} ${CURL_LIBRARIES} ${JANSSON_LIBRARIES} mod_watchdog)
SET(mod_md_extra_libs ${OPENSSL_LIBRARIES} ${CURL_LIBRARIES} ${JANSSON_LIBRARIES} mod_watchdog)
SET(mod_md_extra_sources
SET(mod_md_extra_sources
modules/md/md_acme.c modules/md/md_acme_acct.c
modules/md/md_acme.c modules/md/md_acme_acct.c
modules/md/md_acme_authz.c modules/md/md_acme_drive.c
modules/md/md_acme_authz.c modules/md/md_acme_drive.c
modules/md/md_acmev2_drive.c modules/md/md_event.c
modules/md/md_acmev2_drive.c modules/md/md_event.c
modules/md/md_acme_order.c modules/md/md_core.c
modules/md/md_acme_order.c modules/md/md_core.c
modules/md/md_curl.c modules/md/md_crypt.c
modules/md/md_curl.c modules/md/md_crypt.c
modules/md/md_http.c modules/md/md_json.c
modules/md/md_http.c modules/md/md_json.c
modules/md/md_jws.c modules/md/md_log.c
modules/md/md_jws.c modules/md/md_log.c
modules/md/md_result.c modules/md/md_reg.c
modules/md/md_result.c modules/md/md_reg.c
modules/md/md_status.c modules/md/md_store.c
modules/md/md_status.c modules/md/md_store.c
modules/md/md_store_fs.c modules/md/md_time.c
modules/md/md_store_fs.c modules/md/md_time.c
modules/md/md_ocsp.c modules/md/md_util.c
modules/md/md_ocsp.c modules/md/md_util.c
modules/md/mod_md_config.c modules/md/mod_md_drive.c
modules/md/mod_md_config.c modules/md/mod_md_drive.c
modules/md/mod_md_os.c modules/md/mod_md_status.c
modules/md/mod_md_os.c modules/md/mod_md_status.c
modules/md/mod_md_ocsp.c
modules/md/mod_md_ocsp.c
)
)
SET(mod_optional_hook_export_extra_defines AP_DECLARE_EXPORT) # bogus reuse of core API prefix
SET(mod_optional_hook_export_extra_defines AP_DECLARE_EXPORT) # bogus reuse of core API prefix
SET(mod_proxy_extra_defines PROXY_DECLARE_EXPORT)
SET(mod_proxy_extra_defines PROXY_DECLARE_EXPORT)
SET(mod_proxy_extra_sources modules/proxy/proxy_util.c)
SET(mod_proxy_extra_sources modules/proxy/proxy_util.c)
SET(mod_proxy_install_lib 1)
SET(mod_proxy_install_lib 1)
SET(mod_proxy_ajp_extra_sources
SET(mod_proxy_ajp_extra_sources
modules/proxy/ajp_header.c modules/proxy/ajp_link.c
modules/proxy/ajp_header.c modules/proxy/ajp_link.c
modules/proxy/ajp_msg.c modules/proxy/ajp_utils.c
modules/proxy/ajp_msg.c modules/proxy/ajp_utils.c
)
)
SET(mod_proxy_ajp_extra_libs mod_proxy)
SET(mod_proxy_ajp_extra_libs mod_proxy)
SET(mod_proxy_balancer_extra_libs mod_proxy)
SET(mod_proxy_balancer_extra_libs mod_proxy)
SET(mod_proxy_connect_extra_libs mod_proxy)
SET(mod_proxy_connect_extra_libs mod_proxy)
SET(mod_proxy_express_extra_libs mod_proxy)
SET(mod_proxy_express_extra_libs mod_proxy)
SET(mod_proxy_fcgi_extra_libs mod_proxy)
SET(mod_proxy_fcgi_extra_libs mod_proxy)
SET(mod_proxy_ftp_extra_libs mod_proxy)
SET(mod_proxy_ftp_extra_libs mod_proxy)
SET(mod_proxy_hcheck_extra_libs mod_proxy)
SET(mod_proxy_hcheck_extra_libs mod_proxy)
SET(mod_proxy_http_extra_libs mod_proxy)
SET(mod_proxy_http_extra_libs mod_proxy)
SET(mod_proxy_html_requires LIBXML2_FOUND)
SET(mod_proxy_html_requires LIBXML2_FOUND)
IF(LIBXML2_FOUND)
IF(LIBXML2_FOUND)
SET(mod_proxy_html_extra_includes "${LIBXML2_INCLUDE_DIR};${LIBXML2_ICONV_INCLUDE_DIR}")
SET(mod_proxy_html_extra_includes "${LIBXML2_INCLUDE_DIR};${LIBXML2_ICONV_INCLUDE_DIR}")
SET(mod_proxy_html_extra_libs "${LIBXML2_LIBRARIES};${LIBXML2_ICONV_LIBRARIES}")
SET(mod_proxy_html_extra_libs "${LIBXML2_LIBRARIES};${LIBXML2_ICONV_LIBRARIES}")
ENDIF()
ENDIF()
SET(mod_proxy_scgi_extra_libs mod_proxy)
SET(mod_proxy_scgi_extra_libs mod_proxy)
SET(mod_proxy_wstunnel_extra_libs mod_proxy)
SET(mod_proxy_wstunnel_extra_libs mod_proxy)
SET(mod_proxy_http2_requires NGHTTP2_FOUND)
SET(mod_proxy_http2_re
SET(mod_proxy_http2_extra_defines ssize_t=long)
SET(mod_proxy_http2_extra_includes ${NGHTTP2_INCLUDE_DIR})
SET(mod_proxy_http2_extra_libs ${NGHTTP2_LIBRARIES} mod_proxy)
SET(mod_proxy_http2_extra_sources
modules/http2/h2_proxy_session.c modules/http2/h2_proxy_util.c
)
SET(mod_ratelimit_extra_defines AP_RL_DECLARE_EXPORT)
SET(mod_se