From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Roxborough To: insight@sources.redhat.com Subject: [PATCH] Set path to iwidgets... Date: Sun, 09 Sep 2001 12:16:00 -0000 Message-id: <3B9BC001.9B1B9DD@redhat.com> X-SW-Source: 2001-q3/msg00244.html Hi, this patch sets the IWIDGETS_LIBRARY environment variable if Insight is ran from the build directory. Once the Tcl/Tk upgrade is complete Insight won't run out of the build directory without this patch. It'll give an error saying the IWidgets cannot be found. Ian. -- ChangeLog: 2001-09-09 Ian Roxborough * generic/gdbtk.c (gdbtk_init): Set IWIDGETS_LIBRARY if Insight is launched from within the build directory. Index: generic/gdbtk.c =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v retrieving revision 1.20 diff -p -r1.20 gdbtk.c *** gdbtk.c 2001/08/21 19:29:00 1.20 --- gdbtk.c 2001/09/09 19:09:30 *************** gdbtk_init (argv0) *** 423,428 **** --- 423,432 ---- set env(ITK_LIBRARY) [file join $srcDir itcl itk library]\n\ }\n\ \ + if {![info exists env(IWIDGETS_LIBRARY)]} {\n\ + set env(IWIDGETS_LIBRARY) [file join $srcDir itcl iwidgets3.0.0]\n\ + }\n\ + \ if {![info exists env(TIX_LIBRARY)]} {\n\ set env(TIX_LIBRARY) [file join $srcDir tix library]\n\ }\n\