Debian Codegraph @

README.5configure

raw
1 (This file was generated by makeinfo and splitinfo.gawk.)
2 (Released under the old-style GNU documentation license;
3 see sources or other output files for full text.)
4
5 7 Configure options
6 *******************
7
8 Corresponding to the large number of program and library modules there
9 are a large number 'configure' options, most of which are described
10 here. The command
11 'configure --help'
12 at the top level gives an exhaustive list of all global options and a
13 few important module-specific ones, whereas, e.g.,
14 'texk/lcdf-typetools/configure --help'
15 also displays the 'lcdf-typetools' specific options, which are not shown
16 at the top level.
17
18 The help text also mentions several influential environment
19 variables, but for TeX Live it is better to specify them as assignments
20 on the command line.
21
22 The './Build' script used to make the binaries shipped with TeX Live
23 invokes the top-level 'configure' with a few additional options (see
24 Building). The defaults discussed below are those for the actual
25 'configure' script; invoking 'configure' via './Build' yields different
26 results.
27
28 Defaults for most options are set at the top level and propagated
29 explicitly to all subdirectories. Options specified on the command line
30 are checked for consistency but never modified.
31
32 7.1 Global configure options
33 ============================
34
35 Here are the global configure options.
36
37 7.1.1 '--disable-native-texlive-build'
38 --------------------------------------
39
40 If enabled (the default), build for a TL binary distribution as shipped
41 by the TeX user groups. This requires GNU 'make' and implies
42 '--enable-multiplatform' and '--enable-cxx-runtime-hack' (unless they
43 are explicitly disabled), and enforces '--disable-shared'.
44
45 If building TL for a GNU/Linux or other distribution, this should be
46 disabled and system versions of most libraries should be used (see
47 Distro builds).
48
49 A related option, '--enable-texlive-build', is automatically passed
50 to all subdirectories (and cannot be disabled). Subdirectories that can
51 also be built independently from the TL tree (such as 'utils/xindy' and
52 'texk/dvipng') but cooperate with TL can use this option to enable
53 TL-specific adaptations, such as installation paths.
54
55 7.1.2 '--prefix', '--bindir', ...
56 ---------------------------------
57
58 These standard Autoconf options specify various installation directories
59 as usual. For the complete list, see Installation directories.
60
61 Also as usual, all values are prefixed by the value of 'DESTDIR', if
62 set, on the 'make' command line (see Installation in a temporary
63 location: (automake)Staged Installs).
64
65 7.1.3 '--disable-largefile'
66 ---------------------------
67
68 Omit large file support (LFS), which is needed on most 32-bit Unix
69 systems for files with 2GB or more. Regardless of this option, the size
70 of 'DVI' and 'GF' files must always be <2GB, due to the file format
71 specifications.
72
73 With LFS, there is no fixed limit on the size of PDF files created by
74 'pdftex' or PostScript files created by 'dvips'.
75
76 7.1.4 '--disable-missing'
77 -------------------------
78
79 Immediately terminate the build process if a requested program or
80 feature must be disabled, e.g., due to missing libraries. This can help
81 when figuring out a specific (sub)set of modules to enable.
82
83 7.1.5 '--enable-compiler-warnings='LEVEL
84 ----------------------------------------
85
86 Enable various levels of compiler warnings for C, C++, and/or
87 Objective C: the LEVEL value can be one of: 'no min yes max all'. The
88 default is 'yes' in 'maintainer-mode' (see below) and 'min' otherwise.
89 This option defines the variables 'WARNING_[OBJ]C[XX]FLAGS', but these
90 variables are not consistently used in all library and program modules.
91 At present, these warning flags assume options from the GNU compilers.
92
93 7.1.6 '--enable-cxx-runtime-hack'
94 ---------------------------------
95
96 If enabled (as it is for the native TL build), when using 'g++', try to
97 statically link with 'libstdc++', thus improving portability of the
98 resulting binary. See Macros for compilers.
99
100 7.1.7 '--enable-maintainer-mode'
101 --------------------------------
102
103 Enable 'make' rules and dependencies not useful (and sometimes
104 confusing) to the casual user. This requires current versions of the
105 GNU build tools (see Build system tools), as it automatically rebuilds
106 infrastructure files as needed. See 'missing' and 'AM_MAINTAINER_MODE':
107 (automake)maintainer-mode.
108
109 7.1.8 '--enable-multiplatform'
110 ------------------------------
111
112 If enabled (as it is for the native TL build) and '--bindir=DIR' or
113 '--libdir=DIR' are not specified, install executables and libraries in
114 per-platform subdirectories of 'EPREFIX/bin' and 'EPREFIX/lib' where
115 EPREFIX is the value given or implied for 'exec_prefix'. In any case,
116 the values for 'bindir' and 'libdir' are automatically propagated to all
117 subdirectories.
118
119 7.1.9 '--enable-shared'
120 -----------------------
121
122 Build shared versions of the TeX-specific libraries such as
123 'libkpathsea'. This is not allowed for a native TL build (i.e.,
124 '--disable-native-texlive-build' must also be specified).
125
126 7.1.10 '--enable-silent-rules'
127 ------------------------------
128
129 Enable the use of less verbose build rules. When using GNU 'make' (or
130 any 'make' implementation supporting nested variable expansions), you
131 can specify 'V=1' on the 'make' command line to get more verbosity, or
132 'V=0' to get less, regardless of this option.
133
134 7.1.11 '--without-ln-s'
135 -----------------------
136
137 Required when using a system without a working 'ln -s' to build binaries
138 for a Unix-like system. However, 'make install' will not create
139 anything useful, and might fail.
140
141 7.1.12 '--without-x'
142 --------------------
143
144 Disable all programs using the X Window System.
145
146 7.2 Program-specific configure options
147 ======================================
148
149 Here are (some of) the program-specific 'configure' options.
150
151 7.2.1 '--enable-PROG', '--disable-PROG'
152 ---------------------------------------
153
154 Do or do not build and install the program(s) of module 'PROG'.
155
156 7.2.2 '--disable-all-pkgs'
157 --------------------------
158
159 Do not build any program modules by default--only those explicitly
160 enabled. This is useful when one wants to work on only a single
161 program, which is specified with an additional '--enable' option, e.g.,
162 '--enable-dvipdfm-x'. It's still simplest to check out and configure
163 the whole source tree, but at least only the program you are interested
164 in, and its dependencies, are built. See Build one package.
165
166 Without this option, all modules are built except those that are
167 explicitly disabled or specify 'disable' in their 'ac/withenable.ac'
168 fragment.
169
170 7.2.3 Configure options for 'texk/web2c'
171 ----------------------------------------
172
173 '--with-banner-add=STR'
174 Add 'STR' to the default version string (which is ''TeX Live YEAR'' or
175 ''Web2C YEAR'') appended to banner lines. This is ignored for a native
176 TL build, but distro builds should specify, e.g., '/SOMEDISTRO'.
177
178 '--with-editor=CMD'
179 Specify the command 'CMD' to invoke from the 'e' option of TeX and
180 friends, replacing the default 'vi +%d '%s'' for Unix or 'texworks
181 --position=%d "%s"' for Windows.
182
183 '--with-fontconfig-includes=DIR', '--with-fontconfig-libdir=DIR'
184 Building XeTeX on non-Mac systems requires the 'fontconfig' library
185 headers and code. If one or both of these options are given, the
186 required flags are derived from them; otherwise, they are determined via
187 'pkg-config' (if present).
188
189 '--with-mf-x-toolkit'
190 Use the X toolkit ('libXt') for Metafont (the default is to use the
191 lowest-level 'Xlib' support; it seems this has the best chance of
192 working across X installations nowadays).
193
194 '--disable-dump-share'
195 Make the 'fmt'/'base' dump files architecture dependent (somewhat faster
196 on LittleEndian architectures).
197
198 '--disable-ipc'
199 Disable TeX's '--ipc' option.
200
201 '--disable-mf-nowin'
202 Do not build a separate non-graphically-capable Metafont ('mf-nowin').
203
204 '--disable-tex', '--enable-etex', ...
205 Do not or do build the various TeX, Metafont, and MetaPost engines
206 (defaults are defined in the fragment 'texk/web2c/ac/web2c.ac').
207
208 '--disable-web-progs'
209 Do not build the original WEB programs 'bibtex', ..., 'weave'. Useful
210 if, e.g., you only want to (re)build some engines.
211
212 '--enable-auto-core'
213 This option causes TeX and Metafont to produce a core dump when a
214 particular hacky filename is encountered, for use in creating preloaded
215 binaries. This is rarely done nowadays.
216
217 '--enable-libtool-hack'
218 If enabled (which is the default for all platforms), prevents 'libtool'
219 from linking explicitly with dependencies of 'libfontconfig' such as
220 'libexpat'.
221
222 '--enable-*win'
223 Include various types of non-X window support for Metafont (EPSF output,
224 'mftalk', old graphics terminals, ...).
225
226 '--enable-tex-synctex', '--disable-etex-synctex', ...
227 Build the TeX engines with or without 'SyncTeX' support; ignored for a
228 native TeX Live build. Defaults are defined in 'texk/web2c/ac/web2c.ac'
229 (see Autoconf macros).
230
231 '--disable-synctex'
232 Do not build the 'SyncTeX' library and tool.
233
234 7.2.4 Configure options for 'texk/bibtex-x'
235 -------------------------------------------
236
237 The programs 'bibtex8' and 'bibtexu' have been merged into the module
238 'bibtex-x' (extended BibTeX).
239
240 '--disable-bibtex8'
241 Do not build the 'bibtex8' program.
242
243 '--disable-bibtexu'
244 Do not build the 'bibtexu' program (building 'bibtexu' requires 'ICU'
245 libraries).
246
247 7.2.5 Configure options for 'texk/dvipdfm-x'
248 --------------------------------------------
249
250 The former modules 'dvipdfmx' (extended DVI to PDF converter) and
251 'xdvipdfmx' (the same, as used by XeTeX) have been merged into
252 'dvipdfm-x' at the source level. Two separate binaries are still
253 created by default. In addition, 'dvipdfm' is created as a symlink to
254 'dvipdfmx', with backward-compatible (very slightly different) behavior.
255
256 '--disable-dvipdfmx'
257 Do not build the 'dvipdfmx' program or make the 'dvipdfm' symlink.
258
259 '--disable-xdvipdfmx'
260 Do not build the 'xdvipdfmx' program.
261
262 7.2.6 Configure options for 'texk/dvisvgm'
263 ------------------------------------------
264
265 '--with-system-libgs'
266 Build 'dvisvgm' using installed Ghostscript ('gs') headers and library
267 (not allowed for a native TL build). The default is to load the 'gs'
268 library at runtime if possible, else to disable support for PostScript
269 specials.
270
271 '--without-libgs'
272 Build 'dvisvgm' without PostScript support at all. Because the dynamic
273 loading just mentioned defeats all attempts at static linking, the
274 result can crash due to library incompatibilities, e.g., on CentOS 5.
275
276 '--with-libgs-includes=DIR', '--with-libgs-libdir=DIR'
277 Specify non-standard locations of the Ghostscript headers and library.
278
279 7.2.7 Configure options for 'texk/texlive'
280 ------------------------------------------
281
282 '--disable-linked-scripts'
283 Do not install the "linked scripts" (see Linked scripts), except for the
284 TL scripts required to run 'texlinks'.
285
286 7.2.8 Configure options for 'texk/xdvik'
287 ----------------------------------------
288
289 '--with-gs=FILENAME'
290 Hardwire the location of Ghostscript ('gs') as called by Xdvik.
291
292 '--with-xdvi-x-toolkit=KIT'
293 Use toolkit 'KIT' for 'xdvik', one of: 'motif xaw xaw3d neXtaw'. The
294 default is 'motif' if available, else 'xaw'.
295
296 '--enable-xi2-scrolling'
297 Use XInput 2.1 "smooth scrolling" if available (default: yes, except for
298 a native TL build).
299
300 7.2.9 Configure options for 'utils/xindy'
301 -----------------------------------------
302
303 '--enable-xindy-rules'
304 Build and install 'xindy' rules (default: yes, except for a native TL
305 build).
306
307 '--enable-xindy-docs'
308 Build and install 'xindy' documentation (default: yes, except for a
309 native TL build).
310
311 '--with-clisp-runtime=FILENAME'
312 Specifies the full path for the Clisp runtime file ('lisp.run' or
313 'lisp.exe') to be installed. When specified as 'default' (the default
314 for a native TL build) the path is determined by the Clisp executable;
315 the value 'system' (not allowed for a native TL build, but the default
316 otherwise) indicates that 'xindy' will use the installed version of
317 'clisp' (which must be identical to the one used to build 'xindy').
318
319 7.3 Library-specific configure options
320 ======================================
321
322 Here are (some of) the library-specific 'configure' options, starting
323 with this generic one:
324
325 '--with-system-LIB'
326
327 Use an installed (system) version of the library 'LIB'; this option
328 exists for most libraries, but is not allowed for a native TL build.
329 Using a system version implies also using the system versions of all
330 libraries that LIB depends on.
331
332 For many libraries '--with-LIB-includes=DIR' and
333 '--with-LIB-libdir=DIR' can specify non-standard search locations;
334 others use 'pkg-config' or similar to determine the required flags.
335
336 The top-level 'configure' script performs a consistency check for all
337 required system libraries and bails out if tests fail.
338
339 7.3.1 Configure options for 'kpathsea'
340 --------------------------------------
341
342 '--enable-CMD-default', '--disable-CMD-default'
343 Determine the compile time default for whether or not to run CMD, which
344 is one of:
345 'mkocp'
346 (Omega compiled translation process file)
347 'mkofm'
348 (Omega font metrics file)
349 'mktexfmt'
350 (format/base dump file)
351 'mktexmf'
352 (Metafont source)
353 'mktexpk'
354 (PK bitmap font)
355 'mktextex'
356 (TeX source)
357 'mktextfm'
358 (TFM file)
359
360 to generate the specified type of file dynamically. The default can be
361 overridden by the user in any case (see kpathsea library).
362
363 7.4 Variables for configure
364 ===========================
365
366 The values for these variables can be specified as 'configure' arguments
367 of the form 'VAR=VALUE'. They can also be defined in the environment,
368 but that might not work for cross compilations.
369
370 'CC'
371 'CXX'
372 'CPPFLAGS'
373 And plenty more. As usual with Autoconf, these variables specify
374 the name (or full path) of compilers, preprocessor flags, and
375 similar. See (autoconf)Preset Output Variables.
376
377 'CLISP'
378 Name (or full path) of the 'clisp' executable, used to build
379 'xindy'.
380
381 'FT2_CONFIG'
382 'ICU_CONFIG'
383 'PKG_CONFIG'
384 These specify the name (or path) for the 'freetype-config',
385 'icu-config', and 'pkg-config' commands used to determine the flags
386 required for system versions of 'libfreetype', the ICU libraries,
387 and other libraries, respectively.
388
389 'KPSEWHICH'
390 Name (or path) of an installed 'kpsewhich' binary, used by 'make
391 check' to determine the location of, e.g., 'cmbx10.tfm'.
392
393 'MAKE'
394 'SED'
395 And more. Name (or path) of the 'make', 'sed', and similar
396 programs; used at the top level and propagated to all
397 subdirectories.
398
399 'PERL'
400 'LATEX'
401 'PDFLATEX'
402 Name (or full path) for the 'perl', 'latex', and 'pdflatex'
403 commands used, e.g., to build the 'xindy' documentation.
404