]> granicus.if.org Git - apache/blob - docs/manual/programs/configure.xml
Broken links
[apache] / docs / manual / programs / configure.xml
1 <?xml version='1.0' encoding='UTF-8' ?>
2 <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
4 <!-- $LastChangedRevision$ -->
5
6 <!--
7  Licensed to the Apache Software Foundation (ASF) under one or more
8  contributor license agreements.  See the NOTICE file distributed with
9  this work for additional information regarding copyright ownership.
10  The ASF licenses this file to You under the Apache License, Version 2.0
11  (the "License"); you may not use this file except in compliance with
12  the License.  You may obtain a copy of the License at
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
16  Unless required by applicable law or agreed to in writing, software
17  distributed under the License is distributed on an "AS IS" BASIS,
18  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  See the License for the specific language governing permissions and
20  limitations under the License.
21 -->
22
23 <manualpage metafile="configure.xml.meta">
24 <parentdocument href="./">Programs</parentdocument>
25
26   <title>configure - Configure the source tree</title>
27
28 <summary>
29     <p>The <code>configure</code> script configures the source tree
30     for compiling and installing the Apache HTTP Server on your
31     particular platform. Various options allow the compilation of a
32     server corresponding to your personal requirements.</p>
33
34     <p>This script, included in the root directory of the source
35     distribution, is for compilation on Unix and Unix-like systems
36     only. For other platforms, see the <a
37     href="../platform/">platform</a> documentation.</p>
38 </summary>
39
40 <seealso><a href="../install.html">Compiling and Installing</a></seealso>
41
42 <section id="synopsis"><title>Synopsis</title>
43     <p>You should call the <code>configure</code> script from within the
44     root directory of the distribution.</p>
45
46     <p><code><strong>./configure</strong> [<var>OPTION</var>]...
47     [<var>VAR</var>=<var>VALUE</var>]...</code></p>
48
49     <p>To assign environment variables (e.g. <code>CC</code>,
50     <code>CFLAGS</code> ...), specify them as
51     <code><var>VAR</var>=<var>VALUE</var></code>. See <a href="#env">below</a>
52     for descriptions of some of the useful variables.</p>
53 </section>
54
55 <section id="options"><title>Options</title>
56   <ul>
57     <li><a href="#configurationoptions">Configuration options</a></li>
58     <li><a href="#installationdirectories">Installation directories</a></li>
59     <li><a href="#systemtypes">System types</a></li>
60     <li><a href="#optionalfeatures">Optional features</a></li>
61     <li><a href="#supportopt">Options for support programs</a></li>
62   </ul>
63
64   <section id="configurationoptions"><title>Configuration options</title>
65
66     <p>The following options influence the behavior of
67     <code>configure</code> itself.</p>
68
69     <dl>
70       <dt><code>-C</code></dt>
71       <dt><code>--config-cache</code></dt>
72       <dd>This is an alias for <code>--cache-file=config.cache</code></dd>
73
74       <dt><code>--cache-file=<var>FILE</var></code></dt>
75       <dd>The test results will be cached in file <var>FILE</var>.
76         This option is disabled by default.</dd>
77
78       <dt><code>-h</code></dt>
79       <dt><code>--help [short|recursive]</code></dt>
80       <dd>Output the help and exit. With the argument <code>short</code> only
81         options specific to this package will displayed. The argument
82         <code>recursive</code> displays the short help of all the included
83         packages.</dd>
84
85       <dt><code>-n</code></dt>
86       <dt><code>--no-create</code></dt>
87       <dd>The <code>configure</code> script is run normally but does
88         not create output files. This is useful to check the test results
89         before generating makefiles for compilation.</dd>
90
91       <dt><code>-q</code></dt>
92       <dt><code>--quiet</code></dt>
93       <dd>Do not print <code>checking ...</code> messages during the
94         configure process.</dd>
95
96       <dt><code>--srcdir=<var>DIR</var></code></dt>
97       <dd>Defines directory <var>DIR</var> to be the source file directory.
98         Default is the directory where <code>configure</code> is located, or
99         the parent directory.</dd>
100
101       <dt><code>--silent</code></dt>
102       <dd>Same as <code>--quiet</code></dd>
103
104       <dt>-V</dt>
105       <dt>--version</dt>
106       <dd>Display copyright information and exit.</dd>
107     </dl>
108   </section>
109
110   <section id="installationdirectories"><title>Installation
111     directories</title>
112
113     <p>These options define the installation directory. The installation
114       tree depends on the selected layout.</p>
115
116     <dl>
117       <dt><code>--prefix=<var>PREFIX</var></code></dt>
118       <dd>Install architecture-independent files in <var>PREFIX</var>.
119         By default the installation directory is set to
120         <code>/usr/local/apache2</code>.</dd>
121
122       <dt><code>--exec-prefix=<var>EPREFIX</var></code></dt>
123       <dd>Install architecture-dependent files in <var>EPREFIX</var>.
124         By default the installation directory is set to the
125         <var>PREFIX</var> directory.</dd>
126     </dl>
127
128     <p>By default, <code>make install</code> will install all the files in
129       <code>/usr/local/apache2/bin</code>, <code>/usr/local/apache2/lib</code>
130       etc. You can specify an installation prefix other than
131       <code>/usr/local/apache2</code> using <code>--prefix</code>,
132       for instance <code>--prefix=$HOME</code>.</p>
133
134     <section id="layout"><title>Define a directory layout</title>
135       <dl>
136         <dt><code>--enable-layout=<var>LAYOUT</var></code></dt>
137         <dd>Configure the source code and build scripts to assume an
138           installation tree based on the layout <var>LAYOUT</var>. This allows
139           you to separately specify the locations for each type of file within
140           the Apache HTTP Server installation. The <code>config.layout</code>
141           file contains several example configurations, and you can also create
142           your own custom configuration following the examples. The different
143           layouts in this file are grouped into <code>&lt;Layout
144             FOO&gt;...&lt;/Layout&gt;</code> sections and referred to by name as
145           in <code>FOO</code>. The default layout is <code>Apache</code>.</dd>
146       </dl>
147     </section>
148
149     <section id="directoryfinetuning"><title>Fine tuning of the installation
150       directories</title>
151
152       <p>For better control of the installation directories, use the options
153         below. Please note that the directory defaults are set by
154         <code>autoconf</code> and are overwritten by the corresponding layout
155         setting.</p>
156
157       <dl>
158         <!-- only apr-config and apu-config are installed at bindir.
159         everything else is stored at sbindir. ==> clarify/change this -->
160         <dt><code>--bindir=<var>DIR</var></code></dt>
161         <dd>Install user executables in <var>DIR</var>. The user executables
162           are supporting programs like <program>htpasswd</program>,
163           <program>dbmmanage</program>, etc. which are useful for site
164           administrators. By default <var>DIR</var> is set to
165           <code><var>EPREFIX</var>/bin</code>.</dd>
166
167         <dt><code>--datadir=<var>DIR</var></code></dt>
168         <dd>Install read-only architecture-independent data in <var>DIR</var>.
169           By default <code>datadir</code> is set to
170           <code><var>PREFIX</var>/share</code>. This option is offered by
171           <code>autoconf</code> and currently unused.</dd>
172
173         <dt><code>--includedir=<var>DIR</var></code></dt>
174         <dd>Install C header files in <var>DIR</var>. By default
175           <code>includedir</code> is set to
176           <code><var>EPREFIX</var>/include</code>.</dd>
177
178         <dt><code>--infodir=<var>DIR</var></code></dt>
179         <dd>Install info documentation in <var>DIR</var>.
180           By default <code>infodir</code> is set to
181           <code><var>PREFIX</var>/info</code>. This option is currently
182           unused.</dd>
183
184         <dt><code>--libdir=<var>DIR</var></code></dt>
185         <dd>Install object code libraries in <var>DIR</var>. By default
186           <code>libdir</code> is set to
187           <code><var>EPREFIX</var>/lib</code>.</dd>
188
189         <dt><code>--libexecdir=<var>DIR</var></code></dt>
190         <dd>Install the program executables (i.e., shared modules) in
191           <var>DIR</var>. By default <code>libexecdir</code> is set to
192           <code><var>EPREFIX</var>/libexec</code>.</dd>
193
194         <dt><code>--localstatedir=<var>DIR</var></code></dt>
195         <dd>Install modifiable single-machine data in <var>DIR</var>.
196           By default <code>localstatedir</code> is set to
197           <code><var>PREFIX</var>/var</code>. This option is offered by
198           <code>autoconf</code> and currently unused.</dd>
199
200         <dt><code>--mandir=<var>DIR</var></code></dt>
201         <dd>Install the man documentation in <var>DIR</var>. By default
202           <code>mandir</code> is set to
203           <code><var>EPREFIX</var>/man</code>.</dd>
204
205         <dt><code>--oldincludedir=<var>DIR</var></code></dt>
206         <dd>Install C header files for non-gcc in <var>DIR</var>.
207           By default <code>oldincludedir</code> is set to
208           <code>/usr/include</code>. This option is offered by
209           <code>autoconf</code> and currently unused.</dd>
210
211         <dt><code>--sbindir=<var>DIR</var></code></dt>
212         <dd>Install the system administrator executables in <var>DIR</var>.
213           Those are server programs like <program>httpd</program>,
214           <program>apachectl</program>, <program>suexec</program>, etc. which
215           are neccessary to run the Apache HTTP Server. By default
216           <code>sbindir</code> is set to
217           <code><var>EPREFIX</var>/sbin</code>.</dd>
218
219         <dt><code>--sharedstatedir=<var>DIR</var></code></dt>
220         <dd>Install modifiable architecture-independent data in <var>DIR</var>.
221           By default <code>sharedstatedir</code> is set to
222           <code><var>PREFIX</var>/com</code>. This option is offered by
223           <code>autoconf</code> and currently unused.</dd>
224
225         <dt><code>--sysconfdir=<var>DIR</var></code></dt>
226         <dd>Install read-only single-machine data like the server configuration
227           files <code>httpd.conf</code>, <code>mime.types</code>, etc. in
228           <var>DIR</var>. By default <code>sysconfdir</code> is set to
229           <code><var>PREFIX</var>/etc</code>.</dd>
230       </dl>
231     </section>
232   </section>
233
234   <section id="systemtypes"><title>System types</title>
235
236     <p>These options are used to cross-compile the Apache HTTP Server to run on
237       another system. In normal cases, when building and running the server on
238       the same system, these options are not used.</p>
239
240     <dl>
241       <dt><code>--build=<var>BUILD</var></code></dt>
242       <dd>Defines the system type of the system on which the tools are being
243         built. It defaults to the result of the script
244         <code>config.guess</code>.</dd>
245
246       <dt><code>--host=<var>HOST</var></code></dt>
247       <dd>Defines the system type of the system on which the server will run.
248         <var>HOST</var> defaults to <var>BUILD</var>.</dd>
249
250       <dt><code>--target=<var>TARGET</var></code></dt>
251       <dd>Configure for building compilers for the system type
252         <var>TARGET</var>. It defaults to <var>HOST</var>. This option is
253         offered by <code>autoconf</code> and not necessary for the Apache HTTP
254         Server.</dd>
255     </dl>
256   </section>
257
258   <section id="optionalfeatures"><title>Optional Features</title>
259
260     <p>These options are used to fine tune the features your HTTP server will
261       have.</p>
262
263     <section id="generaloptfeat"><title>General syntax</title>
264       <p>Generally you can use the following syntax to enable or disable a
265         feature:</p>
266
267       <dl>
268         <dt><code>--disable-<var>FEATURE</var></code></dt>
269         <dd>Do not include <var>FEATURE</var>. This is the same as
270           <code>--enable-<var>FEATURE</var>=no</code>.</dd>
271
272         <dt><code>--enable-<var>FEATURE</var>[=<var>ARG</var>]</code></dt>
273         <dd>Include <var>FEATURE</var>. The default value for <var>ARG</var>
274           is <code>yes</code>.</dd>
275
276         <dt><code>--enable-<var>MODULE</var>=shared</code></dt>
277         <dd>The corresponding module will be build as DSO module.</dd>
278
279         <dt><code>--enable-<var>MODULE</var>=static</code></dt>
280         <dd>By default enabled modules are linked statically. You can force
281           this explicitly.</dd>
282       </dl>
283
284       <note><title>Note</title>
285         <code>configure</code> will not complain about
286         <code>--enable-<var>foo</var></code> even if <var>foo</var> doesn't
287         exist, so you need to type carefully.
288       </note>
289     </section>
290
291     <!-- to do: add better enable-module descriptions and recommendations -->
292     <section id="enabledmodules"><title>Modules enabled by default</title>
293       <p>Some modules are compiled by default and have to be disabled
294         explicitly. Use the following options to remove discrete modules from
295         the compilation process.</p>
296
297       <dl>
298         <dt><code>--disable-actions</code></dt>
299         <dd>Disable action triggering on requests, which is provided by
300           <module>mod_actions</module>.</dd>
301
302         <dt><code>--disable-alias</code></dt>
303         <dd>Disable the mapping of requests to different parts of the
304           filesystem, which is provided by <module>mod_alias</module>.</dd>
305
306         <dt><code>--disable-asis</code></dt>
307         <dd>Disable support for as-is filetypes, which is provided by
308           <module>mod_asis</module>.</dd>
309
310         <dt><code>--disable-auth</code></dt>
311         <dd>Disable user-based access control provided  by
312           <module>mod_authn_file</module>. This module provides for HTTP Basic
313           Authentication, where the usernames and passwords are stored in
314           plain text files.</dd>
315
316         <dt><code>--disable-autoindex</code></dt>
317         <dd>Disable the directory listing functionality provided by
318           <module>mod_autoindex</module>.</dd>
319
320         <dt><code>--disable-access</code></dt>
321         <dd>Disable host-based access control provided by
322           <module>mod_authz_host</module>.</dd>
323
324         <dt><code>--disable-cgi</code></dt>
325         <dd><module>mod_cgi</module>, which provides support for CGI scripts,
326           is enabled by default when using a non-threaded MPM. Use this
327           option to disable CGI support.</dd>
328
329         <dt><code>--disable-cgid</code></dt>
330         <dd>When using the threaded MPM <module>worker</module>,
331           support for CGI scripts is provided by <module>mod_cgid</module>
332           by default. To disable CGI support use this option.</dd>
333
334         <dt><code>--disable-charset-lite</code></dt>
335         <dd>Disable character set translation provided by
336           <module>mod_charset_lite</module>. This module will be installed by
337           default only on EBCDIC systems.</dd>
338
339         <dt><code>--disable-dir</code></dt>
340         <dd>Disable directory request handling provided by
341           <module>mod_dir</module>.</dd>
342
343         <dt><code>--disable-env</code></dt>
344         <dd>Disable setting and clearing of environment variables, which is
345           provided by <module>mod_env</module>.</dd>
346
347         <!-- configure mentions enable-http, but disable-http would make much
348         more sense -->
349         <dt><code>--disable-http</code></dt>
350           <dd>Disable the HTTP protocol handling. The <code>http</code>
351             module is a basic one, enabling the server to function as an
352             HTTP server. It is only useful to disable it if you want to use
353             another protocol module instead. <strong>Don't disable this
354             module unless you are really sure what you are doing.</strong>
355             <br/>
356             Note: This module will always be linked statically.</dd>
357
358         <dt><code>--disable-imagemap</code></dt>
359         <dd>Disable support for server based imagemaps, which provided by
360           <module>mod_imagemap</module>.</dd>
361
362         <dt><code>--disable-include</code></dt>
363         <dd>Disable Server Side Includes provided by
364           <module>mod_include</module>.</dd>
365
366         <dt><code>--disable-log-config</code></dt>
367         <dd>Disable the logging configuration provided by
368           <module>mod_log_config</module>. You won't be able to log requests
369           to the server without this module.</dd>
370
371         <dt><code>--disable-mime</code></dt>
372         <dd><module>mod_mime</module> associates the requested
373         filename's extensions with the file's behavior and content
374         (<glossary>mime-type</glossary>, language, character set and
375         encoding). Disabling this module is normally not recommended.</dd>
376
377         <dt><code>--disable-negotiation</code></dt>
378         <dd>Disable content negotiation provided by
379           <module>mod_negotiation</module>.</dd>
380
381         <dt><code>--disable-setenvif</code></dt>
382         <dd>Disable support for basing environment variables on headers,
383           which is provided by <module>mod_setenvif</module>.</dd>
384
385         <dt><code>--disable-status</code></dt>
386         <dd>Disable the process/thread monitoring, which is provided by
387           <module>mod_status</module>.</dd>
388
389         <dt><code>--disable-userdir</code></dt>
390         <dd>Disable the mapping of requests to user-specific directories,
391           which is provided by <module>mod_userdir</module>.</dd>
392       </dl>
393     </section>
394
395     <section id="disabledmodules"><title>Modules, disabled by default</title>
396       <p>Some modules are compiled by default and have to be enabled
397         explicitly or by using the keywords <code>most</code> or
398         <code>all</code> (see <code>--enable-mods-shared</code> below for
399         further explanation) to be available. Therefore use the options
400         below.</p>
401
402       <dl>
403         <dt><code>--enable-authn-anon</code></dt>
404         <dd>Enable anonymous user access provided by
405           <module>mod_authn_anon</module>.</dd>
406
407         <dt><code>--enable-authn-dbm</code></dt>
408         <dd><module>mod_authn_dbm</module> provides for HTTP Basic
409           Authentication, where the usernames and passwords are stored in DBM
410           type database files. Use this option to enable the module.</dd>
411
412         <dt><code>--enable-authz-dbm</code></dt>
413         <dd><module>mod_authz_dbm</module> provides for HTTP Basic
414           Authorization, where the usernames and groups are stored in DBM
415           type database files. Use this option to enable the module.</dd>
416
417         <dt><code>--enable-auth-digest</code></dt>
418         <dd>Enable RFC2617 Digest authentication provided by
419           <module>mod_auth_digest</module>. This module uses plain text files
420           to store the credentials.</dd>
421
422         <dt><code>--enable-authnz-ldap</code></dt>
423         <dd>Enable LDAP based authentication provided by
424           <module>mod_authnz_ldap</module>.</dd>
425
426         <dt><code>--enable-cache</code></dt>
427         <dd>Enable dynamic file caching provided by
428           <module>mod_cache</module>. This experimental module may be
429           interesting for servers with high load or caching proxy servers. At
430           least one storage management module (e.g.
431           <module>mod_disk_cache</module>) is also necessary.</dd>
432
433         <dt><code>--enable-cern-meta</code></dt>
434         <dd>Enable the CERN-type meta files support provided by
435           <module>mod_cern_meta</module>.</dd>
436
437         <dt><code>--enable-charset-lite</code></dt>
438         <dd>Enable character set translation provided by
439           <module>mod_charset_lite</module>. This module will be installed by
440           default only on EBCDIC systems. On other systems, you have to enable
441           it.</dd>
442
443         <dt><code>--enable-dav</code></dt>
444         <dd>Enable the WebDAV protocol handling provided by
445           <module>mod_dav</module>. Support for filesystem resources is
446           provided by the separate module <module>mod_dav_fs</module>. This
447           module is also automatically enabled with
448           <code>--enable-dav</code>.<br/>
449           Note: <module>mod_dav</module> can only be used together with the
450           <code>http</code> protocol module.</dd>
451
452         <dt><code>--enable-dav-fs</code></dt>
453         <dd>Enable DAV support for filesystem resources, which is provided by
454           <module>mod_dav_fs</module>. This module is a provider for the
455           <module>mod_dav</module> module, so you should also use
456           <code>--enable-dav</code>.</dd>
457
458         <dt><code>--enable-dav-lock</code></dt>
459         <dd>Enable <module>mod_dav_lock</module> which provides generic DAV
460           locking support for backend modules. This module needs at least
461           <module>mod_dav</module> to function, so you should also use
462           <code>--enable-dav</code>.</dd>
463
464         <dt><code>--enable-deflate</code></dt>
465         <dd>Enable deflate transfer encoding provided by
466           <module>mod_deflate</module>.</dd>
467
468         <dt><code>--enable-disk-cache</code></dt>
469         <dd>Enable disk caching provided by
470           <module>mod_disk_cache</module>.</dd>
471
472         <dt><code>--enable-expires</code></dt>
473         <dd>Enable <code>Expires</code> header control provided by
474           <module>mod_expires</module>.</dd>
475
476         <dt><code>--enable-ext-filter</code></dt>
477         <dd>Enable the external filter support provided by
478           <module>mod_ext_filter</module>.</dd>
479
480         <dt><code>--enable-file-cache</code></dt>
481         <dd>Enable the file cache provided by
482           <module>mod_file_cache</module>.</dd>
483
484         <dt><code>--enable-headers</code></dt>
485         <dd>Enable control of HTTP headers provided by
486           <module>mod_headers</module>.</dd>
487
488         <dt><code>--enable-info</code></dt>
489         <dd>Enable the server information provided by
490           <module>mod_info</module>.</dd>
491
492         <dt><code>--enable-ldap</code></dt>
493         <dd>Enable LDAP caching and connection pooling services provided by
494           <module>mod_ldap</module>.</dd>
495
496         <dt><code>--enable-logio</code></dt>
497         <dd>Enable logging of input and output bytes including headers provided
498           by <module>mod_logio</module>.</dd>
499
500         <dt><code>--enable-mime-magic</code></dt>
501         <dd>Enable
502         automatical determining of <glossary ref="mime-type">MIME
503         types</glossary>, which is provided by
504         <module>mod_mime_magic</module>.</dd>
505
506         <dt><code>--enable-isapi</code></dt>
507         <dd>Enable the isapi extension support provided by
508           <module>mod_isapi</module>.</dd>
509
510         <dt><code>--enable-proxy</code></dt>
511         <dd>Enable the proxy/gateway functionality provided by
512           <module>mod_proxy</module>. The proxying capabilities for
513           <code>AJP13</code>, <code>CONNECT</code>, <code>FTP</code>,
514           <code>HTTP</code> and the balancer are provided by the separate
515           modules <module>mod_proxy_ajp</module>,
516           <module>mod_proxy_connect</module>, <module>mod_proxy_ftp</module>,
517           <module>mod_proxy_http</module> and
518           <module>mod_proxy_balancer</module>.
519           These five modules are also automatically enabled with
520           <code>--enable-proxy</code>.</dd>
521
522         <dt><code>--enable-proxy-ajp</code></dt>
523         <dd>Enable proxy support for <code>AJP13 (Apache JServ Protocol 1.3)</code>
524           request handling, which is provided by <module>mod_proxy_ajp</module>.
525           This module is an extension for the <module>mod_proxy</module> module,
526           so you should also use <code>--enable-proxy</code>.</dd>
527
528         <dt><code>--enable-proxy-balancer</code></dt>
529         <dd>Enable load balancing support for the <code>AJP13</code>,
530           <code>FTP</code> and <code>HTTP</code> protocols, which is provided by
531           <module>mod_proxy_balancer</module>. This module is an extension for the
532           <module>mod_proxy</module> module, so you should also use
533           <code>--enable-proxy</code>.</dd>
534
535         <dt><code>--enable-proxy-connect</code></dt>
536         <dd>Enable proxy support for <code>CONNECT</code> request handling,
537           which is provided by <module>mod_proxy_connect</module>. This module
538           is an extension for the <module>mod_proxy</module> module, so you
539           should also use <code>--enable-proxy</code>.</dd>
540
541         <dt><code>--enable-proxy-ftp</code></dt>
542         <dd>Enable proxy support for <code>FTP</code> requests, which is
543           provided by <module>mod_proxy_ftp</module>. This module
544           is an extension for the <module>mod_proxy</module> module, so you
545           should also use <code>--enable-proxy</code>.</dd>
546
547         <dt><code>--enable-proxy-http</code></dt>
548         <dd>Enable proxy support for <code>HTTP</code> requests, which is
549           provided by <module>mod_proxy_http</module>. This module
550           is an extension for the <module>mod_proxy</module> module, so you
551           should also use <code>--enable-proxy</code>.</dd>
552
553         <dt><code>--enable-rewrite</code></dt>
554         <dd>Enable rule based URL manipulation provided by
555           <module>mod_rewrite</module>.</dd>
556
557         <dt><code>--enable-so</code></dt>
558         <dd>Enable DSO capability provided by <module>mod_so</module>. This
559           module will be automatically enabled if you use the
560           <code>--enable-mods-shared</code> option.</dd>
561
562         <dt><code>--enable-speling</code></dt>
563         <dd>Enable the functionality to correct common URL misspellings, which
564           is provided by <module>mod_speling</module>.</dd>
565
566         <dt><code>--enable-ssl</code></dt>
567         <dd>Enable support for SSL/TLS provided by
568           <module>mod_ssl</module>.</dd>
569
570         <dt><code>--enable-unique-id</code></dt>
571         <dd>Enable the generation of per-request unique ids, which is provided
572           by <module>mod_unique_id</module>.</dd>
573
574         <dt><code>--enable-usertrack</code></dt>
575         <dd>Enable user-session tracking provided by
576           <module>mod_usertrack</module>.</dd>
577
578         <dt><code>--enable-vhost-alias</code></dt>
579         <dd>Enable mass virtual hosting provided by
580           <module>mod_vhost_alias</module>.</dd>
581       </dl>
582     </section>
583
584     <section id="developermodules"><title>Modules for developers</title>
585       <p>The following modules are useful only for developers and testing
586         purposes and are disabled by default. Use the following options to
587         enable them. If you are not sure whether you need one of these
588         modules, omit them.</p>
589
590       <dl>
591         <!-- module doc needed -->
592         <dt><code>--enable-bucketeer</code></dt>
593         <dd>Enable the manipulation filter for buckets, which is provided by
594           <code>mod_bucketeer</code>.</dd>
595
596         <!-- module doc needed -->
597         <dt><code>--enable-case-filter</code></dt>
598         <dd>Enable the example uppercase conversion output filter support of
599           <code>mod_case_filter</code>.</dd>
600
601         <!-- module doc needed -->
602         <dt><code>--enable-case-filter-in</code></dt>
603         <dd>Enable the example uppercase conversion input filter support of
604           <code>mod_case_filter_in</code>.</dd>
605
606         <dt><code>--enable-echo</code></dt>
607         <dd>Enable the ECHO server provided by
608           <module>mod_echo</module>.</dd>
609
610         <dt><code>--enable-example</code></dt>
611         <dd>Enable the example and demo module
612           <module>mod_example</module>.</dd>
613
614         <!-- module doc needed -->
615         <dt><code>--enable-optional-fn-export</code></dt>
616         <dd>Enable the example for an optional function exporter, which is
617           provided by <code>mod_optional_fn_export</code>.</dd>
618
619         <!-- module doc needed -->
620         <dt><code>--enable-optional-fn-import</code></dt>
621         <dd>Enable the example for an optional function importer, which is
622           provided by <code>mod_optional_fn_import</code>.</dd>
623
624         <!-- module doc needed -->
625         <dt><code>--enable-optional-hook-export</code></dt>
626         <dd>Enable the example for an optional hook exporter, which is provided
627           by <code>mod_optional_hook_export</code>.</dd>
628
629         <!-- module doc needed -->
630         <dt><code>--enable-optional-hook-import</code></dt>
631         <dd>Enable the example optional hook importer, which is provided by
632           <code>mod_optional_hook_import</code>.</dd>
633       </dl>
634     </section>
635
636     <section id="modules"><title>MPMs and third-party modules</title>
637       <p>To add the necessary Multi Processing Module and additional third-party
638         modules use the following options:</p>
639
640       <dl>
641         <dt><code>--with-module=<var>module-type</var>:<var>module-file</var>[,
642           <var>module-type</var>:<var>module-file</var>]</code></dt>
643         <dd><p>Add one or more third-party modules to the list of statically linked
644             modules. The module source file <code><var>module-file</var></code>
645             will be searched in the <code>modules/<var>module-type</var></code>
646             subdirectory of your Apache HTTP server source tree. If it is not found
647             there <code>configure</code> is considering <var>module-file</var> to be
648             an absolute file path and tries to copy the source file into the
649             <var>module-type</var> subdirectory. If the subdirectory doesn't
650             exist it will be created and populated with a standard
651             <code>Makefile.in</code>.</p>
652           <p>This option is useful to add small external modules consisting of
653             one source file. For more complex modules you should read the
654             vendor's documentation.</p>
655           <note><title>Note</title>
656             If you want to build a DSO module instead of a statically linked
657             use <program>apxs</program>.</note>
658         </dd>
659
660         <dt><code>--with-mpm=MPM</code></dt>
661         <dd>Choose the process model for your server. You have to select
662           exactly one <a href="../mpm.html">Multi-Processing Module</a>.
663           Otherwise the <a href="../mpm.html#defaults">default MPM</a> for
664           your operating system will be taken. Possible MPMs are
665           <module>prefork</module> and <module>worker</module>.</dd>
666       </dl>
667     </section>
668
669     <section id="otheroptfeat"><title>Cumulative and other options</title>
670       <dl>
671         <dt><code>--enable-maintainer-mode</code></dt>
672         <dd>Turn on debugging and compile time warnings.</dd>
673
674         <dt><code>--enable-mods-shared=<var>MODULE-LIST</var></code></dt>
675         <dd>
676           <p>Defines a list of modules to be enabled and build as dynamic
677             shared modules. This mean, these module have to be loaded
678             dynamically by using the  <directive
679             module="mod_so">LoadModule</directive> directive.</p>
680           <p><var>MODULE-LIST</var> is a space separated list of modulenames
681             enclosed by quotation marks. The module names are given without the
682             preceding <code>mod_</code>. For example:</p>
683           <example>
684             --enable-mods-shared='headers rewrite dav'
685           </example>
686           <p>Additionally you can use the special keywords <code>all</code> and
687             <code>most</code>. For example,</p>
688           <example>
689             --enable-mods-shared=most
690           </example>
691           <p>will compile most modules and build them as DSO modules.
692             <!-- See <a href="../install/enabledmodules.html">Overview of
693               enabled modules</a> for further information. --></p>
694           <p><strong>Caveat:</strong>
695           <code>--enable-mods-shared=all</code> does not actually build all
696           modules. To build all modules then, one might use:</p>
697           <example>
698             ./configure \<br />
699             <indent>
700                 --with-ldap \<br />
701                 --enable-mods-shared="all ssl ldap cache proxy authn_alias file_cache authnz_ldap charset_lite dav_lock disk_cache"
702             </indent>
703           </example>
704         </dd>
705
706         <dt><code>--enable-modules=<var>MODULE-LIST</var></code></dt>
707         <dd>This option behaves similar to <code>--enable-mods-shared</code>,
708           but will link the given modules statically. This mean, these modules
709           will always be present while running <program>httpd</program>. They need
710           not be loaded with <directive
711           module="mod_so">LoadModule</directive>.</dd>
712
713         <dt><code>--enable-v4-mapped</code></dt>
714         <dd>Allow IPv6 sockets to handle IPv4 connections.</dd>
715
716         <dt><code>--with-port=<var>PORT</var></code></dt>
717         <dd>This defines the port on which <program>httpd</program> will listen.
718           This port number is used when generating the configuration file
719           <code>httpd.conf</code>. The default is 80.</dd>
720
721         <dt><code>--with-program-name</code></dt>
722         <dd>Define an alternative executable name. The default is
723           <code>httpd</code>.</dd>
724       </dl>
725     </section>
726   </section>
727
728   <section id="packages"><title>Optional packages</title>
729     <p>These options are used to define optional packages.</p>
730
731     <section id="generalpackages"><title>General syntax</title>
732       <p>Generally you can use the following syntax to define an optional
733         package:</p>
734
735       <dl>
736         <dt><code>--with-<var>PACKAGE</var>[=<var>ARG</var>]</code></dt>
737         <dd>Use the package <var>PACKAGE</var>. The default value for
738           <var>ARG</var> is <code>yes</code>.</dd>
739
740         <dt><code>--without-<var>PACKAGE</var></code></dt>
741         <dd>Do not use the package <var>PACKAGE</var>. This is the same as
742           <code>--with-<var>PACKAGE</var>=no</code>. This option is provided by
743           <code>autoconf</code> but not very useful for the Apache HTTP
744           Server.</dd>
745       </dl>
746     </section>
747
748     <!-- options not known are passed to packages?
749     are there other important options for packages? -->
750
751     <section id="packageopt"><title>Specific packages</title>
752       <dl>
753         <dt><code>--with-apr=<var>DIR</var>|<var>FILE</var></code></dt>
754         <dd>The <glossary ref="apr">Apache Portable Runtime</glossary> (APR)
755           is part of the httpd
756           source distribution and will automatically be build together with the
757           HTTP server. If you want to use an already installed APR instead you
758           have to tell <code>configure</code> the path to the
759           <code>apr-config</code> script. You may set the absolute path and name
760           or the directory to the installed APR. <code>apr-config</code> must
761           exist within this directory or the subdirectory
762           <code>bin</code>.</dd>
763
764         <dt><code>--with-apr-util=<var>DIR</var>|<var>FILE</var></code></dt>
765         <dd>The Apache Portable Runtime Utilities (APU) are part of the
766           httpd source distribution and will automatically be build
767           together with the HTTP server. If you want to use an already installed
768           APU instead you have to tell <code>configure</code> the path to the
769           <code>apu-config</code> script. You may set the absolute path and name
770           or the directory to the installed APU. <code>apu-config</code> must
771           exist within this directory or the subdirectory
772           <code>bin</code>.</dd>
773
774         <dt><code>--with-ssl=<var>DIR</var></code></dt>
775         <dd>If <module>mod_ssl</module> has been enabled <code>configure</code>
776           searches for an installed OpenSSL. You can set the directory path
777           to the SSL/TLS toolkit instead.</dd>
778
779         <dt><code>--with-z=<var>DIR</var></code></dt>
780         <dd><code>configure</code> searches automatically for an installed
781           <code>zlib</code> library if your source configuration requires one
782           (e.g., when <module>mod_deflate</module> is enabled). You can set the
783           directory path to the compression library instead.</dd>
784       </dl>
785
786       <p>Several features of the Apache HTTP Server, including
787         <module>mod_authn_dbm</module> and <module>mod_rewrite</module>'s DBM
788         <directive module="mod_rewrite">RewriteMap</directive> use simple
789         key/value databases for quick lookups of information. SDBM is included
790         in the APU, so this database is always available. If you would like to
791         use other database types, use the following options to enable
792         them:</p>
793
794       <dl>
795         <dt><code>--with-gdbm[=<var>path</var>]</code></dt>
796         <dd>If no <var>path</var> is specified, <code>configure</code> will
797           search for the include files and libraries of a GNU DBM
798           installation in the usual search paths. An explicit
799           <var>path</var> will cause <code>configure</code> to look in
800           <code><var>path</var>/lib</code> and
801           <code><var>path</var>/include</code> for the relevant files.
802           Finally, the <var>path</var> may specify specific include and
803           library paths separated by a colon.</dd>
804
805         <dt><code>--with-ndbm[=<var>path</var>]</code></dt>
806         <dd>Like <code>--with-gdbm</code>, but searches for a New DBM
807           installation.</dd>
808
809         <dt><code>--with-berkeley-db[=<var>path</var>]</code></dt>
810         <dd>Like <code>--with-gdbm</code>, but searches for a Berkeley DB
811           installation.</dd>
812       </dl>
813
814       <note><title>Note</title>
815         <p>The DBM options are provided by the APU and passed through to its
816           configuration script. They are useless when using an already
817           installed APU defined by <code>--with-apr-util</code>.</p>
818         <p>You may use more then one DBM implementation together with your
819           HTTP server. The appropriated DBM type will be configured within
820           the runtime configuration at each time.</p>
821       </note>
822     </section>
823   </section>
824
825   <section id="supportopt"><title>Options for support programs</title>
826     <dl>
827       <dt><code>--enable-static-support</code></dt>
828       <dd>Build a statically linked version of the support binaries. This
829         means, a stand-alone executable will be built with all the necessary
830         libraries integrated. Otherwise the support binaries are linked
831         dynamically by default.</dd>
832
833       <dt><code>--enable-suexec</code></dt>
834       <dd>Use this option to enable <program>
835         suexec</program>, which allows you to set
836         uid and gid for spawned processes. <strong>Do not use this
837         option unless you understand all the security implications of
838         running a suid binary on your server.</strong> Further options
839         to configure <program>suexec</program> are described <a
840         href="#suexec">below</a>.</dd>
841     </dl>
842
843     <p>It is possible to create a statically linked binary of a single
844       support program by using the following options:</p>
845
846     <dl>
847       <dt><code>--enable-static-ab</code></dt>
848       <dd>Build a statically linked version of <program>
849         ab</program>.</dd>
850
851       <!-- missing documentation for chechgid -->
852       <dt><code>--enable-static-checkgid</code></dt>
853       <dd>Build a statically linked version of <code>checkgid</code>.</dd>
854
855       <dt><code>--enable-static-htdbm</code></dt>
856       <dd>Build a statically linked version of <program>
857         htdbm</program>.</dd>
858
859       <dt><code>--enable-static-htdigest</code></dt>
860       <dd>Build a statically linked version of <program>
861         htdigest</program>.</dd>
862
863       <dt><code>--enable-static-htpasswd</code></dt>
864       <dd>Build a statically linked version of <program>
865         htpasswd</program>.</dd>
866
867       <dt><code>--enable-static-logresolve</code></dt>
868       <dd>Build a statically linked version of <program>
869         logresolve</program>.</dd>
870
871       <dt><code>--enable-static-rotatelogs</code></dt>
872       <dd>Build a statically linked version of <program>
873         rotatelogs</program>.</dd>
874     </dl>
875
876     <section id="suexec">
877       <title><code>suexec</code> configuration options</title>
878       <p>The following options are used to fine tune the behavior of <program>
879         suexec</program>. See <a
880         href="suexec.html#install">Configuring and installing suEXEC</a>
881         for further information.</p>
882
883       <dl>
884         <dt><code>--with-suexec-bin</code></dt>
885         <dd>This defines the path to <program>suexec</program> binary.
886         Default is <code>--sbindir</code> (see <a href="#directoryfinetuning"
887         >Fine tuning of installation directories</a>).</dd>
888
889         <dt><code>--with-suexec-caller</code></dt>
890         <dd>This defines the user allowed to call <program>suexec</program>.
891           It should be the same as the user under which
892           <program>httpd</program> normally runs.</dd>
893
894         <dt><code>--with-suexec-docroot</code></dt>
895         <dd>This defines the directory tree under which <program>
896           suexec</program> access is allowed for executables. Default value is
897           <code>--datadir/htdocs</code>.</dd>
898
899         <dt><code>--with-suexec-gidmin</code></dt>
900         <dd>Define this as the lowest GID allowed to be a target user for
901           <program>suexec</program>. The default value is 100.</dd>
902
903         <dt><code>--with-suexec-logfile</code></dt>
904         <dd>This defines the filename of the <program>suexec</program> logfile.
905           By default the logfile is named <code>suexec_log</code> and located in
906           <code>--logfiledir</code>.</dd>
907
908         <dt><code>--with-suexec-safepath</code></dt>
909         <dd>Define the value of the environment variable <code>PATH</code> to
910           be set for processes started by <program>suexec</program>. Default
911           value is <code>/usr/local/bin:/usr/bin:/bin</code>.</dd>
912
913         <dt><code>--with-suexec-userdir</code></dt>
914         <dd>This defines the subdirectory under the user's directory that
915           contains all executables for which <program>suexec</program> access
916           is allowed. This setting is necessary when you want to use
917           <program>suexec</program> together with user-specific directories (as
918           provided by <module>mod_userdir</module>). The default is
919           <code>public_html</code>.</dd>
920
921         <dt><code>--with-suexec-uidmin</code></dt>
922         <dd>Define this as the lowest UID allowed to be a target user for
923           <program>suexec</program>. The default value is 100.</dd>
924
925         <dt><code>--with-suexec-umask</code></dt>
926         <dd>Set <code>umask</code> for processes started by
927           <program>suexec</program>. It defaults to your system settings.</dd>
928       </dl>
929     </section>
930   </section>
931 </section>
932
933 <section id="env"><title>Environment variables</title>
934   <p>There are some useful environment variables to override the choices made by
935     <code>configure</code> or to help it to find libraries and programs with
936     nonstandard names or locations.</p>
937
938   <!-- are these all useful variables? -->
939   <dl>
940     <dt><code>CC</code></dt>
941     <dd>Define the C compiler command to be used for compilation.</dd>
942
943     <dt><code>CFLAGS</code></dt>
944     <dd>Set C compiler flags you want to use for compilation.</dd>
945
946     <dt><code>CPP</code></dt>
947     <dd>Define the C preprocessor command to be used.</dd>
948
949     <dt><code>CPPFLAGS</code></dt>
950     <dd>Set C/C++ preprocessor flags, e.g. <code>-I<var>includedir</var></code>
951       if you have headers in a nonstandard directory <var>includedir</var>.</dd>
952
953     <dt><code>LDFLAGS</code></dt>
954     <dd>Set linker flags, e.g. <code>-L<var>libdir</var></code> if you have
955       libraries in a nonstandard directory <var>libdir</var>.</dd>
956   </dl>
957 </section>
958 </manualpage>