diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-07-16 08:09:59 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-07-16 08:09:59 (GMT) |
commit | 5dff38707576522b97793ce6ad8024b0f92895bb (patch) | |
tree | 0bf01c8623d94ff15405801f2a2d6361b947ae73 /library/reg/pkgIndex.tcl | |
parent | 9d0855d10ef55854d4c108d76311090ac35d8bfc (diff) | |
download | tcl-5dff38707576522b97793ce6ad8024b0f92895bb.zip tcl-5dff38707576522b97793ce6ad8024b0f92895bb.tar.gz tcl-5dff38707576522b97793ce6ad8024b0f92895bb.tar.bz2 |
Make registry 1.3 package dynamically loadable when ::tcl::pkgconfig is available
Diffstat (limited to 'library/reg/pkgIndex.tcl')
-rwxr-xr-x | library/reg/pkgIndex.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/reg/pkgIndex.tcl b/library/reg/pkgIndex.tcl index f71b09f..55af4b3 100755 --- a/library/reg/pkgIndex.tcl +++ b/library/reg/pkgIndex.tcl @@ -1,5 +1,5 @@ -if {![package vsatisfies [package provide Tcl] 8.5]} return -if {[info sharedlibextension] ne ".dll"} return +if {([info commands ::tcl::pkgconfig] eq "") + || ([info sharedlibextension] ne ".dll")} return if {[::tcl::pkgconfig get debug]} { package ifneeded registry 1.3.0 \ [list load [file join $dir tclreg13g.dll] registry] |