From b7a3951c0046491a62399fc51fe809e24e5eb8b7 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Wed, 3 Nov 2010 20:52:27 +1000 Subject: Don't hardcode /lib/jim Instead, set TCL_LIBRARY based on where jim is installed. This defaults to /usr/local (thus /usr/local/lib/jim), or can be modified with either configure or make. e.g. ./configure --prefix=/usr or make prefix=/usr install Now auto_path is initialised only to TCL_LIBRARY, and doesn't include "." which could be undesirable. At the same time, simplify jimsh initialisation using a script instead of C code. Add the path to the executable to auto_path. Also, no longer use JIM_TCL_COMPAT. Always use the tcl-compatible names, $auto_path and $tcl_interactive. Signed-off-by: Steve Bennett --- configure | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 4e8d758..4335968 100755 --- a/configure +++ b/configure @@ -606,6 +606,7 @@ LIBOBJS PLATFORM_PLATFORM PLATFORM_OS SRCDIR +TCL_LIBRARY EXTRA_OBJS EXTRA_CFLAGS JIM_TCL_EXTENSIONS @@ -4246,6 +4247,8 @@ EXTRA_CFLAGS=$EXTRA_CFLAGS EXTRA_OBJS=$EXTRA_OBJS +TCL_LIBRARY=$libdir/jim + SRCDIR=`dirname $0` PLATFORM_OS=`uname -s` -- cgit v1.1