Index: configure.in ================================================================== --- configure.in +++ configure.in @@ -25,8 +25,9 @@ AC_CHECK_TOOL([AR], [ar], [false]) AC_CHECK_TOOL([RANLIB], [ranlib], [:]) EXTENSION_TARGET="tcltls.a" fi AC_SUBST(EXTENSION_TARGET) +AC_SUBST(TCLEXT_BUILD) dnl Produce output AC_OUTPUT(Makefile pkgIndex.tcl) Index: pkgIndex.tcl.in ================================================================== --- pkgIndex.tcl.in +++ pkgIndex.tcl.in @@ -1,7 +1,11 @@ package ifneeded tls @PACKAGE_VERSION@ [list apply {{dir} { - load [file join $dir tcltls.@SHOBJEXT@] Tls + if {{@TCLEXT_BUILD@} eq "static"} { + load {} Tls + } else { + load [file join $dir tcltls.@SHOBJEXT@] Tls + } set tlsTclInitScript [file join $dir tls.tcl] if {[file exists $tlsTclInitScript]} { source $tlsTclInitScript }