Annotation of mandoc/configure.local.example, Revision 1.14.2.9
1.14.2.9! schwarze 1: # $Id: configure.local.example,v 1.14.2.8 2017/02/21 17:04:04 schwarze Exp $
1.1 schwarze 2: #
1.14.2.6 schwarze 3: # Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org>
1.1 schwarze 4: #
5: # Permission to use, copy, modify, and distribute this software for any
6: # purpose with or without fee is hereby granted, provided that the above
7: # copyright notice and this permission notice appear in all copies.
8: #
9: # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10: # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11: # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12: # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13: # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14: # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15: # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16:
17: # For all settings documented in this file, there are reasonable
18: # defaults and/or the ./configure script attempts autodetection.
19: # Consequently, you only need to create a file ./configure.local
20: # and put any of these settings into it if ./configure autodetection
21: # fails or if you want to make different choices for other reasons.
22:
23: # If autodetection fails, please tell <tech@mdocml.bsd.lv>.
24:
25: # We recommend that you write ./configure.local from scratch and
26: # only put the lines there you need. This file contains examples.
27: # It is not intended as a template to be copied as a whole.
28:
29: # --- user settings relevant for all builds ----------------------------
30:
31: # For -Tutf8 and -Tlocale operation, mandoc(1) requires <locale.h>
32: # providing setlocale(3) and <wchar.h> providing wcwidth(3) and
33: # putwchar(3) with a wchar_t storing UCS-4 values. Theoretically,
34: # the latter should be tested with the __STDC_ISO_10646__ feature
35: # macro. In practice, many <wchar.h> headers do not provide that
36: # macro even though they treat wchar_t as UCS-4. So the automatic
37: # test only checks that wchar_t is wide enough, that is, at least
38: # four bytes.
39:
40: # The following line forces multi-byte support.
41: # If your C library does not treat wchar_t as UCS-4, the UTF-8 output
42: # mode will print garbage.
43:
44: HAVE_WCHAR=1
45:
46: # The following line disables multi-byte support.
47: # The output modes -Tutf8 and -Tlocale will be the same as -Tascii.
48:
49: HAVE_WCHAR=0
1.14.2.2 schwarze 50:
51: # For -Tutf8 mode, mandoc needs to set an arbitrary locale having
52: # a UTF-8 character set. If autodetection of a suitable locale
53: # fails or selects an undesirable locale, you can manually choose
54: # the locale for -Tutf8 mode:
55:
56: UTF8_LOCALE=en_US.UTF-8
1.7 schwarze 57:
58: # When man(1) or apropos(1) is called without -m and -M options,
59: # MANPATH is not set in the environment, man.conf(5) is not available
60: # and manpath(1) not used, manuals are searched for in the following
61: # directory trees by default.
62:
63: MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
1.1 schwarze 64:
65: # In manual pages written in the mdoc(7) language, the operating system
66: # version is displayed in the page footer line. If an operating system
67: # is specified as an argument to the .Os macro, that is always used.
68: # If the .Os macro has no argument and an operation system is specified
69: # with the mandoc(1) -Ios= command line option, that is used.
70: # Otherwise, the uname(3) library function is called at runtime to find
71: # the name of the operating system.
72: # If you do not want uname(3) to be called but instead want a fixed
73: # string to be used, use the following line:
74:
1.14.2.7 schwarze 75: OSNAME="OpenBSD 6.0"
1.1 schwarze 76:
77: # The following installation directories are used.
78: # It is possible to set only one or a few of these variables,
79: # there is no need to copy the whole block.
80: # Even if you set PREFIX to something else, the other variables
81: # pick it up without copying them all over.
82:
83: PREFIX="/usr/local"
84: BINDIR="${PREFIX}/bin"
85: SBINDIR="${PREFIX}/sbin"
86: INCLUDEDIR="${PREFIX}/include/mandoc"
87: LIBDIR="${PREFIX}/lib/mandoc"
88: MANDIR="${PREFIX}/man"
1.14.2.9! schwarze 89:
! 90: # If BINDIR and SBINDIR are not subdirectories of the same parent
! 91: # directory or if the basename(1) of BINDIR differs from "bin",
! 92: # the relative path from SBINDIR to BINDIR is also needed.
! 93: # The default is:
! 94:
! 95: BIN_FROM_SBIN="../bin"
1.1 schwarze 96:
1.5 schwarze 97: # The man(1) utility needs to know where the manuals reside.
98: # We know of two ways to tell it: via manpath(1) or man.conf(5).
99: # The latter is used by OpenBSD and NetBSD, the former by most
100: # other systems.
101:
102: # Force usage of manpath(1).
103: # If it is not installed or not operational,
104: # man(1), makewhatis(8), and apropos(1) will not work properly.
105: HAVE_MANPATH=1
106:
107: # Force usage of man.conf(5).
108: HAVE_MANPATH=0
1.8 schwarze 109:
110: # Some distributions may want to avoid naming conflicts
111: # with the configuration files of other man(1) implementations.
112: # This changes the name of the installed section 5 manual page as well.
113: MANM_MANCONF="mandoc.conf" # default is "man.conf"
1.5 schwarze 114:
1.2 schwarze 115: # Some distributions may want to avoid naming conflicts among manuals.
116: # If you want to change the names of installed section 7 manual pages,
117: # the following alternative names are suggested.
118: # The suffix ".7" will automatically be appended.
119: # It is possible to set only one or a few of these variables,
120: # there is no need to copy the whole block.
121:
122: MANM_MAN="mandoc_man" # default is "man"
123: MANM_MDOC="mandoc_mdoc" # default is "mdoc"
124: MANM_ROFF="mandoc_roff" # default is "roff"
125: MANM_EQN="mandoc_eqn" # default is "eqn"
126: MANM_TBL="mandoc_tbl" # default is "tbl"
127:
1.5 schwarze 128: # Some distributions may want to avoid naming conflicts
1.9 schwarze 129: # with other man(1) and soelim(1) utilities.
130: # If you want to change the names of binary programs,
131: # the following alternative names are suggested.
132: # Using different names is possible as well.
133: # This changes the names of the installed section 1 manual pages as well.
1.5 schwarze 134:
135: BINM_MAN=mman # default is "man"
1.9 schwarze 136: BINM_SOELIM=msoelim # default is "soelim"
1.14.2.6 schwarze 137:
138: # Some distributions do not want hardlinks
139: # between installed binary programs.
140: # Set the following variable to use symbolic links instead.
141: # It is also used for links between manual pages.
142: # It is only used by the install* targets.
143: # When using this, DESTDIR must be empty or an absolute path.
144:
145: LN="ln -sf" # default is "ln -f"
1.5 schwarze 146:
1.11 schwarze 147: # Before falling back to the bundled version of the ohash(3) hashing
148: # library, autoconfiguration tries the following linker flag to
149: # link against your system version. If you do have ohash(3) on
150: # your system but it needs different linker flags, set the following
151: # variable to specify the required linker flags.
152:
153: LD_OHASH="-lutil"
154:
1.14.2.1 schwarze 155: # Some platforms may need an additional linker flag for nanosleep(2).
156: # If none is needed or it is -lrt, it is autodetected.
157: # Otherwise, set the following variable.
1.11 schwarze 158:
1.14.2.1 schwarze 159: LD_NANOSLEEP="-lrt"
160:
161: # Some platforms might need additional linker flags to link against
162: # libmandoc that are not autodetected, though no such cases are
163: # currently known.
164:
165: LDADD="-lm"
1.12 schwarze 166:
167: # Some systems may want to set additional linker flags for all the
168: # binaries, not only for those using libmandoc, for example for
169: # hardening options.
170:
171: LDFLAGS="-Wl,-z,relro"
1.11 schwarze 172:
1.1 schwarze 173: # It is possible to change the utility program used for installation
174: # and the modes files are installed with. The defaults are:
175:
176: INSTALL="install"
177: INSTALL_PROGRAM="${INSTALL} -m 0555"
178: INSTALL_LIB="${INSTALL} -m 0444"
179: INSTALL_MAN="${INSTALL} -m 0444"
180: INSTALL_DATA="${INSTALL} -m 0444"
181:
182: # --- user settings related to database support ------------------------
183:
1.11 schwarze 184: # Autoconfiguration tries the following linker flags to find the
185: # SQLite3 library installed on your system. If none of these work,
186: # set the following variable to specify the required linker flags.
187:
188: LD_SQLITE3="-lsqlite3"
189: LD_SQLITE3="-L/usr/local/lib -lsqlite3"
1.1 schwarze 190:
191: # When library autodetection decides to use -L/usr/local/lib,
192: # -I/usr/local/include is automatically added to CFLAGS.
1.11 schwarze 193: # If you manually set LD_SQLITE3 to something including -L/usr/local/lib,
1.1 schwarze 194: # chances are you will also need the following line:
195:
196: CFLAGS="${CFLAGS} -I/usr/local/include"
197:
1.2 schwarze 198: # Some distributions may want to avoid naming conflicts
1.5 schwarze 199: # with another implementation of apropos(1) and makewhatis(8).
200: # If you want to change the names of the binary programs,
1.2 schwarze 201: # the following alternative names are suggested.
202: # Using other names is possible as well.
203: # This changes the names of the installed section 1 and section 8
204: # manual pages as well.
1.5 schwarze 205: # It is possible to set only one or two of these variables,
1.2 schwarze 206: # there is no need to copy the whole block.
207:
208: BINM_APROPOS=mapropos # default is "apropos"
209: BINM_WHATIS=mwhatis # default is "whatis"
210: BINM_MAKEWHATIS=mandocdb # default is "makewhatis"
1.3 schwarze 211:
212: # When using the "homebrew" package manager on Mac OS X, the actual
213: # manuals are located in a so-called "cellar" and only symlinked
214: # into the manual trees. To allow mandoc to follow such symlinks,
215: # you have to specify the physical location of the cellar as returned
216: # by realpath(3), for example:
217:
1.4 schwarze 218: PREFIX="/usr/local"
219: HOMEBREWDIR="${PREFIX}/Cellar"
1.1 schwarze 220:
1.14 schwarze 221: # --- user settings related to man.cgi ---------------------------------
1.1 schwarze 222:
223: # By default, building man.cgi(8) is disabled. To enable it, copy
224: # cgi.h.example to cgi.h, edit it, and use the following line.
225:
226: BUILD_CGI=1
227:
228: # The remaining settings in this section are only relevant if BUILD_CGI
229: # is enabled. Otherwise, they have no effect either way.
230:
231: # By default, man.cgi(8) is linked statically.
232: # Some systems do not support static linking, for example Mac OS X.
233: # In that case, use the following line:
234:
235: STATIC=
236:
237: # Some systems, for example Linux, require -pthread for static linking:
238:
239: STATIC="-static -pthread"
240:
241: # Some directories.
242: # This works just like PREFIX, see above.
243:
244: WWWPREFIX="/var/www"
245: HTDOCDIR="${WWWPREFIX}/htdocs"
246: CGIBINDIR="${WWWPREFIX}/cgi-bin"
247:
248: # --- settings that rarely need to be touched --------------------------
249:
250: # Do not set these variables unless you really need to.
251:
252: # You can manually override the compiler to be used.
253: # But that's rarely useful because ./configure asks your make(1)
254: # which compiler to use, and that answer will hardly be wrong.
255:
256: CC=cc
257:
1.13 schwarze 258: # IBM AIX may need:
259:
260: CC=xlc
261:
1.1 schwarze 262: # The default compiler flags are:
263:
264: CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
1.13 schwarze 265:
266: # IBM AIX xlc does not support -W; in that case, please use:
267:
268: CFLAGS="-g"
1.1 schwarze 269:
270: # In rare cases, it may be required to skip individual automatic tests.
271: # Each of the following variables can be set to 0 (test will not be run
272: # and will be regarded as failed) or 1 (test will not be run and will
273: # be regarded as successful).
274:
275: HAVE_DIRENT_NAMLEN=0
1.14.2.4 schwarze 276: HAVE_EFTYPE=0
1.11 schwarze 277: HAVE_ERR=0
1.14.2.5 schwarze 278: HAVE_FTS=0 # Setting this implies HAVE_FTS_COMPARE_CONST=0.
279: HAVE_FTS_COMPARE_CONST=0 # Setting this implies HAVE_FTS=1.
1.11 schwarze 280: HAVE_GETLINE=0
1.1 schwarze 281: HAVE_GETSUBOPT=0
1.11 schwarze 282: HAVE_ISBLANK=0
283: HAVE_MKDTEMP=0
1.1 schwarze 284: HAVE_MMAP=0
1.14.2.3 schwarze 285: HAVE_PATH_MAX=0
1.11 schwarze 286: HAVE_PLEDGE=0
287: HAVE_PROGNAME=0
1.1 schwarze 288: HAVE_REALLOCARRAY=0
1.11 schwarze 289: HAVE_REWB_BSD=0
290: HAVE_REWB_SYSV=0
1.1 schwarze 291: HAVE_STRCASESTR=0
1.11 schwarze 292: HAVE_STRINGLIST=0
1.1 schwarze 293: HAVE_STRLCAT=0
294: HAVE_STRLCPY=0
295: HAVE_STRPTIME=0
296: HAVE_STRSEP=0
1.6 schwarze 297: HAVE_STRTONUM=0
1.11 schwarze 298: HAVE_VASPRINTF=0
299: HAVE_WCHAR=0
1.1 schwarze 300:
301: HAVE_SQLITE3_ERRSTR=0
302: HAVE_OHASH=0
CVSweb