source: BOOK/testsuite-tools/common/expect.xml@ 2fac488

systemd
Last change on this file since 2fac488 was c01bd946, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-testsuite-tools-expect" role="wrap">
9 <?dbhtml filename="expect.html"?>
10
11 <title>Expect-&expect-version;</title>
12
13 <indexterm zone="ch-testsuite-tools-expect">
14 <primary sortas="a-Expect">Expect</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Expect package contains a program for carrying out scripted
21 dialogues with other interactive programs.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Expect</title>
27
28 <para os="c">Now prepare Expect for compilation:</para>
29
30<screen os="d"><userinput>./configure \
31 --prefix=/tools \
32 --with-tcl=/tools/lib \
33 --with-tclinclude=/tools/include</userinput></screen>
34
35 <variablelist os="e">
36 <title>The meaning of the configure options:</title>
37
38 <varlistentry os="e1">
39 <term><parameter>--with-tcl=/tools/lib</parameter></term>
40 <listitem>
41 <para>This ensures that the configure script finds the Tcl
42 installation in the temporary testsuite-tools location.</para>
43 </listitem>
44 </varlistentry>
45
46 <varlistentry os="e2">
47 <term><parameter>--with-tclinclude=/tools/include</parameter></term>
48 <listitem>
49 <para>This explicitly tells Expect where to find Tcl's internal headers.
50 Using this option avoids conditions
51 where <command>configure</command> fails because it cannot
52 automatically discover the location of the Tcl source directory.</para>
53 </listitem>
54 </varlistentry>
55
56 </variablelist>
57
58 <para os="f">Build the package:</para>
59
60<screen os="g"><userinput>make</userinput></screen>
61
62 <para os="i">Install the package:</para>
63
64<screen os="j"><userinput>make SCRIPTS="" install</userinput></screen>
65
66 <variablelist os="k">
67 <title>The meaning of the make parameter:</title>
68
69 <varlistentry>
70 <term><parameter>SCRIPTS=""</parameter></term>
71 <listitem>
72 <para>This prevents installation of the supplementary expect
73 scripts, which are not needed.</para>
74 </listitem>
75 </varlistentry>
76
77 </variablelist>
78
79 </sect2>
80
81 <sect2 id="contents-expect" role="content">
82 <title>Contents of Expect</title>
83
84 <segmentedlist>
85 <segtitle>Installed program</segtitle>
86 <segtitle>Installed library</segtitle>
87
88 <seglistitem>
89 <seg>expect</seg>
90 <seg>libexpect-&expect-lib-version;.a</seg>
91 </seglistitem>
92 </segmentedlist>
93
94 <variablelist>
95 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
96 <?dbfo list-presentation="list"?>
97 <?dbhtml list-presentation="table"?>
98
99 <varlistentry id="expect">
100 <term><command>expect</command></term>
101 <listitem>
102 <para>Communicates with other interactive programs according
103 to a script</para>
104 <indexterm zone="ch-testsuite-tools-expect expect">
105 <primary sortas="b-expect">expect</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 <varlistentry id="libexpect">
111 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
112 <listitem>
113 <para>Contains functions that allow Expect to be used as a Tcl
114 extension or to be used directly from C or C++ (without Tcl)</para>
115 <indexterm zone="ch-testsuite-tools-expect libexpect">
116 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 </variablelist>
122
123 </sect2>
124
125</sect1>
Note: See TracBrowser for help on using the repository browser.