aboutsummaryrefslogtreecommitdiff
path: root/autosetup
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2022-08-27 14:00:26 +1000
committerSteve Bennett <steveb@workware.net.au>2023-02-13 10:44:10 +1000
commitccd47be1301935fcb5efe9bf721f1d33691aa65f (patch)
treee238183794dd9358362e8032b80ee6e1e4ed0845 /autosetup
parentaa18a0d938ca171fcf96616cb7ff011034eb5902 (diff)
downloadjimtcl-ccd47be1301935fcb5efe9bf721f1d33691aa65f.zip
jimtcl-ccd47be1301935fcb5efe9bf721f1d33691aa65f.tar.gz
jimtcl-ccd47be1301935fcb5efe9bf721f1d33691aa65f.tar.bz2
configure: Default to --full
Now use --minimal and/or --without-ext to disable things. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'autosetup')
-rw-r--r--autosetup/local.tcl43
1 files changed, 22 insertions, 21 deletions
diff --git a/autosetup/local.tcl b/autosetup/local.tcl
index 78ef27c..73484e5 100644
--- a/autosetup/local.tcl
+++ b/autosetup/local.tcl
@@ -219,27 +219,28 @@ proc check-extensions {allextmod} {
set withinfo(maybemod) {}
# Now work out the default status. We have.
- # normal case, include !off, !optional if possible
- # --full, include !off if possible
- # --without=default, don't include optional or off
- if {$withinfo(nodefault)} {
- lappend withinfo(maybe) stdlib
- } else {
- foreach i $extlist {
- if {[ext-has $i off]} {
- if {$allextmod} {
- lappend withinfo(maybemod) $i
- }
- continue
- }
- if {[ext-has $i optional] && !$withinfo(optional)} {
- if {$allextmod} {
- lappend withinfo(maybemod) $i
- }
- continue
- }
- lappend withinfo(maybe) $i
- }
+ # normal case: include !off, !optional if possible
+ # --without=default: only include always
+ foreach i $extlist {
+ if {$withinfo(nodefault)} {
+ if {[ext-has $i always]} {
+ lappend withinfo(maybe) $i
+ }
+ continue
+ }
+ if {[ext-has $i off]} {
+ if {$allextmod} {
+ lappend withinfo(maybemod) $i
+ }
+ continue
+ }
+ if {[ext-has $i optional] && !$withinfo(optional)} {
+ if {$allextmod} {
+ lappend withinfo(maybemod) $i
+ }
+ continue
+ }
+ lappend withinfo(maybe) $i
}
foreach i $extlist {