lfs-ru/chapter08/autoconf.xml

179 lines
7.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="ch-system-autoconf" role="wrap">
<?dbhtml filename="autoconf.html"?>
<sect1info condition="script">
<productname>autoconf</productname>
<productnumber>&autoconf-version;</productnumber>
<address>&autoconf-url;</address>
</sect1info>
<title>Autoconf-&autoconf-version;</title>
<indexterm zone="ch-system-autoconf">
<primary sortas="a-Autoconf">Autoconf</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>Пакет Autoconf содержит программы для создания сценариев оболочки, которые
могут автоматически настраивать исходный код.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&autoconf-fin-sbu;</seg>
<seg>&autoconf-fin-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Установка пакета Autoconf</title>
<para>Подготовьте Autoconf к компиляции:</para>
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
<para>Скомпилируйте пакет:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>Чтобы протестировать пакет, выполните:</para>
<!--
<para>The test suite is currently broken by bash-5 and libtool-2.4.3.
To run the tests anyway, issue:</para>
-->
<screen><userinput remap="test">make check</userinput></screen>
<para>Установите пакет:</para>
<screen><userinput remap="install">make install</userinput></screen>
</sect2>
<sect2 id="contents-autoconf" role="content">
<title>Содержимое пакета Autoconf</title>
<segmentedlist>
<segtitle>Установленные программы</segtitle>
2023-05-24 09:00:49 +03:00
<segtitle>Созданные каталоги</segtitle>
<seglistitem>
<seg>autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
и ifnames</seg>
<seg>/usr/share/autoconf</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Краткое описание</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="autoconf">
<term><command>autoconf</command></term>
<listitem>
<para>Генерирует сценарии оболочки, которые автоматически настраивают пакеты
исходного кода программного обеспечения для адаптации ко многим типам Unix-подобных
систем; создаваемые сценарии независимы&mdash;для их запуска не требуется программа
<command>autoconf</command>.</para>
<indexterm zone="ch-system-autoconf autoconf">
<primary sortas="b-autoconf">autoconf</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="autoheader">
<term><command>autoheader</command> </term>
<listitem>
<para>Инструмент для создания файлов шаблонов операторов C
<emphasis>#define</emphasis> для использования в configure</para>
<indexterm zone="ch-system-autoconf autoheader">
<primary sortas="b-autoheader">autoheader</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="autom4te">
<term><command>autom4te</command></term>
<listitem>
<para>Обертка для макропроцессора M4</para>
<indexterm zone="ch-system-autoconf autom4te">
<primary sortas="b-autom4te">autom4te</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="autoreconf">
<term><command>autoreconf</command></term>
<listitem>
<para>Автоматически запускает <command>autoconf</command>,
<command>autoheader</command>, <command>aclocal</command>,
<command>automake</command>, <command>gettextize</command> и
<command>libtoolize</command> в правильном порядке, чтобы сэкономить время,
при внесении изменений в файлы шаблонов <command>autoconf</command> и
<command>automake</command>.</para>
<indexterm zone="ch-system-autoconf autoreconf">
<primary sortas="b-autoreconf">autoreconf</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="autoscan">
<term><command>autoscan</command> </term>
<listitem>
<para>Помогает создать файл <filename>configure.in</filename> для пакета
программного обеспечения; проверяет исходные файлы в дереве каталогов,
ищет в них распространенные проблемы с переносимостью и создает файл
<filename>configure.scan</filename>, который является предварительным
2023-09-05 00:36:20 +03:00
файлом <filename>configure.in</filename> для пакета.</para>
<indexterm zone="ch-system-autoconf autoscan">
<primary sortas="b-autoscan">autoscan</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="autoupdate">
<term><command>autoupdate</command></term>
<listitem>
<para>Изменяет файл <filename>configure.in</filename>,
вызывающий макросы <command>autoconf</command> по их старым
именам для использования текущих имен макросов</para>
<indexterm zone="ch-system-autoconf autoupdate">
<primary sortas="b-autoupdate">autoupdate</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ifnames">
<term><command>ifnames</command> </term>
<listitem>
<para>Помогает при написании файла <filename>configure.in</filename> для пакета;
выводит идентификаторы, которые использует пакет в условных выражениях препроцессора C.
(Если пакет уже был настроен для некоторой переносимости, эта программа может помочь
определить, что нужно проверить сценарию <command>configure</command>.
Он также может заполнить пробелы в файле <filename>configure.in</filename>,
сгенерированном командой <command>autoscan</command>.)</para>
<indexterm zone="ch-system-autoconf ifnames">
<primary sortas="b-ifnames">ifnames</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>