Ticket #176 (closed enhancement: fixed)
tcl.m4 based autoconf support for VIC
| Reported by: | douglask | Owned by: | piers |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | rat | Version: | vic-branch-mpeg4 |
| Keywords: | Cc: |
Description
Later Tcl source distributions include a tcl.m4 file which has Tcl/Tk specific autoconf macros.
Using tcl.m4 is now the recommended approach to capture some important Tcl/Tk results in a configure script.
VIC currently doesn't build against Tcl/Tk 8.5, adding Tcl/Tk 8.5 support is a good opportunity for modifying configure.in to use tcl.m4.
Using tcl.m4 considerably simplifies configure.in.tk, it can deal with either a source installation or a full installation for Tcl/Tk >= 8.4 or a UCL Tcl/TK 8.0 source installation.
The attached patch adds tcl.m4 support. The attached tcl.m4 and aclocal.m4 files need to copied to the same dir where configure.in is located.
configure.in.x11 is no longer required and can be deleted as tcl.m4 provides the X11 switches that were used to build the Tk that VIC is linking against.
To simplify things, support for optionMenu.tcl and scrollbar.tcl filenames as supplied with Unix Tcl 7.5 and earlier has been dropped. Those files are now called optMenu.tcl and scrlbar.tcl respectively.

