From 19711e7023d42b3eaf00f0d6461d3c67e652f697 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Sat, 25 Jun 2005 11:24:19 +0000 Subject: [PATCH] Added --with-tclinclude flag to Expect. (merged from trunk r6134, r6135 & r6140) git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.1/BOOK@6160 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 3 +++ chapter05/expect.xml | 15 ++++++++++++++- chapter05/tcl.xml | 6 ++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index ceb0ae6c2..9e9869006 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -87,6 +87,9 @@ First a summary, then a detailed log. +June 25th, 2005 [jhuntwork]: Added a --with-tclinclude flag to +Expect build to ensure that it knows where to find the Tcl source directory. + June 25th, 2005 [matthew]: Updated to the latest version of the mktemp tempfile patch, which supports building outside the source directory diff --git a/chapter05/expect.xml b/chapter05/expect.xml index 5445f6032..ee2155b2f 100644 --- a/chapter05/expect.xml +++ b/chapter05/expect.xml @@ -36,7 +36,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: @@ -48,6 +49,14 @@ 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 and 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 @@ -80,6 +89,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 c95b864fd..a12220121 100644 --- a/chapter05/tcl.xml +++ b/chapter05/tcl.xml @@ -66,6 +66,12 @@ 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. + +cd .. +export TCLPATH=`pwd` + Now make a necessary symbolic link: ln -s tclsh8.4 /tools/bin/tclsh