autoconf.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-autoconf" xreflabel="Autoconf" role="wrap">
  7. <title>Autoconf-&autoconf-version;</title>
  8. <?dbhtml filename="autoconf.html"?>
  9. <indexterm zone="ch-system-autoconf"><primary sortas="a-Autoconf">Autoconf</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Autoconf package contains programs for producing shell scripts that
  12. can automatically configure source code.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.5 SBU</seg><seg>7.7 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>Autoconf installation depends on</segtitle>
  20. <seglistitem><seg>Bash, Coreutils, Diffutils, Grep,
  21. M4, Make, Perl, Sed</seg></seglistitem>
  22. </segmentedlist>
  23. </sect2>
  24. <sect2 role="installation">
  25. <title>Installation of Autoconf</title>
  26. <para>Prepare Autoconf for compilation:</para>
  27. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  28. <para>Compile the package:</para>
  29. <screen><userinput>make</userinput></screen>
  30. <para>To test the results, issue:
  31. <userinput>make check</userinput>. This takes a long time, about 2 SBUs.</para>
  32. <para>Install the package:</para>
  33. <screen><userinput>make install</userinput></screen>
  34. </sect2>
  35. <sect2 id="contents-autoconf" role="content"><title>Contents of Autoconf</title>
  36. <segmentedlist>
  37. <segtitle>Installed programs</segtitle>
  38. <seglistitem><seg>autoconf, autoheader, autom4te,
  39. autoreconf, autoscan, autoupdate and ifnames</seg></seglistitem>
  40. </segmentedlist>
  41. <variablelist><title>Short descriptions</title>
  42. <varlistentry>
  43. <term id="autoconf"><command>autoconf</command></term>
  44. <listitem>
  45. <indexterm zone="ch-system-autoconf autoconf"><primary sortas="b-autoconf">autoconf</primary></indexterm>
  46. <para>is a tool for producing shell scripts
  47. that automatically configure software source code packages to adapt to many
  48. kinds of Unix-like systems. The configuration scripts it produces are
  49. independent -- running them does not require the autoconf program.</para>
  50. </listitem>
  51. </varlistentry>
  52. <varlistentry>
  53. <term id="autoheader"><command>autoheader</command> </term>
  54. <listitem>
  55. <indexterm zone="ch-system-autoconf autoheader"><primary sortas="b-autoheader">autoheader</primary></indexterm>
  56. <para>is a tool for creating template files
  57. of C #define statements for configure to use.</para>
  58. </listitem>
  59. </varlistentry>
  60. <varlistentry>
  61. <term id="autom4te"><command>autom4te</command></term>
  62. <listitem>
  63. <indexterm zone="ch-system-autoconf autom4te"><primary sortas="b-autom4te">autom4te</primary></indexterm>
  64. <para>is a wrapper for the M4 macro processor.</para>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry>
  68. <term id="autoreconf"><command>autoreconf</command></term>
  69. <listitem>
  70. <indexterm zone="ch-system-autoconf autoreconf"><primary sortas="b-autoreconf">autoreconf</primary></indexterm>
  71. <para>comes in handy when there are a lot
  72. of autoconf-generated configure scripts around. The program runs autoconf and
  73. autoheader repeatedly (where appropriate) to remake the autoconf configure
  74. scripts and configuration header templates in a given directory tree.</para>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry>
  78. <term id="autoscan"><command>autoscan</command> </term>
  79. <listitem>
  80. <indexterm zone="ch-system-autoconf autoscan"><primary sortas="b-autoscan">autoscan</primary></indexterm>
  81. <para>can help to create a
  82. <filename>configure.in</filename> file for a software package. It examines
  83. the source files in a directory tree, searching them for common portability
  84. problems and creates a <filename>configure.scan</filename> file that serves as
  85. as a preliminary <filename>configure.in</filename> for the package.</para>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry>
  89. <term id="autoupdate"><command>autoupdate</command></term>
  90. <listitem>
  91. <indexterm zone="ch-system-autoconf autoupdate"><primary sortas="b-autoupdate">autoupdate</primary></indexterm>
  92. <para>modifies a <filename>configure.in</filename> file that still calls autoconf
  93. macros by their old names to use the current macro names.</para>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry>
  97. <term id="ifnames"><command>ifnames</command> </term>
  98. <listitem>
  99. <indexterm zone="ch-system-autoconf ifnames"><primary sortas="b-ifnames">ifnames</primary></indexterm>
  100. <para>can be helpful when writing a
  101. <filename>configure.in</filename> for a software package. It prints the
  102. identifiers that the package uses in C preprocessor conditionals. If a package
  103. has already been set up to have some portability, this program can help to
  104. determine what <command>configure</command> needs to check. It can fill
  105. in some gaps in a <filename>configure.in</filename> file generated by
  106. autoscan.</para>
  107. </listitem>
  108. </varlistentry>
  109. </variablelist>
  110. </sect2>
  111. </sect1>