[tkined] Another install suggestion

Doug Hughes (Doug.Hughes@Eng.Auburn.EDU)
Mon, 15 Dec 1997 13:10:01 -0600



What about this. Instead of having that thing about settin the library
environment variable, why not have the 'make install' automatically
update the pkgIndex.tcl file to dynamically load the library? It wouldn't
work too well on those systems that don't support dynamic loading via 'load',
I guess. I wonder if configure could tell the difference and set an
appropriate variable?

Anyway, something like this in the Makefile should do it:

install-package:
echo "package ifneeded Tnm $(TNM_VERSION) [list load [file join \$dir/ tnm$(
TNM_VERSION)$(SHLIB_SUFFIX)] Tnm]" >> $(LIB_INSTALL_DIR)/pkgIndex.tcl


Note: I didn't actually get to test this, so there may be more than one
backslash needed on the $ for dir since that has to be quoted literally in
the pkgIndex.tcl file.

Then, all a person has to do in their tcl or wish program is
package require Tnm


Doug
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.