Installation of Expect
First apply a patch:
patch -Np1 -i ../expect-&expect-patch-version;.patch
This fixes a bug in Expect that can result in bogus failures during the
GCC test suite run.
Now prepare Expect to be compiled:
./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no
Build the package:
make
This package has a testsuite available which can perform a number of
checks to ensure it built correctly. Should you choose to run it, the
following command will do so:
make test
And install:
make install
You can now remove the source directories of both Tcl and Expect.