From 3703a49423578649b67abe0e0457842e4ff911a2 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Sat, 3 Apr 2021 14:00:22 +1000 Subject: expr: allow existing multiple argument support with --compat Some users may not be ready to immediately move to the single-argument expr, so provide a --compat option to configure to support the previous behaviour as a transition strategy. Signed-off-by: Steve Bennett --- auto.def | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'auto.def') diff --git a/auto.def b/auto.def index 8ab5022..3f2f5a0 100644 --- a/auto.def +++ b/auto.def @@ -21,6 +21,7 @@ options { maintainer => {Enable the [debug] command and JimPanic} full => "Enable some optional features: ipv6, ssl, math, utf8, and some extensions (see --extinfo)" allextmod => "Enable all non-default extensions as modules if prerequisites are found" + compat => "Enable some backward compatibility behaviour" extinfo => "Show information about available extensions" with-jim-shared shared => "Build a shared library instead of a static library" jim-regexp=1 => "Prefer POSIX regex if over the the built-in (Tcl-compatible) regex" @@ -432,6 +433,10 @@ if {[opt-bool references]} { msg-result "Enabling references" define JIM_REFERENCES } +if {[opt-bool compat]} { + msg-result "Enabling compatibility mode" + define JIM_COMPAT +} if {[opt-bool shared with-jim-shared]} { msg-result "Building shared library" } else { -- cgit v1.1