autoconf.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. <sect1 id="ch-system-autoconf" role="wrap">
  8. <?dbhtml filename="autoconf.html"?>
  9. <sect1info condition="script">
  10. <productname>autoconf</productname>
  11. <productnumber>&autoconf-version;</productnumber>
  12. <address>&autoconf-url;</address>
  13. </sect1info>
  14. <title>Autoconf-&autoconf-version;</title>
  15. <indexterm zone="ch-system-autoconf">
  16. <primary sortas="a-Autoconf">Autoconf</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Autoconf package contains programs for producing shell scripts that
  21. can automatically configure source code.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&autoconf-ch6-sbu;</seg>
  27. <seg>&autoconf-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Autoconf</title>
  33. <para>First, fix a bug generated by Perl 5.28.</para>
  34. <screen><userinput remap="pre">sed '361 s/{/\\{/' -i bin/autoscan.in</userinput></screen>
  35. <para>Prepare Autoconf for compilation:</para>
  36. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  37. <para>Compile the package:</para>
  38. <screen><userinput remap="make">make</userinput></screen>
  39. <para>To test the results, issue:</para>
  40. <screen><userinput remap="test">make check</userinput></screen>
  41. <para>This takes a long time, about &autoconf-ch6-sbu-tests; SBUs. In addition,
  42. several tests are skipped that use Automake. For full test coverage,
  43. Autoconf can be re-tested after Automake has been installed. In addition,
  44. two tests fail due to changes in libtool-2.4.3 and later.</para>
  45. <note><para>The test time for autoconf can be reduced significantly on a
  46. system with multiple cores. To do this, append
  47. <command>TESTSUITEFLAGS=-j&lt;N&gt;</command> to the line above. For
  48. instance, using -j4 can reduce the test time by over 60
  49. percent.</para></note>
  50. <para>Install the package:</para>
  51. <screen><userinput remap="install">make install</userinput></screen>
  52. </sect2>
  53. <sect2 id="contents-autoconf" role="content">
  54. <title>Contents of Autoconf</title>
  55. <segmentedlist>
  56. <segtitle>Installed programs</segtitle>
  57. <segtitle>Installed directory</segtitle>
  58. <seglistitem>
  59. <seg>autoconf, autoheader, autom4te, autoreconf, autoscan, autoupdate,
  60. and ifnames</seg>
  61. <seg>/usr/share/autoconf</seg>
  62. </seglistitem>
  63. </segmentedlist>
  64. <variablelist>
  65. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  66. <?dbfo list-presentation="list"?>
  67. <?dbhtml list-presentation="table"?>
  68. <varlistentry id="autoconf">
  69. <term><command>autoconf</command></term>
  70. <listitem>
  71. <para>Produces shell scripts that automatically configure software
  72. source code packages to adapt to many kinds of Unix-like systems;
  73. the configuration scripts it produces are independent&mdash;running
  74. them does not require the <command>autoconf</command> program</para>
  75. <indexterm zone="ch-system-autoconf autoconf">
  76. <primary sortas="b-autoconf">autoconf</primary>
  77. </indexterm>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="autoheader">
  81. <term><command>autoheader</command> </term>
  82. <listitem>
  83. <para>A tool for creating template files of C
  84. <emphasis>#define</emphasis> statements for configure to use</para>
  85. <indexterm zone="ch-system-autoconf autoheader">
  86. <primary sortas="b-autoheader">autoheader</primary>
  87. </indexterm>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry id="autom4te">
  91. <term><command>autom4te</command></term>
  92. <listitem>
  93. <para>A wrapper for the M4 macro processor</para>
  94. <indexterm zone="ch-system-autoconf autom4te">
  95. <primary sortas="b-autom4te">autom4te</primary>
  96. </indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="autoreconf">
  100. <term><command>autoreconf</command></term>
  101. <listitem>
  102. <para>Automatically runs <command>autoconf</command>,
  103. <command>autoheader</command>, <command>aclocal</command>,
  104. <command>automake</command>, <command>gettextize</command>, and
  105. <command>libtoolize</command> in the correct order to save time
  106. when changes are made to <command>autoconf</command> and
  107. <command>automake</command> template files</para>
  108. <indexterm zone="ch-system-autoconf autoreconf">
  109. <primary sortas="b-autoreconf">autoreconf</primary>
  110. </indexterm>
  111. </listitem>
  112. </varlistentry>
  113. <varlistentry id="autoscan">
  114. <term><command>autoscan</command> </term>
  115. <listitem>
  116. <para>Helps to create a <filename>configure.in</filename> file for a
  117. software package; it examines the source files in a directory tree,
  118. searching them for common portability issues, and creates a
  119. <filename>configure.scan</filename> file that serves as as a
  120. preliminary <filename>configure.in</filename> file for the
  121. package</para>
  122. <indexterm zone="ch-system-autoconf autoscan">
  123. <primary sortas="b-autoscan">autoscan</primary>
  124. </indexterm>
  125. </listitem>
  126. </varlistentry>
  127. <varlistentry id="autoupdate">
  128. <term><command>autoupdate</command></term>
  129. <listitem>
  130. <para>Modifies a <filename>configure.in</filename> file that still
  131. calls <command>autoconf</command> macros by their old names to use the
  132. current macro names</para>
  133. <indexterm zone="ch-system-autoconf autoupdate">
  134. <primary sortas="b-autoupdate">autoupdate</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="ifnames">
  139. <term><command>ifnames</command> </term>
  140. <listitem>
  141. <para>Helps when writing <filename>configure.in</filename> files
  142. for a software package; it prints the identifiers that the package
  143. uses in C preprocessor conditionals [If a package has already been set
  144. up to have some portability, this program can help determine what
  145. <command>configure</command> needs to check for. It can also fill in
  146. gaps in a <filename>configure.in</filename> file generated by
  147. <command>autoscan</command>.]</para>
  148. <indexterm zone="ch-system-autoconf ifnames">
  149. <primary sortas="b-ifnames">ifnames</primary>
  150. </indexterm>
  151. </listitem>
  152. </varlistentry>
  153. </variablelist>
  154. </sect2>
  155. </sect1>