include(CheckCSourceCompiles)
include(CheckIncludeFiles)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckVariableExists)
include(CheckTypeSize)
include(CheckLibraryExists)
include(CMakeDetermineCCompiler)
include(FindThreads)
include(FindPkgConfig)
include(LighttpdMacros)
add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES)
option(WITH_XATTR "with xattr-support for the stat-cache [default: off]")
option(WITH_MYSQL "with mysql-support for mod_vhostdb_mysql [default: off]")
option(WITH_PGSQL "with postgres-support for mod_vhostdb_pgsql [default: off]")
option(WITH_DBI "with dbi-support for mod_vhostdb_dbi [default: off]")
option(WITH_OPENSSL "with openssl-support [default: off]")
option(WITH_PCRE "with regex support [default: on]" ON)
option(WITH_WEBDAV_PROPS "with property-support for mod_webdav [default: off]")
option(WITH_WEBDAV_LOCKS "locks in webdav [default: off]")
option(WITH_BZIP "with bzip2-support for mod_compress [default: off]")
option(WITH_ZLIB "with deflate-support for mod_compress [default: on]" ON)
option(WITH_KRB5 "with Kerberos5-support for mod_auth [default: off]")
option(WITH_LDAP "with LDAP-support for mod_auth mod_vhostdb_ldap [default: off]")
option(WITH_LUA "with lua 5.1 for mod_magnet [default: off]")
# option(WITH_VALGRIND "with internal support for valgrind [default: off]")
option(WITH_FAM "fam/gamin for reducing number of stat() calls [default: off]")
option(WITH_GDBM "gdbm storage for mod_trigger_b4_dl [default: off]")
option(WITH_MEMCACHED "memcached storage for mod_trigger_b4_dl [default: off]")
option(WITH_LIBEV "libev support for fdevent handlers [default: off]")
option(WITH_LIBUNWIND "with libunwind to print backtraces in asserts [default: off]")
option(WITH_GEOIP "with GeoIP-support mod_geoip [default: off]")
option(WITH_SASL "with SASL-support for mod_authn_sasl [default: off]")
if(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Clang")
option(BUILD_EXTRA_WARNINGS "extra warnings")
if(BUILD_EXTRA_WARNINGS)
set(WARN_CFLAGS "-g -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security")
set(WARN_LDFLAGS "-Wl,--as-needed")
# -Werror -Wbad-function-cast -Wmissing-prototypes
endif()
endif()
option(BUILD_STATIC "build a static lighttpd with all modules added")
if(BUILD_STATIC)
set(LIGHTTPD_STATIC 1)
elseif(APPLE)
set(CMAKE_SHARED_MODULE_PREFIX "")
else()
set(CMAKE_SHARED_LIBRARY_PREFIX "")
endif()
if(WITH_LIBEV)
find_package(LibEV REQUIRED)
set(HAVE_LIBEV 1)
endif()
if(WITH_LIBUNWIND)
pkg_check_modules(LIBUNWIND REQUIRED libunwind)
set(HAVE_LIBUNWIND 1)
endif()
if(WITH_WEBDAV_PROPS)
set(WITH_XML 1)
set(WITH_SQLITE3 1)
endif()
if(WITH_WEBDAV_LOCKS)
set(WITH_UUID 1)
endif()
check_include_files(sys/devpoll.h HAVE_SYS_DEVPOLL_H)
check_include_files(sys/epoll.h HAVE_SYS_EPOLL_H)
check_include_files(sys/event.h HAVE_SYS_EVENT_H)
check_include_files(sys/mman.h HAVE_SYS_MMAN_H)
check_include_files(sys/poll.h HAVE_SYS_POLL_H)
check_include_files(sys/port.h HAVE_SYS_PORT_H)
check_include_files(sys/prctl.h HAVE_SYS_PRCTL_H)
check_include_files(sys/resource.h HAVE_SYS_RESOURCE_H)
check_include_files(sys/sendfile.h HAVE_SYS_SENDFILE_H)
check_include_files(sys/select.h HAVE_SYS_SELECT_H)
check_include_files(sys/types.h HAVE_SYS_TYPES_H)
check_include_files(sys/uio.h HAVE_SYS_UIO_H)
check_include_files(sys/un.h HAVE_SYS_UN_H)
check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
check_include_files(sys/time.h HAVE_SYS_TIME_H)
check_include_files(unistd.h HAVE_UNISTD_H)
check_include_files(pthread.h HAVE_PTHREAD_H)
check_include_files(getopt.h HAVE_GETOPT_H)
check_include_files(inttypes.h HAVE_INTTYPES_H)
check_include_files(poll.h HAVE_POLL_H)
check_include_files(pwd.h HAVE_PWD_H)
check_include_files(stddef.h HAVE_STDDEF_H)
check_include_files(stdint.h HAVE_STDINT_H)
check_include_files(strings.h HAVE_STRINGS_H)
check_include_files(syslog.h HAVE_SYSLOG_H)
# check for fastcgi lib, for the tests only
check_include_files(fastcgi.h HAVE_FASTCGI_H)
check_include_files(fastcgi/fastcgi.h HAVE_FASTCGI_FASTCGI_H)
# will be needed for auth
check_include_files(crypt.h HAVE_CRYPT_H)
# check if we need libcrypt for crypt_r()
check_library_exists(crypt crypt_r "" HAVE_LIBCRYPT_CRYPT_R)
if(HAVE_LIBCRYPT_CRYPT_R)
set(HAVE_CRYPT_R 1)
set(HAVE_LIBCRYPT 1)
else()
check_library_exists(crypt crypt "" HAVE_LIBCRYPT)
endif()
check_function_exists(crypt_r HAVE_CRYPT_R)
check_function_exists(crypt HAVE_CRYPT)
check_include_files(sys/inotify.h HAVE_SYS_INOTIFY_H)
if(HAVE_SYS_INOTIFY_H)
check_function_exists(inotify_init HAVE_INOTIFY_INIT)
endif()
set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
check_type_size(socklen_t HAVE_SOCKLEN_T)
set(CMAKE_EXTRA_INCLUDE_FILES)
check_include_files(sys/random.h HAVE_SYS_RANDOM_H)
set(CMAKE_EXTRA_INCLUDE_FILES sys/random.h)
check_function_exists(getentropy HAVE_GETENTROPY)
set(CMAKE_EXTRA_INCLUDE_FILES)
check_include_files(linux/random.h HAVE_LINUX_RANDOM_H)
set(CMAKE_EXTRA_INCLUDE_FILES linux/random.h)
check_function_exists(getrandom HAVE_GETRANDOM)
set(CMAKE_EXTRA_INCLUDE_FILES)
check_type_size(long SIZEOF_LONG)
check_type_size(off_t SIZEOF_OFF_T)
check_function_exists(arc4random_buf HAVE_ARC4RANDOM_BUF)
check_function_exists(chroot HAVE_CHROOT)
check_function_exists(epoll_ctl HAVE_EPOLL_CTL)
check_function_exists(fork HAVE_FORK)
check_function_exists(getloadavg HAVE_GETLOADAVG)
check_function_exists(getrlimit HAVE_GETRLIMIT)
check_function_exists(getuid HAVE_GETUID)
check_function_exists(gmtime_r HAVE_GMTIME_R)
check_function_exists(inet_ntop HAVE_INET_NTOP)
check_function_exists(jrand48 HAVE_JRAND48)
check_function_exists(kqueue HAVE_KQUEUE)
check_function_exists(localtime_r HAVE_LOCALTIME_R)
check_function_exists(lstat HAVE_LSTAT)
check_function_exists(madvise HAVE_MADVISE)
check_function_exists(memcpy HAVE_MEMCPY)
check_function_exists(memset HAVE_MEMSET)
check_function_exists(mmap HAVE_MMAP)
check_function_exists(pathconf HAVE_PATHCONF)
check_function_exists(pipe2 HAVE_PIPE2)
check_function_exists(poll HAVE_POLL)
check_function_exists(port_create HAVE_PORT_CREATE)
check_function_exists(prctl HAVE_PRCTL)
check_function_exists(pread HAVE_PREAD)
check_function_exists(posix_fadvise HAVE_POSIX_FADVISE)
check_function_exists(select HAVE_SELECT)
check_function_exists(sendfile HAVE_SENDFILE)
check_function_exists(send_file HAVE_SEND_FILE)
check_function_exists(sendfile64 HAVE_SENDFILE64)
check_function_exists(sendfilev HAVE_SENDFILEV)
check_function_exists(sigaction HAVE_SIGACTION)
check_function_exists(signal HAVE_SIGNAL)
check_function_exists(sigtimedwait HAVE_SIGTIMEDWAIT)
check_function_exists(srandom HAVE_SRANDOM)
check_function_exists(strptime HAVE_STRPTIME)
check_function_exists(syslog HAVE_SYSLOG)
check_function_exists(writev HAVE_WRITEV)
check_function_exists(inet_aton HAVE_INET_ATON)
check_function_exists(issetugid HAVE_ISSETUGID)
check_function_exists(inet_pton HAVE_INET_PTON)
check_function_exists(memset_s HAVE_MEMSET_S)
check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO)
check_symbol_exists(clock_gettime "time.h" HAVE_CLOCK_GETTIME)
if (NOT HAVE_CLOCK_GETTIME)
check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME)
endif()
check_c_source_compiles("
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int main() {
struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
return 0;
}" HAVE_IPV6)
check_c_source_compiles("
__attribute__((weak)) void __dummy(void *x) { }
int main() {
void *x;
__dummy(x);
}
" HAVE_WEAK_SYMBOLS)
check_c_source_compiles("
#include <time.h>
int main(void) {
struct tm t;
t.tm_gmtoff = 0;
return 0;
}
" HAVE_STRUCT_TM_GMTOFF)
## refactor me
macro(XCONFIG _package _include_DIR _link_DIR _link_FLAGS _cflags)
# reset the variables at the beginning
没有合适的资源?快使用搜索试试~ 我知道了~
lighttpd restfulapi cgi
需积分: 21 5 下载量 92 浏览量
2018-10-22
17:46:19
上传
评论
收藏 10.08MB GZ 举报
温馨提示
共1083个文件
c:115个
po:115个
la:102个
参考 https://blog.csdn.net/caofengtao1314/article/details/83275730
资源推荐
资源详情
资源评论
收起资源包目录
lighttpd restfulapi cgi (1083个子文件)
lighttpd.8 2KB
lighttpd.8 2KB
lighttpd-angel.8 900B
lighttpd-angel.8 900B
configure.ac 37KB
Makefile.am 17KB
Makefile.am 1KB
Makefile.am 1KB
Makefile.am 402B
Makefile.am 402B
Makefile.am 402B
Makefile.am 400B
Makefile.am 299B
Makefile.am 147B
Makefile.am 71B
Makefile.am 62B
Makefile.am 58B
Makefile.am 48B
Makefile.am 39B
Makefile.am 28B
Makefile.am 27B
Makefile.am 19B
Makefile.am 16B
ar-lib 6KB
AUTHORS 240B
dummyfile.bla 6B
meson.build 25KB
meson.build 1KB
meson.build 797B
mongoose.c 477KB
lemon.c 127KB
gw_backend.c 91KB
mod_webdav.c 77KB
mod_openssl.c 68KB
configparser.c 61KB
mod_extforward.c 59KB
server.c 54KB
mod_wstunnel.c 53KB
http-header-glue.c 50KB
configfile.c 47KB
connections.c 39KB
mod_deflate.c 39KB
mod_proxy.c 39KB
mod_ssi.c 37KB
request.c 36KB
mod_dirlisting.c 35KB
mod_accesslog.c 35KB
mod_magnet.c 31KB
mod_ssi_exprparser.c 30KB
mod_cgi.c 30KB
mod_status.c 30KB
mod_compress.c 29KB
buffer.c 29KB
mod_authn_gssapi.c 28KB
mod_auth.c 28KB
fdevent.c 25KB
mod_authn_ldap.c 24KB
mod_authn_file.c 24KB
lempar.c 22KB
sock_addr.c 22KB
stat_cache.c 21KB
network_write.c 21KB
mod_authn_mysql.c 21KB
response.c 20KB
mod_vhostdb_ldap.c 18KB
connections-glue.c 18KB
chunk.c 18KB
configfile-glue.c 17KB
mod_fastcgi.c 15KB
mod_secdownload.c 15KB
mod_trigger_b4_dl.c 15KB
plugin.c 14KB
network.c 13KB
mod_rrdtool.c 12KB
mod_geoip.c 12KB
mod_rewrite.c 12KB
mod_expire.c 11KB
array.c 10KB
md5.c 10KB
mod_vhostdb_dbi.c 10KB
mod_mysql_vhost.c 10KB
mod_uploadprogress.c 9KB
mod_userdir.c 9KB
mod_evhost.c 9KB
mod_authn_sasl.c 9KB
mod_vhostdb_mysql.c 9KB
proc_open.c 9KB
mod_scgi.c 9KB
mod_setenv.c 9KB
mod_cml.c 8KB
mod_cml_lua.c 8KB
mod_vhostdb_pgsql.c 8KB
keyvalue.c 8KB
base64.c 7KB
mod_usertrack.c 7KB
mod_simple_vhost.c 7KB
rand.c 7KB
splaytree.c 7KB
algo_sha1.c 7KB
mod_flv_streaming.c 7KB
共 1083 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
cft56200_ln
- 粉丝: 277
- 资源: 117
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功