]> granicus.if.org Git - apache/blob - docs/manual/programs/configure.html.en
add a note about the spelling of options
[apache] / docs / manual / programs / configure.html.en
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
4         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5               This file is generated from xml source: DO NOT EDIT
6         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7       -->
8 <title>configure - Configure the source tree - Apache HTTP Server</title>
9 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
13 <body id="manual-page"><div id="page-header">
14 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
15 <p class="apache">Apache HTTP Server Version 2.1</p>
16 <img alt="" src="../images/feather.gif" /></div>
17 <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
18 <div id="path">
19 <a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs-project/">Documentation</a> &gt; <a href="../">Version 2.1</a> &gt; <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>configure - Configure the source tree</h1>
20 <div class="toplang">
21 <p><span>Available Languages: </span><a href="../en/programs/configure.html" title="English">&nbsp;en&nbsp;</a></p>
22 </div>
23
24     <p>The <code>configure</code> script configures the source tree
25     for compiling and installing the Apache HTTP Server on your
26     particular platform. Various options allow the compilation of a
27     server corresponding to your personal requirements.</p>
28
29     <p>This script, included in the root directory of the distribution,
30     is for compilation on Unix and Unix-like systems only. For other
31     platforms, see the <a href="../platform/">platform</a>
32     documentation.</p>
33 </div>
34 <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Synopsis</a></li>
35 <li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li>
36 <li><img alt="" src="../images/down.gif" /> <a href="#env">Environment variables</a></li>
37 </ul><h3>See also</h3><ul class="seealso"><li><a href="../install.html">Compiling and Installing</a></li></ul></div>
38 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
39 <div class="section">
40 <h2><a name="synopsis" id="synopsis">Synopsis</a></h2>
41     <p>You should call the <code>configure</code> script from within the
42     root directory of the distribution.</p>
43
44     <p><code><strong>./configure</strong> [<var>OPTION</var>]...
45     [<var>VAR</var>=<var>VALUE</var>]...</code></p>
46
47     <p>To assign environment variables (e.g. <code>CC</code>,
48     <code>CFLAGS</code> ...), specify them as
49     <code><var>VAR</var>=<var>VALUE</var></code>. See <a href="#env">below</a>
50     for descriptions of some of the useful variables.</p>
51 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
52 <div class="section">
53 <h2><a name="options" id="options">Options</a></h2>
54   <ul>
55     <li><a href="#configurationoptions">Configuration options</a></li>
56     <li><a href="#installationdirectories">Installation directories</a></li>
57     <li><a href="#systemtypes">System types</a></li>
58     <li><a href="#optionalfeatures">Optional features</a></li>
59     <li><a href="#supportopt">Options for support programs</a></li>
60   </ul>
61
62   <h3><a name="configurationoptions" id="configurationoptions">Configuration options</a></h3>
63
64     <p>The following options influence the behavior of
65     <code>configure</code> itself.</p>
66
67     <dl>
68       <dt><code>-C</code></dt>
69       <dt><code>--config-cache</code></dt>
70       <dd>This is an alias for <code>--cache-file=config.cache</code></dd>
71
72       <dt><code>--cache-file=<var>FILE</var></code></dt>
73       <dd>The test results will be cached in file <var>FILE</var>.
74         This option is disabled by default.</dd>
75
76       <dt><code>-h</code></dt>
77       <dt><code>--help [short|recursive]</code></dt>
78       <dd>Output the help and exit. With the argument <code>short</code> only
79         options specific to this package will displayed. The argument
80         <code>recursive</code> displays the short help of all the included
81         packages.</dd>
82
83       <dt><code>-n</code></dt>
84       <dt><code>--no-create</code></dt>
85       <dd>The <code>configure</code> script is run normally but does
86         not create output files. This is useful to check the test results
87         before generating makefiles for compilation.</dd>
88
89       <dt><code>-q</code></dt>
90       <dt><code>--quiet</code></dt>
91       <dd>Do not print <code>checking ...</code> messages during the
92         configure process.</dd>
93
94       <dt><code>--srcdir=<var>DIR</var></code></dt>
95       <dd>Defines directory <var>DIR</var> to be the source file directory.
96         Default is the directory, where configure is located, or the parent
97         directory <code>..</code>.</dd>
98
99       <dt><code>--silent</code></dt>
100       <dd>Same as <code>--quiet</code></dd>
101
102       <dt>-V</dt>
103       <dt>--version</dt>
104       <dd>Display copyright information and exit.</dd>
105     </dl>
106   
107
108   <h3><a name="installationdirectories" id="installationdirectories">Installation 
109     directories</a></h3>
110
111     <p>These options define the installation directory. The installation
112       tree depends on the selected layout.</p>
113
114     <dl>
115       <dt><code>--prefix=<var>PREFIX</var></code></dt>
116       <dd>Install architecture-independent files in <var>PREFIX</var>.
117         By default the installation directory is set to
118         <code>/usr/local/apache2</code>.</dd>
119
120       <dt><code>--exec-prefix=<var>EPREFIX</var></code></dt>
121       <dd>Install architecture-dependent files in <var>EPREFIX</var>.
122         By default the installation directory is set to the
123         <var>PREFIX</var> directory.</dd>
124     </dl>
125
126     <p>By default, <code>make install</code> will install all the files in
127       <code>/usr/local/apache2/bin</code>, <code>/usr/local/apache2/lib</code>
128       etc. You can specify an installation prefix other than
129       <code>/usr/local/apache2</code> using <code>--prefix</code>,
130       for instance <code>--prefix=$HOME</code>.</p>
131
132     <h4><a name="layout" id="layout">Define a directory layout</a></h4>
133       <dl>
134         <dt><code>--enable-layout=<var>LAYOUT</var></code></dt>
135         <dd>Configure the source code and build scripts to assume an
136           installation tree based on the layout <var>LAYOUT</var>. This allows
137           you to separately specify the locations for each type of file within
138           the Apache HTTP Server installation. The <code>config.layout</code>
139           file contains several example configurations, and you can also create
140           your own custom configuration following the examples. The different
141           layouts in this file are grouped into <code>&lt;Layout
142             FOO&gt;...&lt;/Layout&gt;</code> sections and referred to by name as
143           in <code>FOO</code>. The default layout is <code>Apache</code>.</dd>
144       </dl>
145     
146
147     <h4><a name="directoryfinetuning" id="directoryfinetuning">Fine tuning of the installation
148       directories</a></h4>
149     
150       <p>For better control of the installation directories, use the options
151         below. Please note that the directory defaults are set by
152         <code>autoconf</code> and be overwritten by the corresponding layout
153         setting.</p>
154
155       <dl>
156         
157         <dt><code>--bindir=<var>DIR</var></code></dt>
158         <dd>Install user executables in <var>DIR</var>. The user executables
159           are supporting programs like <code>htpasswd</code>,
160           <code>dbmmanage</code>, etc. which are useful for site
161           administrators. By default <var>DIR</var> is set to
162           <code><var>EPREFIX</var>/bin</code>.</dd>
163
164         <dt><code>--datadir=<var>DIR</var></code></dt>
165         <dd>Install read-only architecture-independent data in <var>DIR</var>.
166           By default <code>datadir</code> is set to
167           <code><var>PREFIX</var>/share</code>. This option is offered by
168           <code>autoconf</code> and currently unused.</dd>
169
170         <dt><code>--includedir=<var>DIR</var></code></dt>
171         <dd>Install C header files in <var>DIR</var>. By default
172           <code>includedir</code> is set to
173           <code><var>EPREFIX</var>/include</code>.</dd>
174
175         <dt><code>--infodir=<var>DIR</var></code></dt>
176         <dd>Install info documentation in <var>DIR</var>.
177           By default <code>infodir</code> is set to
178           <code><var>PREFIX</var>/info</code>. This option is currently
179           unused.</dd>
180         
181         <dt><code>--libdir=<var>DIR</var></code></dt>
182         <dd>Install object code libraries in <var>DIR</var>. By default
183           <code>libdir</code> is set to
184           <code><var>EPREFIX</var>/lib</code>.</dd>
185
186         <dt><code>--libexecdir=<var>DIR</var></code></dt>
187         <dd>Install the program executables (i.e., shared modules) in
188           <var>DIR</var>. By default <code>libexecdir</code> is set to
189           <code><var>EPREFIX</var>/libexec</code>.</dd>
190
191         <dt><code>--localstatedir=<var>DIR</var></code></dt>
192         <dd>Install modifiable single-machine data in <var>DIR</var>.
193           By default <code>localstatedir</code> is set to
194           <code><var>PREFIX</var>/var</code>. This option is offered by
195           <code>autoconf</code> and currently unused.</dd>
196
197         <dt><code>--mandir=<var>DIR</var></code></dt>
198         <dd>Install the man documentation in <var>DIR</var>. By default 
199           <code>mandir</code> is set to
200           <code><var>EPREFIX</var>/man</code>.</dd>
201       
202         <dt><code>--oldincludedir=<var>DIR</var></code></dt>
203         <dd>Install C header files for non-gcc in <var>DIR</var>.
204           By default <code>oldincludedir</code> is set to
205           <code>/usr/include</code>. This option is offered by
206           <code>autoconf</code> and currently unused.</dd>
207         
208         <dt><code>--sbindir=<var>DIR</var></code></dt>
209         <dd>Install the system administrator executables in <var>DIR</var>.
210           Those are server programs like <code>httpd</code>,
211           <code>apachectl</code>, <code>suexec</code>, etc. which are neccessary
212           to run the Apache HTTP Server. By default <code>sbindir</code> is
213           set to <code><var>EPREFIX</var>/sbin</code>.</dd>
214
215         <dt><code>--sharedstatedir=<var>DIR</var></code></dt>
216         <dd>Install modifiable architecture-independent data in <var>DIR</var>.
217           By default <code>sharedstatedir</code> is set to
218           <code><var>PREFIX</var>/com</code>. This option is offered by
219           <code>autoconf</code> and currently unused.</dd>
220
221         <dt><code>--sysconfdir=<var>DIR</var></code></dt>
222         <dd>Install read-only single-machine data like the server configuration
223           files <code>httpd.conf</code>, <code>mime.types</code>, etc. in
224           <var>DIR</var>. By default <code>sysconfdir</code> is set to
225           <code><var>PREFIX</var>/etc</code>.</dd>
226       </dl>        
227     
228   
229   
230   <h3><a name="systemtypes" id="systemtypes">System types</a></h3>
231
232     <p>These options are used to cross-compile the Apache HTTP Server to run on
233       another system. In normal cases, when building and running the server on
234       the same system, these options are not used.</p>
235
236     <dl>
237       <dt><code>--build=<var>BUILD</var></code></dt>
238       <dd>Defines the system type of the system on which the tools are being
239         built. It defaults to the result of the script
240         <code>config.guess</code>.</dd>
241
242       <dt><code>--host=<var>HOST</var></code></dt>
243       <dd>Defines the system type of the system on which the server will run.
244         <var>HOST</var> defaults to <var>BUILD</var>.</dd>
245
246       <dt><code>--target=<var>TARGET</var></code></dt>
247       <dd>Configure for building compilers for the system type
248         <var>TARGET</var>. It defaults to <var>HOST</var>. This option is
249         offered by <code>autoconf</code> and not necessary for the Apache HTTP
250         Server.</dd>
251     </dl>
252   
253
254   <h3><a name="optionalfeatures" id="optionalfeatures">Optional Features</a></h3>
255
256     <p>These options are used to fine tune the features your HTTP server will
257       have.</p>
258
259     <h4><a name="generaloptfeat" id="generaloptfeat">General syntax</a></h4>
260       <p>Generally you can use the following syntax to enable or disable a
261         feature:</p>
262
263       <dl>
264         <dt><code>--disable-<var>FEATURE</var></code></dt>
265         <dd>Do not include <var>FEATURE</var>. This is the same as
266           <code>--enable-<var>FEATURE</var>=no</code>.</dd>
267
268         <dt><code>--enable-<var>FEATURE</var>[=<var>ARG</var>]</code></dt>
269         <dd>Include <var>FEATURE</var>. The default value for <var>ARG</var> 
270           is <code>yes</code>.</dd>
271
272         <dt><code>--enable-<var>MODULE</var>=shared</code></dt>
273         <dd>The corresponding module will be build as DSO module.</dd>
274
275         <dt><code>--enable-<var>MODULE</var>=static</code></dt>
276         <dd>By default enabled modules are linked statically. You can force 
277           this explicitly.</dd>
278       </dl>
279
280       <div class="note"><h3>Note</h3>
281         <code>configure</code> will not complain about
282         <code>--enable-<var>foo</var></code> even if <var>foo</var> doesn't
283         exist, so you need to type carefully.
284       </div>
285         
286     
287
288     <h4><a name="modules" id="modules">Enable or disable discrete modules</a></h4>
289       <p>Some modules are compiled by default and have to be disabled
290         explicitly while other modules have to be enabled explicitly or by
291         using the keywords <code>most</code> or <code>all</code> (see
292         <code>--enable-mods-shared</code> below for further explanation) to be
293         available. Therefore use the options below.</p>
294
295       <dl>
296         <dt><code>--disable-actions</code></dt>
297         <dd>Disable action triggering on requests, which is provided by
298           <code class="module"><a href="../mod/mod_actions.html">mod_actions</a></code>.</dd>
299
300         <dt><code>--disable-alias</code></dt>
301         <dd>Disable the mapping of requests to different parts of the filesystem,
302           which is provided by <code class="module"><a href="../mod/mod_alias.html">mod_alias</a></code>.</dd>
303
304         <dt><code>--disable-asis</code></dt>
305         <dd>Disable support for as-is filetypes, which is provided by
306           <code class="module"><a href="../mod/mod_asis.html">mod_asis</a></code>.</dd>
307
308         <dt><code>--disable-auth</code></dt>
309         <dd>Disable user-based access control provided  by
310           <code class="module"><a href="../mod/mod_auth.html">mod_auth</a></code>.</dd>
311
312         <dt><code>--disable-autoindex</code></dt>
313         <dd>Disable the directory listing functionality provided by
314           <code class="module"><a href="../mod/mod_autoindex.html">mod_autoindex</a></code>.</dd>
315
316         <dt><code>--disable-access</code></dt>
317         <dd>Disable host-based access control provided by
318           <code class="module"><a href="../mod/mod_access.html">mod_access</a></code>.</dd>
319
320         <dt><code>--disable-cgi</code></dt>
321         <dd><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code>, which provides support for CGI scripts, is
322           enabled by default when using a non-threaded MPM. Use this option to
323           disable CGI support.</dd>
324
325         <dt><code>--disable-cgid</code></dt>
326         <dd>When using the threaded MPMs <code class="module"><a href="../mod/worker.html">worker</a></code> or
327           <code class="module"><a href="../mod/perchild.html">perchild</a></code> support for CGI scripts is provided by
328           <code class="module"><a href="../mod/mod_cgid.html">mod_cgid</a></code> by default. To disable CGI support use this
329           option.</dd>
330
331         <dt><code>--disable-charset-lite</code></dt>
332         <dd>Disable character set translation provided by
333           <code class="module"><a href="../mod/mod_charset_lite.html">mod_charset_lite</a></code>. This module will be installed by
334           default only on EBCDIC systems.</dd>
335
336         <dt><code>--disable-dir</code></dt>
337         <dd>Disable directory request handling provided by
338           <code class="module"><a href="../mod/mod_dir.html">mod_dir</a></code>.</dd>
339
340         <dt><code>--disable-env</code></dt>
341         <dd>Enable setting and clearing of environment variables, which is
342           provided by <code class="module"><a href="../mod/mod_env.html">mod_env</a></code>.</dd>
343
344         
345         <dt><code>--disable-http</code></dt>
346         <dd>Disable the HTTP protocol handling. The <code>http</code> module is
347           a basic one, enabling the server to function as an HTTP server. It is
348           only useful to disable it if you want to use another protocol module
349           instead. <strong>Don't disable this module unless you are really sure
350             what you are doing.</strong><br />
351           Note: This module will always be linked statically.</dd> 
352
353         <dt><code>--disable-imap</code></dt>
354         <dd>Disable support for server based imagemaps, which provided by
355           <code class="module"><a href="../mod/mod_imap.html">mod_imap</a></code>.</dd>
356
357         <dt><code>--disable-include</code></dt>
358         <dd>Disable Server Side Includes provided by
359           <code class="module"><a href="../mod/mod_include.html">mod_include</a></code>.</dd>
360
361         <dt><code>--disable-log-config</code></dt>
362         <dd>Disable the logging configuration provided by
363           <code class="module"><a href="../mod/mod_log_config.html">mod_log_config</a></code>.</dd>
364
365         <dt><code>--disable-mime</code></dt>
366         <dd>Disable the mapping of file-extensions to MIME, which is provided by
367           <code class="module"><a href="../mod/mod_mime.html">mod_mime</a></code>.</dd>
368
369         <dt><code>--disable-negotiation</code></dt>
370         <dd>Disable content negotiation provided by
371           <code class="module"><a href="../mod/mod_negotiation.html">mod_negotiation</a></code>.</dd>
372
373         <dt><code>--disable-setenvif</code></dt>
374         <dd>Disable support for basing environment variables on headers, which
375           is provided by <code class="module"><a href="../mod/mod_setenvif.html">mod_setenvif</a></code>.</dd>
376
377         <dt><code>--disable-status</code></dt>
378         <dd>Enable the process/thread monitoring, which is provided by
379           <code class="module"><a href="../mod/mod_status.html">mod_status</a></code>.</dd>
380
381         <dt><code>--disable-userdir</code></dt>
382         <dd>Disable the mapping of requests to user-specific directories, which
383           is provided by <code class="module"><a href="../mod/mod_userdir.html">mod_userdir</a></code>.</dd>
384
385         <dt><code>--enable-auth-anon</code></dt>
386         <dd>Enable anonymous user access provided by
387           <code class="module"><a href="../mod/mod_auth_anon.html">mod_auth_anon</a></code>.</dd>
388
389         <dt><code>--enable-auth-dbm</code></dt>
390         <dd>Enable support for DBM-based access databases provided by
391           <code class="module"><a href="../mod/mod_auth_dbm.html">mod_auth_dbm</a></code>.</dd>
392
393         <dt><code>--enable-auth-digest</code></dt>
394         <dd>Enable RFC2617 Digest authentication provided by
395           <code class="module"><a href="../mod/mod_auth_digest.html">mod_auth_digest</a></code>.</dd>
396
397         <dt><code>--enable-auth-ldap</code></dt>
398         <dd>Enable LDAP based authentication provided by
399           <code class="module"><a href="../mod/mod_auth_ldap.html">mod_auth_ldap</a></code>.</dd>
400
401         
402         <dt><code>--enable-bucketeer</code></dt>
403         <dd>Enable manipulation filter the manipulation filter for buckets,
404           which is provided by <code>mod_bucketeer</code>.</dd>
405           
406         <dt><code>--enable-cache</code></dt>
407         <dd>Enable dynamic file caching provided by
408           <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code>.</dd>
409
410         
411         <dt><code>--enable-case-filter</code></dt>
412         <dd>Enable the example uppercase conversion output filter support of
413           <code>mod_case_filter</code>.</dd>
414
415         
416         <dt><code>--enable-case-filter-in</code></dt>
417         <dd>Enable the example uppercase conversion input filter support of
418           <code>mod_case_filter_in</code>.</dd>
419
420         <dt><code>--enable-cern-meta</code></dt>
421         <dd>Enable the CERN-type meta files support provided by
422           <code class="module"><a href="../mod/mod_cern_meta.html">mod_cern_meta</a></code>.</dd>
423
424         <dt><code>--enable-charset-lite</code></dt>
425         <dd>Enable character set translation provided by
426           <code class="module"><a href="../mod/mod_charset_lite.html">mod_charset_lite</a></code>. This module will be installed by
427           default only on EBCDIC systems. On other systems, you have to enable
428           it.</dd>
429
430         <dt><code>--enable-dav</code></dt>
431         <dd>Enable the WebDAV protocol handling provided by
432           <code class="module"><a href="../mod/mod_dav.html">mod_dav</a></code>. Support for filesystem resources is
433           provided by the seperate module <code class="module"><a href="../mod/mod_dav_fs.html">mod_dav_fs</a></code>. This
434           module is also automatically enabled with
435           <code>--enable-dav</code>.<br />
436           Note: <code class="module"><a href="../mod/mod_dav.html">mod_dav</a></code> can only be used together with the
437           <code>http</code> protocol module.</dd>
438
439         <dt><code>--enable-dav-fs</code></dt>
440         <dd>Enable DAV support for filesystem resources, which is provides by
441           <code class="module"><a href="../mod/mod_dav_fs.html">mod_dav_fs</a></code>. This module is a provider for the
442           <code class="module"><a href="../mod/mod_dav.html">mod_dav</a></code> module, so you should also use
443           <code>--enable-dav</code>.</dd> 
444
445         <dt><code>--enable-deflate</code></dt>
446         <dd>Enable deflate transfer encoding provided by
447           <code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code>.</dd>
448
449         <dt><code>--enable-disk-cache</code></dt>
450         <dd>Enable disk caching provided by
451           <code class="module"><a href="../mod/mod_disk_cache.html">mod_disk_cache</a></code>.</dd>
452
453         <dt><code>--enable-echo</code></dt>
454         <dd>Enable the ECHO server provided by
455           <code class="module"><a href="../mod/mod_echo.html">mod_echo</a></code>.</dd>
456
457         <dt><code>--enable-example</code></dt>
458         <dd>Enable the example and demo module
459           <code class="module"><a href="../mod/mod_example.html">mod_example</a></code>.</dd>
460
461         <dt><code>--enable-expires</code></dt>
462         <dd>Enable Expires header control provided by
463           <code class="module"><a href="../mod/mod_expires.html">mod_expires</a></code>.</dd>
464
465         <dt><code>--enable-ext-filter</code></dt>
466         <dd>Enable the external filter support provided by
467           <code class="module"><a href="../mod/mod_ext_filter.html">mod_ext_filter</a></code>.</dd>
468
469         <dt><code>--enable-file-cache</code></dt>
470         <dd>Enable the file cache provided by
471           <code class="module"><a href="../mod/mod_file_cache.html">mod_file_cache</a></code>.</dd>
472
473         <dt><code>--enable-headers</code></dt>
474         <dd>Enable control of HTTP headers provided by
475           <code class="module"><a href="../mod/mod_headers.html">mod_headers</a></code>.</dd>
476
477         <dt><code>--enable-info</code></dt>
478         <dd>Enable the server information provided by
479           <code class="module"><a href="../mod/mod_info.html">mod_info</a></code>.</dd>
480
481         <dt><code>--enable-ldap</code></dt>
482         <dd>Enable LDAP caching and connection pooling services provided by
483           <code class="module"><a href="../mod/mod_ldap.html">mod_ldap</a></code>.</dd>
484
485         <dt><code>--enable-logio</code></dt>
486         <dd>Enable logging of input and output bytes including headers provided
487           by <code class="module"><a href="../mod/mod_logio.html">mod_logio</a></code>.</dd>
488
489         <dt><code>--enable-mem-cache</code></dt>
490         <dd>Enable memory caching provided by
491           <code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code>.</dd>
492
493         <dt><code>--enable-mime-magic</code></dt>
494         <dd>Enable automatical determining of MIME types, which is provided by
495           <code class="module"><a href="../mod/mod_mime_magic.html">mod_mime_magic</a></code>.</dd>
496
497         <dt><code>--enable-isapi</code></dt>
498         <dd>Enable the isapi extension support provided by
499           <code class="module"><a href="../mod/mod_isapi.html">mod_isapi</a></code>.</dd>
500
501         
502         <dt><code>--enable-optional-fn-export</code></dt>
503         <dd>Enable the example for an optional function exporter, which is
504           provided by <code>mod_optional_fn_export</code>.</dd> 
505
506         
507         <dt><code>--enable-optional-fn-import</code></dt>
508         <dd>Enable the example for an optional function importer, which is
509           provided by <code>mod_optional_fn_import</code>.</dd>
510
511         
512         <dt><code>--enable-optional-hook-export</code></dt>
513         <dd>Enable the example for an optional hook exporter, which is provided
514           by <code>mod_optional_hook_export</code>.</dd>
515
516         
517         <dt><code>--enable-optional-hook-import</code></dt>
518         <dd>Enable the example optional hook importer, which is provided by
519           <code>mod_optional_hook_import</code>.</dd>
520
521         <dt><code>--enable-proxy</code></dt>
522         <dd>Enable the proxy/gateway functionality provided by
523           <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code>. The proxying capabilities for
524           <code>CONNECT</code>, <code>FTP</code> and <code>HTTP</code> are
525           provided by the seperate modules <code class="module"><a href="../mod/mod_proxy_connect.html">mod_proxy_connect</a></code>,
526           <code class="module"><a href="../mod/mod_proxy_ftp.html">mod_proxy_ftp</a></code> and <code class="module"><a href="../mod/mod_proxy_http.html">mod_proxy_http</a></code>.
527           These three modules are also automatically enabled with
528           <code>--enable-proxy</code>.</dd>
529
530         <dt><code>--enable-proxy-connect</code></dt>
531         <dd>Enable proxy support for <code>CONNECT</code> request handling,
532           which is provided by <code class="module"><a href="../mod/mod_proxy_connect.html">mod_proxy_connect</a></code>. This module
533           is an extension for the <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code> module, so you
534           should also use <code>--enable-proxy</code>.</dd>
535
536         <dt><code>--enable-proxy-ftp</code></dt>
537         <dd>Enable proxy support for <code>FTP</code> requests, which is
538           provided by <code class="module"><a href="../mod/mod_proxy_ftp.html">mod_proxy_ftp</a></code>.. This module
539           is an extension for the <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code> module, so you
540           should also use <code>--enable-proxy</code>.</dd>
541
542         <dt><code>--enable-proxy-http</code></dt>
543         <dd>Enable proxy support for <code>HTTP</code> requests, which is
544           provided by <code class="module"><a href="../mod/mod_proxy_http.html">mod_proxy_http</a></code>. This module
545           is an extension for the <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code> module, so you
546           should also use <code>--enable-proxy</code>.</dd>
547
548         <dt><code>--enable-rewrite</code></dt>
549         <dd>Enable rule based URL manipulation provided by
550           <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>.</dd>
551
552         <dt><code>--enable-so</code></dt>
553         <dd>Enable DSO capability provided by <code class="module"><a href="../mod/mod_so.html">mod_so</a></code>. This
554           module will be automatically enabled if you use the
555           <code>--enable-mods-shared</code> option.</dd>
556
557         <dt><code>--enable-speling</code></dt>
558         <dd>Enable the functionality to correct common URL misspellings, which
559           is provided by <code class="module"><a href="../mod/mod_spelling.html">mod_spelling</a></code>.</dd>
560
561         <dt><code>--enable-ssl</code></dt>
562         <dd>Enable support for SSL/TLS provided by
563           <code class="module"><a href="../mod/mod_ssl.html">mod_ssl</a></code>.</dd>
564
565         <dt><code>--enable-unique-id</code></dt>
566         <dd>Enable the generation of per-request unique ids, which is provided
567           by <code class="module"><a href="../mod/mod_unique_id.html">mod_unique_id</a></code>.</dd>
568
569         <dt><code>--enable-usertrack</code></dt>
570         <dd>Enable user-session tracking provided by
571           <code class="module"><a href="../mod/mod_usertrack.html">mod_usertrack</a></code>.</dd>
572
573         <dt><code>--with-module=<var>module-type</var>:<var>module-file</var>
574           </code></dt>
575         <dd><p>Add a third-party module to the list of statically linked
576             modules. The module source file <code><var>module-file</var></code>
577             will be searched in the <code>modules/<var>module-type</var></code>
578             subdirectory of your Apache HTTP server source tree so it has to be
579             placed there before. If it is not found here 
580             <code>configure</code> is considering <var>module-file</var> to be a
581             an absolute file path and tries to copy the source file into the
582             <var>module-type</var> subdirectory.</p>
583           <p>This option is useful to add small external modules consisting of
584             one source file. For bigger modules you should read the vendor's
585             documentation.</p>
586           <div class="note"><h3>Note</h3>
587             If you want to build a DSO module instead of a statically linked use
588             <a href="apxs.html">apxs</a>.</div>
589         </dd>
590
591         <dt><code>--with-mpm=MPM</code></dt>
592         <dd>Choose the process model for your server. You have to select
593           exactly one <a href="mpm.html">Multi-Processing Module</a>. Otherwise
594           the <a href="mpm.html#defaults">default MPM</a> for your operating
595           system will be taken. Possible MPMs are <code class="module"><a href="../mod/beos.html">beos</a></code>,
596           <code class="module"><a href="../mod/leader.html">leader</a></code>, <code class="module"><a href="../mod/mpmt_os2.html">mpmt_os2</a></code>,
597           <code class="module"><a href="../mod/perchild.html">perchild</a></code>, <code class="module"><a href="../mod/prefork.html">prefork</a></code>,
598           <code class="module"><a href="../mod/threadpool.html">threadpool</a></code> and <code class="module"><a href="../mod/worker.html">worker</a></code>.</dd>
599       </dl>
600     
601
602     <h4><a name="otheroptfeat" id="otheroptfeat">Cumulative and other options</a></h4>
603       <dl>
604         <dt><code>--enable-maintainer-mode</code></dt>
605         <dd>Turn on debugging and compile time warnings.</dd>
606
607         <dt><code>--enable-mods-shared=<var>MODULE-LIST</var></code></dt>
608         <dd>
609           <p>Defines a list of modules to be enabled and build as dynamic
610             shared modules. This mean, these module have to be loaded
611             dynamically by using the  <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> directive.</p>
612           <p><var>MODULE-LIST</var> is a space separated list of modulenames
613             enclosed by quotation marks. The module names are given without the
614             preceding <code>mod_</code>. For example:</p>
615           <div class="example"><p><code>
616             --enable-mods-shared='headers rewrite dav'
617           </code></p></div>
618           <p>Additionally you can use the special keywords <code>all</code> and
619             <code>most</code>. For example,</p>
620           <div class="example"><p><code>
621             --enable-mods-shared=most
622           </code></p></div>
623           <p>will compile most modules and build them as DSO modules.
624             </p>
625         </dd>
626                     
627         <dt><code>--enable-modules=<var>MODULE-LIST</var></code></dt>
628         <dd>This option behaves similar to <code>--enable-mods-shared</code>, 
629           but will link the given modules statically. This mean, these modules
630           will always be present while running <code>httpd</code>. They need
631           not be loaded with <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code>.</dd>
632
633         <dt><code>--enable-v4-mapped</code></dt>
634         <dd>Allow IPv6 sockets to handle IPv4 connections.</dd>
635
636         <dt><code>--enable-vhost-alias</code></dt>
637         <dd>Enable mass virtual hosting provided by
638           <code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code>.</dd>
639
640         <dt><code>--with-port=<var>PORT</var></code></dt>
641         <dd>This defines the port on which <code>httpd</code> will listen. This
642           port number is used when generating the configuration file
643           <code>httpd.conf</code>. The default is 80.</dd>
644
645         <dt><code>--with-program-name</code></dt>
646         <dd>Define an alternative executable name.</dd>
647       </dl>
648     
649   
650
651   <h3><a name="packages" id="packages">Optional packages</a></h3>
652     <p>These options are used to define optional packages.</p>
653
654     <h4><a name="generalpackages" id="generalpackages">General syntax</a></h4>
655       <p>Generally you can use the following syntax to define an optional
656         package:</p>
657
658       <dl>
659         <dt><code>--with-<var>PACKAGE</var>[=<var>ARG</var>]</code></dt>
660         <dd>Use the package <var>PACKAGE</var>. The default value for
661           <var>ARG</var> is<code>yes</code>.</dd>
662
663         <dt><code>--without-<var>PACKAGE</var></code></dt>
664         <dd>Do not use the package <var>PACKAGE</var>. This is the same as
665           <code>--with-<var>PACKAGE</var>=no</code>. This option is provided by
666           <code>autoconf</code> but not very useful for the Apache HTTP
667           Server.</dd>
668       </dl>
669     
670
671     
672
673     <h4><a name="packageopt" id="packageopt">Specific packages</a></h4>
674       <dl>
675         <dt><code>--with-apr=<var>DIR</var>|<var>FILE</var></code></dt>
676         <dd>The Apache Portable Runtime (APR) is part of the <code>httpd</code>
677           source distribution and will automatically be build together with the
678           HTTP server. If you want to use an already installed APR instead you
679           have to tell <code>configure</code> the path to the
680           <code>apr-config</code> script. You may set the absolute path and name
681           or the directory to the installed APR. <code>apr-config</code> must
682           exists within this directory or the subdirectory
683           <code>bin</code>.</dd>
684         
685         <dt><code>--with-apr-util=<var>DIR</var>|<var>FILE</var></code></dt>
686         <dd>The Apache Portable Runtime Utilities (APU) are part of the
687           <code>httpd</code> source distribution and will automatically be build
688           together with the HTTP server. If you want to use an already installed
689           APU instead you have to tell <code>configure</code> the path to the
690           <code>apu-config</code> script. You may set the absolute path and name
691           or the directory to the installed APU. <code>apu-config</code> must
692           exists within this directory or the subdirectory
693           <code>bin</code>.</dd>
694
695         <dt><code>--with-ssl=<var>DIR</var></code></dt>
696         <dd>If <code class="module"><a href="../mod/mod_ssl.html">mod_ssl</a></code> has been enabled <code>configure</code>
697           searches for an installed OpenSSL. You can set the directory path
698           to the SSL/TLS toolkit instead.</dd>
699
700         <dt><code>--with-z=<var>DIR</var></code></dt>
701         <dd><code>configure</code> searches automatically for an installed
702           <code>zlib</code> library if your source configuration requires one
703           (e.g., when <code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code> is enabled). You can set the
704           directory path to the compression library instead.</dd>
705       </dl>
706     
707   
708   
709   <h3><a name="supportopt" id="supportopt">Options for support programs</a></h3>
710     <dl>
711       <dt><code>--enable-static-support</code></dt>
712       <dd>Build a statically linked version of the support binaries. This
713         means, a stand-alone executable will be built with all the necessary
714         libraries integrated. Otherwise the support binaries are linked
715         dynamically by default.</dd>
716
717       <dt><code>--enable-suexec</code></dt>
718       <dd>Use this option to enable <code><a href="suexec.html">suexec</a></code>, which allows you to set uid
719         and gid for spawned processes. Further options to configure
720         <code>suexec</code> are described <a href="#suexec">below</a>.</dd>
721     </dl>
722
723     <p>It is possible to create a statically linked binary of a single
724       support program by using the following options:</p>
725
726     <dl>
727       <dt><code>--enable-static-ab</code></dt>
728       <dd>Build a statically linked version of <code><a href="ab.html">ab</a></code>.</dd>
729
730       
731       <dt><code>--enable-static-checkgid</code></dt>
732       <dd>Build a statically linked version of <code>checkgid</code>.</dd>
733
734       
735       <dt><code>--enable-static-htdbm</code></dt>
736       <dd>Build a statically linked version of <code>htdbm</code>.</dd>
737
738       <dt><code>--enable-static-htdigest</code></dt>
739       <dd>Build a statically linked version of <code><a href="htdigest.html">htdigest</a></code>.</dd>
740         
741       <dt><code>--enable-static-htpasswd</code></dt>
742       <dd>Build a statically linked version of <code><a href="htpasswd.html">htpasswd</a></code>.</dd>
743
744       <dt><code>--enable-static-logresolve</code></dt>
745       <dd>Build a statically linked version of <code><a href="logresolve.html">logresolve</a></code>.</dd>
746
747       <dt><code>--enable-static-rotatelogs</code></dt>
748       <dd>Build a statically linked version of <code><a href="rotatelogs.html">rotatelogs</a></code>.</dd>
749     </dl>
750
751     <h4><a name="suexec" id="suexec">suexec configuration options</a></h4>
752       <p>The following options are used to fine tune the behavior of <code><a href="suexec.html">suexec</a></code>. See <a href="suexec.html#install">Configuring and installing suEXEC</a>
753         for further information.</p>
754
755       <dl>
756         <dt><code>--with-suexec-bin</code></dt>
757         <dd>This defines the path to suexec binary. Default is
758           <code>--sbindir</code> (see <a href="directoryfinetuning">Fine
759             tuning of installation directories</a>).</dd>
760
761         <dt><code>--with-suexec-caller</code></dt>
762         <dd>This defines the user allowed to call <code>suexec</code>. It should
763           be the same as the user under which <code>httpd</code> normally
764           runs.</dd>
765
766         <dt><code>--with-suexec-docroot</code></dt>
767         <dd>This defines the directory tree under which <code>suexec</code>
768           access is allowed for executables. Default value is
769           <code>--datadir/htdocs</code>.</dd>
770
771         <dt><code>--with-suexec-gidmin</code></dt>
772         <dd>Define this as the lowest GID allowed to be a target user for
773           <code>suexec</code>. The default value is 100.</dd>
774
775         <dt><code>--with-suexec-logfile</code></dt>
776         <dd>This defines the filename of the <code>suexec</code> logfile. By
777           default the logfile is named <code>suexec_log</code> and located in
778           <code>--logfiledir</code>.</dd>
779
780         <dt><code>--with-suexec-safepath</code></dt>
781         <dd>Define the value of the environment variable <code>PATH</code> to
782           be set for processes started by <code>suexec</code>. Default value is
783           <code>/usr/local/bin:/usr/bin:/bin</code>.</dd>
784
785         <dt><code>--with-suexec-userdir</code></dt>
786         <dd>This defines the subdirectory under the user's directory that
787           contains all executables for which <code>suexec</code> access is
788           allowed. This setting is necessary when you want to use
789           <code>suexec</code> together with user-specific directories (as
790           provided by <code class="module"><a href="../mod/mod_userdir.html">mod_userdir</a></code>). The default is
791           <code>public_html</code>.</dd>
792
793         <dt><code>--with-suexec-uidmin</code></dt>
794         <dd>Define this as the lowest UID allowed to be a target user for
795           <code>suexec</code>. The default value is 100.</dd>
796
797         <dt><code>--with-suexec-umask</code></dt>
798         <dd>Set <code>umask</code> for processes started by <code>suexec</code>.
799           It defaults to your system settings.</dd>
800       </dl>
801     
802   
803 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
804 <div class="section">
805 <h2><a name="env" id="env">Environment variables</a></h2>
806   <p>There are some useful environment variables to override the choices made by
807     <code>configure</code> or to help it to find libraries and programs with
808     nonstandard names or locations.</p>
809
810   
811   <dl>
812     <dt><code>CC</code></dt>
813     <dd>Define the C compiler command to be used for compilation.</dd>
814
815     <dt><code>CFLAGS</code></dt>
816     <dd>Set C compiler flags you want to use for compilation.</dd>
817
818     <dt><code>CPP</code></dt>
819     <dd>Define the C preprocessor command to be used.</dd>
820
821     <dt><code>CPPFLAGS</code></dt>
822     <dd>Set C/C++ preprocessor flags, e.g. <code>-I<var>includedir</var></code>
823       if you have headers in a nonstandard directory <var>includedir</var>.</dd>
824
825     <dt><code>LDFLAGS</code></dt>
826     <dd>Set linker flags, e.g. <code>-L<var>libdir</var></code> if you have
827       libraries in a nonstandard directory <var>libdir</var>.</dd> 
828   </dl>
829 </div></div>
830 <div class="bottomlang">
831 <p><span>Available Languages: </span><a href="../en/programs/configure.html" title="English">&nbsp;en&nbsp;</a></p>
832 </div><div id="footer">
833 <p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
834 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>
835 </body></html>