mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Deprecate --with-binpac/--with-bifcl configure options
This commit is contained in:
parent
60a4aef941
commit
60953e14e7
2 changed files with 42 additions and 42 deletions
|
@ -196,6 +196,10 @@ if (MSVC)
|
||||||
#set(WERROR_FLAG "/WX")
|
#set(WERROR_FLAG "/WX")
|
||||||
#set(WERROR_FLAG "/WX")
|
#set(WERROR_FLAG "/WX")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
# Always build binpac in static mode if building on Windows
|
||||||
|
set(BUILD_STATIC_BINPAC true)
|
||||||
|
|
||||||
else ()
|
else ()
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
if (BUILD_WITH_WERROR)
|
if (BUILD_WITH_WERROR)
|
||||||
|
@ -866,42 +870,33 @@ endif ()
|
||||||
set(PY_MOD_INSTALL_DIR ${py_mod_install_dir} CACHE STRING "Installation path for Python modules"
|
set(PY_MOD_INSTALL_DIR ${py_mod_install_dir} CACHE STRING "Installation path for Python modules"
|
||||||
FORCE)
|
FORCE)
|
||||||
|
|
||||||
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/auxil/binpac/CMakeLists.txt)
|
# BinPAC uses the same 'ENABLE_STATIC_ONLY' variable to define whether
|
||||||
|
# to build statically. Save a local copy so it can be set based on the
|
||||||
|
# configure flag before we add the subdirectory.
|
||||||
|
set(ENABLE_STATIC_ONLY_SAVED ${ENABLE_STATIC_ONLY})
|
||||||
|
|
||||||
set(ENABLE_STATIC_ONLY_SAVED ${ENABLE_STATIC_ONLY})
|
if (BUILD_STATIC_BINPAC)
|
||||||
if (MSVC)
|
|
||||||
set(BUILD_STATIC_BINPAC true)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (BUILD_STATIC_BINPAC)
|
|
||||||
set(ENABLE_STATIC_ONLY true)
|
set(ENABLE_STATIC_ONLY true)
|
||||||
endif ()
|
|
||||||
|
|
||||||
add_subdirectory(auxil/binpac)
|
|
||||||
set(ENABLE_STATIC_ONLY ${ENABLE_STATIC_ONLY_SAVED})
|
|
||||||
|
|
||||||
# FIXME: avoid hard-coding a path for multi-config generator support. See the
|
|
||||||
# TODO in ZeekPluginConfig.cmake.in.
|
|
||||||
set(BINPAC_EXE_PATH "${CMAKE_BINARY_DIR}/auxil/binpac/src/binpac${CMAKE_EXECUTABLE_SUFFIX}")
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_package(BinPAC REQUIRED)
|
add_subdirectory(auxil/binpac)
|
||||||
|
set(ENABLE_STATIC_ONLY ${ENABLE_STATIC_ONLY_SAVED})
|
||||||
|
|
||||||
# Add an alias (used by our plugin setup).
|
# FIXME: avoid hard-coding a path for multi-config generator support. See the
|
||||||
|
# TODO in ZeekPluginConfig.cmake.in.
|
||||||
|
set(BINPAC_EXE_PATH "${CMAKE_BINARY_DIR}/auxil/binpac/src/binpac${CMAKE_EXECUTABLE_SUFFIX}")
|
||||||
|
set(_binpac_exe_path "included")
|
||||||
|
|
||||||
|
# Need to call find_package so it sets up the include paths used by plugin builds.
|
||||||
|
find_package(BinPAC REQUIRED)
|
||||||
add_executable(Zeek::BinPAC ALIAS binpac)
|
add_executable(Zeek::BinPAC ALIAS binpac)
|
||||||
|
|
||||||
if (NOT BIFCL_EXE_PATH)
|
add_subdirectory(auxil/bifcl)
|
||||||
add_subdirectory(auxil/bifcl)
|
add_executable(Zeek::BifCl ALIAS bifcl)
|
||||||
add_executable(Zeek::BifCl ALIAS bifcl)
|
# FIXME: avoid hard-coding a path for multi-config generator support. See the
|
||||||
# FIXME: avoid hard-coding a path for multi-config generator support. See the
|
# TODO in ZeekPluginConfig.cmake.in.
|
||||||
# TODO in ZeekPluginConfig.cmake.in.
|
set(BIFCL_EXE_PATH "${CMAKE_BINARY_DIR}/auxil/bifcl/bifcl${CMAKE_EXECUTABLE_SUFFIX}")
|
||||||
set(BIFCL_EXE_PATH "${CMAKE_BINARY_DIR}/auxil/bifcl/bifcl${CMAKE_EXECUTABLE_SUFFIX}")
|
set(_bifcl_exe_path "included")
|
||||||
set(_bifcl_exe_path "included")
|
|
||||||
else ()
|
|
||||||
add_executable(Zeek::BifCl IMPORTED)
|
|
||||||
set_property(TARGET Zeek::BifCl PROPERTY IMPORTED_LOCATION "${BIFCL_EXE_PATH}")
|
|
||||||
set(_bifcl_exe_path "BIFCL_EXE_PATH")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (NOT GEN_ZAM_EXE_PATH)
|
if (NOT GEN_ZAM_EXE_PATH)
|
||||||
add_subdirectory(auxil/gen-zam)
|
add_subdirectory(auxil/gen-zam)
|
||||||
|
@ -1240,11 +1235,7 @@ endif ()
|
||||||
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink "." "${CMAKE_CURRENT_BINARY_DIR}/zeek")
|
execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink "." "${CMAKE_CURRENT_BINARY_DIR}/zeek")
|
||||||
|
|
||||||
if (BinPAC_ROOT_DIR)
|
set(ZEEK_CONFIG_BINPAC_ROOT_DIR ${BinPAC_ROOT_DIR})
|
||||||
set(ZEEK_CONFIG_BINPAC_ROOT_DIR ${BinPAC_ROOT_DIR})
|
|
||||||
else ()
|
|
||||||
set(ZEEK_CONFIG_BINPAC_ROOT_DIR ${ZEEK_ROOT_DIR})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (BROKER_ROOT_DIR)
|
if (BROKER_ROOT_DIR)
|
||||||
set(ZEEK_CONFIG_BROKER_ROOT_DIR ${BROKER_ROOT_DIR})
|
set(ZEEK_CONFIG_BROKER_ROOT_DIR ${BROKER_ROOT_DIR})
|
||||||
|
@ -1462,11 +1453,6 @@ else ()
|
||||||
set(_install_btest_tools_msg "no pcaps")
|
set(_install_btest_tools_msg "no pcaps")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set(_binpac_exe_path "included")
|
|
||||||
if (BINPAC_EXE_PATH)
|
|
||||||
set(_binpac_exe_path ${BINPAC_EXE_PATH})
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
set(_gen_zam_exe_path "included")
|
set(_gen_zam_exe_path "included")
|
||||||
if (GEN_ZAM_EXE_PATH)
|
if (GEN_ZAM_EXE_PATH)
|
||||||
set(_gen_zam_exe_path ${GEN_ZAM_EXE_PATH})
|
set(_gen_zam_exe_path ${GEN_ZAM_EXE_PATH})
|
||||||
|
|
18
configure
vendored
18
configure
vendored
|
@ -184,6 +184,8 @@ builddir=build
|
||||||
CMakeCacheEntries=""
|
CMakeCacheEntries=""
|
||||||
display_cmake=0
|
display_cmake=0
|
||||||
has_disable_archiver=0
|
has_disable_archiver=0
|
||||||
|
has_with_binpac=0
|
||||||
|
has_with_bifcl=0
|
||||||
|
|
||||||
# parse arguments
|
# parse arguments
|
||||||
while [ $# -ne 0 ]; do
|
while [ $# -ne 0 ]; do
|
||||||
|
@ -368,13 +370,13 @@ while [ $# -ne 0 ]; do
|
||||||
append_cache_entry INSTALL_ZKG BOOL false
|
append_cache_entry INSTALL_ZKG BOOL false
|
||||||
;;
|
;;
|
||||||
--with-bifcl=*)
|
--with-bifcl=*)
|
||||||
append_cache_entry BIFCL_EXE_PATH PATH $optarg
|
has_with_bifcl=1
|
||||||
;;
|
;;
|
||||||
--with-bind=*)
|
--with-bind=*)
|
||||||
append_cache_entry BIND_ROOT_DIR PATH $optarg
|
append_cache_entry BIND_ROOT_DIR PATH $optarg
|
||||||
;;
|
;;
|
||||||
--with-binpac=*)
|
--with-binpac=*)
|
||||||
append_cache_entry BINPAC_EXE_PATH PATH $optarg
|
has_with_binpac=1
|
||||||
;;
|
;;
|
||||||
--with-bison=*)
|
--with-bison=*)
|
||||||
append_cache_entry BISON_EXECUTABLE PATH $optarg
|
append_cache_entry BISON_EXECUTABLE PATH $optarg
|
||||||
|
@ -506,3 +508,15 @@ eval ${cmake} 2>&1
|
||||||
echo "# This is the command used to configure this build" >config.status
|
echo "# This is the command used to configure this build" >config.status
|
||||||
echo $command >>config.status
|
echo $command >>config.status
|
||||||
chmod u+x config.status
|
chmod u+x config.status
|
||||||
|
|
||||||
|
if [ $has_with_bifcl -eq 1 ]; then
|
||||||
|
echo
|
||||||
|
echo "The --with-bifcl option has been deprecated and will be removed in v8.1."
|
||||||
|
echo "The bundled version of bifcl will always be used."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $has_with_binpac -eq 1 ]; then
|
||||||
|
echo
|
||||||
|
echo "The --with-binpac option has been deprecated and will be removed in v8.1."
|
||||||
|
echo "The bundled version of BinPAC will always be used.\n"
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue