Fossil SCM

Same stuff, but now for non-Windows systems as well. Need to run "make" in compat/tcl-8.6/unix first, before running "./configure"

jan.nijtmans 2013-09-16 12:13 tcl-stubs-v2
Commit 648c27e6ee093015477c8b72761240048a4eeb0d
+1 -1
--- auto.def
+++ auto.def
@@ -104,11 +104,11 @@
104104
if {$tclpath ne ""} {
105105
# Note parse-tclconfig-sh is in autosetup/local.tcl
106106
if {$tclpath eq "1"} {
107107
# Use the system Tcl. Look in some likely places.
108108
array set tclconfig [parse-tclconfig-sh \
109
- /usr /usr/local /usr/share /opt/local]
109
+ compat/tcl-8.6/unix /usr /usr/local /usr/share /opt/local]
110110
set msg "on your system"
111111
} else {
112112
array set tclconfig [parse-tclconfig-sh $tclpath]
113113
set msg "at $tclpath"
114114
}
115115
116116
ADDED compat/tcl-8.6/unix/Makefile
117117
ADDED compat/tcl-8.6/unix/tclConfig.sh
--- auto.def
+++ auto.def
@@ -104,11 +104,11 @@
104 if {$tclpath ne ""} {
105 # Note parse-tclconfig-sh is in autosetup/local.tcl
106 if {$tclpath eq "1"} {
107 # Use the system Tcl. Look in some likely places.
108 array set tclconfig [parse-tclconfig-sh \
109 /usr /usr/local /usr/share /opt/local]
110 set msg "on your system"
111 } else {
112 array set tclconfig [parse-tclconfig-sh $tclpath]
113 set msg "at $tclpath"
114 }
115
116 DDED compat/tcl-8.6/unix/Makefile
117 DDED compat/tcl-8.6/unix/tclConfig.sh
--- auto.def
+++ auto.def
@@ -104,11 +104,11 @@
104 if {$tclpath ne ""} {
105 # Note parse-tclconfig-sh is in autosetup/local.tcl
106 if {$tclpath eq "1"} {
107 # Use the system Tcl. Look in some likely places.
108 array set tclconfig [parse-tclconfig-sh \
109 compat/tcl-8.6/unix /usr /usr/local /usr/share /opt/local]
110 set msg "on your system"
111 } else {
112 array set tclconfig [parse-tclconfig-sh $tclpath]
113 set msg "at $tclpath"
114 }
115
116 DDED compat/tcl-8.6/unix/Makefile
117 DDED compat/tcl-8.6/unix/tclConfig.sh
--- a/compat/tcl-8.6/unix/Makefile
+++ b/compat/tcl-8.6/unix/Makefile
@@ -0,0 +1,14 @@
1
+
2
+all: libtclstub8.6.a tclConfig.sh
3
+
4
+libtclstub8.6.a:
5
+ $(PREFIX)$(CC) -c -O2 -fomit-frame-pointer -DUSE_TCL_STUBS ../generic/tclStubLib.c -o tclStubLib.o
6
+ $(PREFIX)ar cr libtclstub8.6.a tclStubLib.o
7
+ $(PREFIX)ranlib libtclstub8.6.a
8
+
9
+tclConfig.sh:
10
+ echo "abc" > $@
11
+
12
+binaries:
13
+ @echo "Please copy the Tcl distribution you want to use to $(TCLSRCDIR),"
14
+ @echo "or compile Fossil with FOSSIL_ENABLE_TCL_STUBS"
--- a/compat/tcl-8.6/unix/Makefile
+++ b/compat/tcl-8.6/unix/Makefile
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/compat/tcl-8.6/unix/Makefile
+++ b/compat/tcl-8.6/unix/Makefile
@@ -0,0 +1,14 @@
1
2 all: libtclstub8.6.a tclConfig.sh
3
4 libtclstub8.6.a:
5 $(PREFIX)$(CC) -c -O2 -fomit-frame-pointer -DUSE_TCL_STUBS ../generic/tclStubLib.c -o tclStubLib.o
6 $(PREFIX)ar cr libtclstub8.6.a tclStubLib.o
7 $(PREFIX)ranlib libtclstub8.6.a
8
9 tclConfig.sh:
10 echo "abc" > $@
11
12 binaries:
13 @echo "Please copy the Tcl distribution you want to use to $(TCLSRCDIR),"
14 @echo "or compile Fossil with FOSSIL_ENABLE_TCL_STUBS"
--- a/compat/tcl-8.6/unix/tclConfig.sh
+++ b/compat/tcl-8.6/unix/tclConfig.sh
@@ -0,0 +1,8 @@
1
+TCL_VERSION='8.6'
2
+TCL_PATCH_LEVEL=''
3
+TCL_PREFIX='compat/tcl-8.6/unix'
4
+TCL_LD_FLAGS=' '
5
+TCL_LIB_SPEC='-Lcompat/tcl-8.6/unix -ltcl8.6'
6
+TCL_INCLUDE_SPEC='-Icompat/tcl-8.6/generic'
7
+TCL_SUPPORTS_STUBS=1
8
+TCL_STUB_LIB_SPEC='-Lcompat/tcl-8.6/unix -ltclstub8.6'
--- a/compat/tcl-8.6/unix/tclConfig.sh
+++ b/compat/tcl-8.6/unix/tclConfig.sh
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
--- a/compat/tcl-8.6/unix/tclConfig.sh
+++ b/compat/tcl-8.6/unix/tclConfig.sh
@@ -0,0 +1,8 @@
1 TCL_VERSION='8.6'
2 TCL_PATCH_LEVEL=''
3 TCL_PREFIX='compat/tcl-8.6/unix'
4 TCL_LD_FLAGS=' '
5 TCL_LIB_SPEC='-Lcompat/tcl-8.6/unix -ltcl8.6'
6 TCL_INCLUDE_SPEC='-Icompat/tcl-8.6/generic'
7 TCL_SUPPORTS_STUBS=1
8 TCL_STUB_LIB_SPEC='-Lcompat/tcl-8.6/unix -ltclstub8.6'

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button