diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-12-09 14:23:46 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-12-12 13:44:01 +1000 |
commit | 3f3bc624feab8f7772147d45a43ee29cac0c95c8 (patch) | |
tree | 7235206b6893251d6c2475704e36592d2231ad57 | |
parent | bece93a6de3f259385ccf425da0ec53a74d6cf38 (diff) | |
download | jimtcl-3f3bc624feab8f7772147d45a43ee29cac0c95c8.zip jimtcl-3f3bc624feab8f7772147d45a43ee29cac0c95c8.tar.gz jimtcl-3f3bc624feab8f7772147d45a43ee29cac0c95c8.tar.bz2 |
Enable more extensions by default
For a better "out-of-the-box" experience, most extensions
such as binary, tree and tclprefix are enabled by default.
Also jim-regexp is enabled by default for better Tcl compatibility.
It is still possible to disable any of these with --without-ext=...
and --disable-jim-regexp
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | auto.def | 16 | ||||
-rw-r--r-- | autosetup/local.tcl | 8 |
2 files changed, 9 insertions, 15 deletions
@@ -14,7 +14,7 @@ options { maintainer => {enable the [debug] command and JimPanic} full => "Enable some optional features: ipv6, math, utf8, binary, oo, tree" with-jim-shared shared => "build a shared library instead of a static library" - jim-regexp => "use the built-in (Tcl-compatible) regexp, even if POSIX regex is available" + jim-regexp=1 => "prefer POSIX regex if over the the built-in (Tcl-compatible) regex" with-jim-ext: {with-ext:"ext1 ext2 ..."} => { Specify additional jim extensions to include. These are enabled by default: @@ -184,13 +184,12 @@ define JIM_INSTALL [opt-bool install-jim] # tcl=Pure Tcl extension # static=Can't be built as a module # optional=Not selected by default -# full=Select if the --full option is set # cpp=Is a C++ extension global extdb dict set extdb attrs { aio { static } array {} - binary { tcl optional full } + binary { tcl } clock {} eventloop { static } exec { static } @@ -199,8 +198,8 @@ dict set extdb attrs { history {} load { static } mk { cpp optional } - oo { tcl optional full } - pack { optional full } + oo { tcl } + pack {} package { static } posix {} readdir {} @@ -211,10 +210,10 @@ dict set extdb attrs { signal { static } sqlite3 { optional } stdlib { tcl static } - syslog { optional } + syslog {} tclcompat { tcl static } - tclprefix { optional full } - tree { tcl optional full } + tclprefix {} + tree { tcl } win32 { optional } } @@ -261,7 +260,6 @@ global withinfo set withinfo(without) [join [opt-val {without-ext with-out-jim-ext}]] set withinfo(ext) [join [opt-val {with-ext with-jim-ext}]] set withinfo(mod) [join [opt-val {with-mod with-jim-extmod}]] -set withinfo(full) [opt-bool full] set withinfo(nodefault) 0 if {$withinfo(without) eq "default"} { set withinfo(without) {} diff --git a/autosetup/local.tcl b/autosetup/local.tcl index 970a20c..36aff86 100644 --- a/autosetup/local.tcl +++ b/autosetup/local.tcl @@ -146,17 +146,13 @@ proc check-extensions {} { # Now work out the default status. We have. # normal case, include !optional if possible # --without=default, don't include optional - # --full, include both !optional and full if {$withinfo(nodefault)} { lappend withinfo(maybe) stdlib } else { foreach i $extlist { - if {[ext-has $i optional]} { - if {!$withinfo(full) || ![ext-has $i full]} { - continue - } + if {![ext-has $i optional]} { + lappend withinfo(maybe) $i } - lappend withinfo(maybe) $i } } |