mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Re-format/comment build options as we decide which ones are still relevant.
This commit is contained in:
parent
dbb9562ce9
commit
02808b0a92
2 changed files with 42 additions and 24 deletions
|
@ -4,37 +4,51 @@
|
|||
# #
|
||||
#--------------------------------------------------------------------#
|
||||
|
||||
##
|
||||
## Installation Settings
|
||||
##
|
||||
|
||||
# The installation directory
|
||||
# TODO: add to configure wrapper as '--prefix'
|
||||
set(CMAKE_INSTALL_PREFIX /usr/local
|
||||
CACHE STRING "Installation directory" FORCE)
|
||||
|
||||
# The installation subdirectory for Bro policy files
|
||||
# TODO: add to configure wrapper as '--datadir'
|
||||
set(DATADIR share/bro
|
||||
CACHE STRING "Installation subdirectory for Bro policy files" FORCE)
|
||||
|
||||
# Enable active mapping processing
|
||||
set(ACTIVE_MAPPING false
|
||||
CACHE STRING "enable active mapping processing" FORCE)
|
||||
##
|
||||
## Optional Features
|
||||
##
|
||||
|
||||
# Enable IPv6 processing
|
||||
# TODO: add to configure wrapper as '--bro-v6'
|
||||
# Eventually, this should be always on and won't be needed as an option
|
||||
set(BROv6 false
|
||||
CACHE STRING "enable IPv6 processing" FORCE)
|
||||
|
||||
# Enable DFA state expiration
|
||||
set(EXPIRE_DFA_STATES false
|
||||
CACHE STRING "enable DFA state expiration" FORCE)
|
||||
set(USE_INT64 true
|
||||
CACHE STRING "enable use of int64 (long long) for integers" FORCE)
|
||||
|
||||
# Enable select-based mainloop
|
||||
set(USE_SELECT_LOOP false
|
||||
# TODO: add to configure wrapper as '--enable-debug'
|
||||
# TODO: make this option do stuff
|
||||
set(ENABLE_DEBUG false
|
||||
CACHE STRING "No compiler optimizations" FORCE)
|
||||
|
||||
set(USE_SELECT_LOOP true
|
||||
CACHE STRING "enable select-based main loop" FORCE)
|
||||
|
||||
# Enable non-blocking DNS support
|
||||
set(USE_NB_DNS false
|
||||
CACHE STRING "enable non-blocking DNS support" FORCE)
|
||||
# TODO: add to configure wrapper as '--enable-perftools'
|
||||
# TODO: make this option do stuff
|
||||
set(ENABLE_PERFTOOLS false
|
||||
CACHE STRING "use Google's perftools" FORCE)
|
||||
|
||||
# Enable use of int64 (long long) for integers
|
||||
set(USE_INT64 false
|
||||
CACHE STRING "enable use of int64 (long long) for integers" FORCE)
|
||||
set(USE_NB_DNS true
|
||||
CACHE BOOL "Use non-blocking DNS support" FORCE)
|
||||
|
||||
##
|
||||
## Configure Dependencies for Non-Standard Paths
|
||||
##
|
||||
|
||||
# Uncomment to specify a custom prefix that contains the libpcap installation.
|
||||
#set(PCAP_ROOT path/to/your/pcap)
|
||||
|
@ -45,6 +59,15 @@ set(USE_INT64 false
|
|||
# Uncomment to specify a custom directory that contains the libpcap library.
|
||||
#set(PCAP_LIBRARYDIR path/to/your/pcap/lib)
|
||||
|
||||
# Attempt to use non-blocking DNS support by default
|
||||
set(USE_NB_DNS true
|
||||
CACHE BOOL "Use non-blocking DNS support" FORCE)
|
||||
# TODO: more dependencies:
|
||||
# Flex
|
||||
# Bison
|
||||
# BIND8
|
||||
# Perl?
|
||||
# BinPAC
|
||||
#
|
||||
# OpenSSL
|
||||
# Libmagic
|
||||
# LibGeoIP
|
||||
# Libz
|
||||
# Endace's DAG tools
|
||||
|
|
|
@ -45,19 +45,14 @@ find_package(BISON REQUIRED)
|
|||
find_package(PCAP REQUIRED)
|
||||
include_directories(BEFORE ${PCAP_INCLUDE_DIR})
|
||||
|
||||
# TODO: find libpcap from system or use shipped version
|
||||
# TODO: find bind8 lib?
|
||||
# TODO: optional OpenSSL
|
||||
# TODO: require OpenSSL
|
||||
# TODO: optional libmagic
|
||||
# TODO: optional libGeoIP
|
||||
# TODO: optional libz
|
||||
# TODO: optional Endace's DAG tools
|
||||
# TODO: optional Google perftools
|
||||
# TODO: what's the equivalent of these configure settings:
|
||||
# TODO: compiler warning flags
|
||||
# --disable-dependency-tracking speeds up one-time build
|
||||
# --enable-dependency-tracking do not reject slow dependency extractors
|
||||
# --disable-largefile omit support for large files
|
||||
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue