summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-07-16 08:36:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-07-16 08:36:20 (GMT)
commitb368bda168f6c601da96e6caa9b6d7bc8ba98fc5 (patch)
tree5a7a931d6cfe8ea15faf35b6786aee679999d70c
parentda19d0dd6c320026b45f407302a2d0f55d67777f (diff)
downloadtcl-b368bda168f6c601da96e6caa9b6d7bc8ba98fc5.zip
tcl-b368bda168f6c601da96e6caa9b6d7bc8ba98fc5.tar.gz
tcl-b368bda168f6c601da96e6caa9b6d7bc8ba98fc5.tar.bz2
make dde 1.4 loadlable when ::tcl::pkgconfig is available
-rw-r--r--library/dde/pkgIndex.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/dde/pkgIndex.tcl b/library/dde/pkgIndex.tcl
index fef4f24..4cf73d0 100644
--- a/library/dde/pkgIndex.tcl
+++ b/library/dde/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 dde 1.4.0 [list load [file join $dir tcldde14g.dll] dde]
} else {