gunzip apache-1.3.X.tar.gz
tar -xvf apache-1.3.X.tar.gz
You don't need the Apache sources if you are building a shared
object module. You do, however, need the header files.
Some systems, such as Debian GNU/Linux, provide these
independently - otherwise, you probably still need the sources.
gunzip mod_dtcl-X.X.X.tar.gz
tar -xvf mod_dtcl-X.X.X.tar.gz
Note: if you have a threaded Tcl, you may wish to modify the relevant section of mod_dtcl.h, which changes mod_dtcl to work properly with a threaded Tcl.
cd ../mod_dtcl/
Edit the builddtcl.sh
script. The 3
variables you may need to change are:
TCLSH
APACHE
INC
./builddtcl.sh shared
cp mod_dtcl.so
/usr/lib/apache/wherever/the/other/shared/objects/reside
For shared object builds, you need to copy the
object into the directory where the other shared
objects are kept for your Apache build. On Debian
GNU/Linux systems, for instance, this is in
/usr/lib/apache/1.3/
.
cd apache-1.3.X/
./configure
cd ../mod_dtcl/
Edit the builddtcl.sh
script. The 3
variables you may need to change are:
TCLSH
APACHE
INC
./builddtcl.sh static
./builddtcl.sh install
cd ../apache-1.3.X
./configure
--activate-module=src/modules/mod_dtcl/mod_dtcl.a [ other configure
options ]
export EXTRA_LIBS="-ltcl8.X -lm"
make -e
make install
LoadModule dtcl_module
/usr/lib/apache/1.3/mod_dtcl.so
AddModule mod_dtcl.c
seems to
also have positive effects.
AddType application/x-httpd-tcl .ttml
AddType application/x-dtcl-tcl .tcl
(optional)