⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autobook_14.html

📁 Autoconf使用手册
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><!-- Created on September, 12  2004 by texi2html 1.64 --><!-- Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)            Karl Berry  <karl@freefriends.org>            Olaf Bachmann <obachman@mathematik.uni-kl.de>            and many others.Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>Send bugs and suggestions to <texi2html@mathematik.uni-kl.de> --><HEAD><TITLE>Autoconf, Automake, and Libtool: Configuring</TITLE><META NAME="description" CONTENT="Autoconf, Automake, and Libtool: Configuring"><META NAME="keywords" CONTENT="Autoconf, Automake, and Libtool: Configuring"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META NAME="Generator" CONTENT="texi2html 1.64"><script language="Javascript"><!--    // Check the browser version.    function checkVersion() {      if (navigator.appVersion.charAt(0)>=3) return true;      if (navigator.appVersion.charAt(0)>=4) return true;      else return false;    }      if (checkVersion()) {             homeon = new Image();             homeon.src = "homeon.png";             homeoff = new Image();             homeoff.src = "home.png";             tocon = new Image();             tocon.src = "tocon.png";             tocoff = new Image();             tocoff.src = "toc.png";             indexon = new Image();             indexon.src = "indexon.png";             indexoff = new Image();             indexoff.src = "index.png";             helpon = new Image();             helpon.src = "helpon.png";             helpoff = new Image();             helpoff.src = "help.png";             backon = new Image();             backon.src = "backon.png";             backoff = new Image();             backoff.src = "back.png";             forwardon = new Image();             forwardon.src = "forwardon.png";             forwardoff = new Image();             forwardoff.src = "forward.png";             prevon = new Image();             prevon.src = "prevon.png";             prevoff = new Image();             prevoff.src = "prev.png";             nexton = new Image();             nexton.src = "nexton.png";             nextoff = new Image();             nextoff.src = "next.png";             upon = new Image();             upon.src = "upon.png";             upoff = new Image();             upoff.src = "up.png";         }     function img_act(imgName) {             if (checkVersion()) {             imgOn = eval(imgName + "on.src");             document [imgName].src = imgOn;             }     }     function img_inact(imgName) {             if (checkVersion()) {             imgOff = eval(imgName + "off.src");             document [imgName].src = imgOff;             }     }// --></SCRIPT></HEAD><BODY LANG="EN" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#6688AA" VLINK="#336688" ALINK="#808080"><A NAME="SEC14"></A><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10><TR VALIGN="TOP"><TD ALIGN="MIDDLE" WIDTH=50 BGCOLOR="#e6e6e6"><TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook_13.html#SEC13" onMouseover="img_act('prev')" onMouseout="img_inact('prev')"><IMG SRC="prev.png" BORDER="0" ALT="Back: Invoking configure" ALIGN="MIDDLE" NAME="prev"></A></TD></TR><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook_15.html#SEC15" onMouseover="img_act('next')" onMouseout="img_inact('next')"><IMG SRC="next.png" BORDER="0" ALT="Forward: Files generated by configure" ALIGN="MIDDLE" NAME="next"></A></TD></TR><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook_13.html#SEC13" onMouseover="img_act('back')" onMouseout="img_inact('back')"><IMG SRC="back.png" BORDER="0" ALT="FastBack: Invoking configure" ALIGN="MIDDLE" NAME="back"></A></TD></TR><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook_13.html#SEC13" onMouseover="img_act('up')" onMouseout="img_inact('up')"><IMG SRC="up.png" BORDER="0" ALT="Up: Invoking configure" ALIGN="MIDDLE" NAME="up"></A></TD></TR><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook_18.html#SEC18" onMouseover="img_act('forward')" onMouseout="img_inact('forward')"><IMG SRC="forward.png" BORDER="0" ALT="FastForward: Introducing Makefiles" ALIGN="MIDDLE" NAME="forward"></A></TD></TR><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook.html#SEC_Top" onMouseover="img_act('home')" onMouseout="img_inact('home')"><IMG SRC="home.png" BORDER="0" ALT="Top: Autoconf, Automake, and Libtool" ALIGN="MIDDLE" NAME="home"></A></TD></TR><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook_toc.html#SEC_Contents" onMouseover="img_act('toc')" onMouseout="img_inact('toc')"><IMG SRC="toc.png" BORDER="0" ALT="Contents: Table of Contents" ALIGN="MIDDLE" NAME="toc"></A></TD></TR><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook_285.html#SEC285" onMouseover="img_act('index')" onMouseout="img_inact('index')"><IMG SRC="index.png" BORDER="0" ALT="Index: Index" ALIGN="MIDDLE" NAME="index"></A></TD></TR><TR VALIGN="TOP" ALIGN="LEFT"><TD VALIGN="MIDDLE" ALIGN="LEFT"><A HREF="autobook_abt.html#SEC_About" onMouseover="img_act('help')" onMouseout="img_inact('help')"><IMG SRC="help.png" BORDER="0" ALT="About: About this document" ALIGN="MIDDLE" NAME="help"></A></TD></TR></TABLE></TD><TD ALIGN="LEFT"><H2> 3.1 Configuring </H2><!--docid::SEC14::--><P>A <TT>`configure'</TT> script takes a large number of command line options.The set of options can vary from one package to the next, although anumber of basic options are always present.  The available options canbe discovered by running <TT>`configure'</TT> with the <SAMP>`--help'</SAMP>option.  Although many of these options are esoteric, it's worthwhileknowing of their existence when configuring packages with specialinstallation requirements.  Each option will be briefly described below:</P><P><DL COMPACT><DT><SAMP>`--cache-file=<VAR>file</VAR>'</SAMP><DD><TT>`configure'</TT> runs tests on your system to determine the availabilityof features (or bugs!).  The results of these tests can be stored in a<EM>cache file</EM> to speed up subsequent invocations of<CODE>configure</CODE>.  The presence of a well primed cache file makes abig improvement when configuring a complex tree which has<TT>`configure'</TT> scripts in each subtree.<P><DT><SAMP>`--help'</SAMP><DD>Outputs a help message.  Even experienced users of <TT>`configure'</TT> needto use <SAMP>`--help'</SAMP> occasionally, as complex projects will includeadditional options for per-project configuration.  For example,<TT>`configure'</TT> in the GCC package allows you to control whetherthe GNU assembler will be built and used by GCC in preferenceto a vendor's assembler.<P><DT><SAMP>`--no-create'</SAMP><DD>One of the primary functions of <TT>`configure'</TT> is to generate outputfiles.  This option prevents <TT>`configure'</TT> from generating suchoutput files.  You can think of this as a kind of <EM>dry run</EM>,although the cache will still be modified.<P><DT><SAMP>`--quiet'</SAMP><DD><DT><SAMP>`--silent'</SAMP><DD>As <TT>`configure'</TT> runs its tests, it outputs brief messages tellingthe user what the script is doing.  This was done because<TT>`configure'</TT> can be slow.  If there was no such output, the userwould be left wondering what is happening.  By using this option, youtoo can be left wondering!<P><DT><SAMP>`--version'</SAMP><DD>Prints the version of Autoconf that was used to generate the<TT>`configure'</TT> script.<P><DT><SAMP>`--prefix=<VAR>prefix</VAR>'</SAMP><DD>The --prefix option is one of the most frequently used. If generated<TT>`Makefile'</TT>s choose to observe the argument you pass with thisoption, it is possible to entirely relocate the architecture-independentportion of a package when it is installed. For example, when installinga package like Emacs, the following command line will cause the EmacsLisp files to be installed in <TT>`/opt/gnu/share'</TT>:<P><TABLE><tr><td>&nbsp;</td><td class=smallexample><FONT SIZE=-1><pre>	$ ./configure --prefix=/opt/gnu</FONT></pre></td></tr></table></P><P>It is important to stress that this behavior is dependent on thegenerated files making use of this information.  For developers writingthese files, Automake simplifies this process a great deal.  Automake isintroduced in <A HREF="autobook_35.html#SEC35">7. Introducing GNU Automake</A>.</P><P><DT><SAMP>`--exec-prefix=<VAR>eprefix</VAR>'</SAMP><DD>Similar to <SAMP>`--prefix'</SAMP>, except that it sets the location ofinstalled files which are architecture-dependent.  The compiled<SAMP>`emacs'</SAMP> binary is such a file.  If this option is not given, thedefault <SAMP>`exec-prefix'</SAMP> value inserted into generated files is set tothe same values at the <SAMP>`prefix'</SAMP>.<P><DT><SAMP>`--bindir=<VAR>dir</VAR>'</SAMP><DD>Specifies the location of installed binary files.  While there may beother generated files which are binary in nature, binary files here aredefined to be programs that are run directly by users.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -