Configure script: drop --with-caf, add -D option

This commit is contained in:
Dominik Charousset 2022-11-02 08:35:06 +01:00
parent c71d2878c9
commit c4d5e3cda7

13
configure vendored
View file

@ -83,8 +83,6 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--with-bison=PATH path to bison executable --with-bison=PATH path to bison executable
--with-broker=PATH path to Broker install root --with-broker=PATH path to Broker install root
(Zeek uses an embedded version by default) (Zeek uses an embedded version by default)
--with-caf=PATH path to C++ Actor Framework install root
(a Broker dependency that is embedded by default)
--with-gen-zam=PATH path to Gen-ZAM code generator --with-gen-zam=PATH path to Gen-ZAM code generator
(Zeek uses an embedded version by default) (Zeek uses an embedded version by default)
--with-flex=PATH path to flex executable --with-flex=PATH path to flex executable
@ -116,6 +114,9 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--display-cmake don't create build configuration, just output final CMake invocation --display-cmake don't create build configuration, just output final CMake invocation
Advanced Options (for developers):
-D PARAM passes a parameter directly to CMake
Influential Environment Variables (only on first invocation Influential Environment Variables (only on first invocation
per build directory): per build directory):
CC C compiler command CC C compiler command
@ -195,6 +196,14 @@ while [ $# -ne 0 ]; do
echo "${usage}" 1>&2 echo "${usage}" 1>&2
exit 1 exit 1
;; ;;
-D)
shift
if [ $# -eq 0 ]; then
echo "Error: -D requires an argument."
exit 1
fi
CMakeCacheEntries="$CMakeCacheEntries -D $1"
;;
--cmake=*) --cmake=*)
CMakeCommand=$optarg CMakeCommand=$optarg
;; ;;