From e0ef857ffce177d28c17e7d3640602a3fec6c67d Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Thu, 23 Jun 2005 20:57:13 +0000 Subject: Added --with-tclinclude flag to Expect build. Bug 1580. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6134 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/expect.xml | 14 +++++++++++++- chapter05/tcl.xml | 5 +++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'chapter05') diff --git a/chapter05/expect.xml b/chapter05/expect.xml index 6d59bf8e9..7f31933ba 100644 --- a/chapter05/expect.xml +++ b/chapter05/expect.xml @@ -38,7 +38,8 @@ suite run: Now prepare Expect for compilation: -./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no +./configure --prefix=/tools --with-tcl=/tools/lib \ + --with-tclinclude=$TCLPATH --with-x=no The meaning of the configure options: @@ -50,6 +51,13 @@ the temporary tools location instead of possibly locating an existing one on the host system. + +--with-tclinclude=$TCLPATH +This explicitly tells Expect where to find Tcl's source directory +containing its internal headers. Using this option avoids conditions where configure fails +because it hasn't automatically discovered the location of the Tcl source directory. + + --with-x=no This tells the configure script not to search for Tk @@ -82,6 +90,10 @@ scripts, which are not needed. +Now remove the TCLPATH variable: + +unset TCLPATH + The source directories of both Tcl and Expect can now be removed. diff --git a/chapter05/tcl.xml b/chapter05/tcl.xml index ccb183a93..9d8dec092 100644 --- a/chapter05/tcl.xml +++ b/chapter05/tcl.xml @@ -68,6 +68,11 @@ Details on the TZ environment variable is provided in tcl&tcl-version; source directory yet, as the next package will need its internal headers. +Set a variable containing the full path of the current directory. +The next package, Expect, will use this variable to find Tcl's headers. + +export TCLPATH=`pwd` + Now make a necessary symbolic link: ln -s tclsh8.4 /tools/bin/tclsh -- cgit v1.2.3-54-g00ecf