1*c1c95addSBrooks Davis# $Id: configure.local.example,v 1.45 2023/10/19 11:45:42 schwarze Exp $ 261d06d6bSBaptiste Daroussin# 3*c1c95addSBrooks Davis# Copyright (c) 2014-2022 Ingo Schwarze <schwarze@openbsd.org> 461d06d6bSBaptiste Daroussin# 561d06d6bSBaptiste Daroussin# Permission to use, copy, modify, and distribute this software for any 661d06d6bSBaptiste Daroussin# purpose with or without fee is hereby granted, provided that the above 761d06d6bSBaptiste Daroussin# copyright notice and this permission notice appear in all copies. 861d06d6bSBaptiste Daroussin# 961d06d6bSBaptiste Daroussin# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 1061d06d6bSBaptiste Daroussin# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1161d06d6bSBaptiste Daroussin# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1261d06d6bSBaptiste Daroussin# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1361d06d6bSBaptiste Daroussin# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1461d06d6bSBaptiste Daroussin# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1561d06d6bSBaptiste Daroussin# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1661d06d6bSBaptiste Daroussin 1761d06d6bSBaptiste Daroussin# For all settings documented in this file, there are reasonable 1861d06d6bSBaptiste Daroussin# defaults and/or the ./configure script attempts autodetection. 1961d06d6bSBaptiste Daroussin# Consequently, you only need to create a file ./configure.local 2061d06d6bSBaptiste Daroussin# and put any of these settings into it if ./configure autodetection 2161d06d6bSBaptiste Daroussin# fails or if you want to make different choices for other reasons. 2261d06d6bSBaptiste Daroussin 2361d06d6bSBaptiste Daroussin# If autodetection fails, please tell <tech@mandoc.bsd.lv>. 2461d06d6bSBaptiste Daroussin 2561d06d6bSBaptiste Daroussin# We recommend that you write ./configure.local from scratch and 2661d06d6bSBaptiste Daroussin# only put the lines there you need. This file contains examples. 2761d06d6bSBaptiste Daroussin# It is not intended as a template to be copied as a whole. 2861d06d6bSBaptiste Daroussin 2961d06d6bSBaptiste Daroussin# --- user settings relevant for all builds ---------------------------- 3061d06d6bSBaptiste Daroussin 316d38604fSBaptiste Daroussin# By default, "cc" is used as the C compiler, but it can be overridden. 326d38604fSBaptiste Daroussin# For example, the system compiler in SunOS 5.9 may not provide <stdint.h>, 336d38604fSBaptiste Daroussin# which may require this line: 346d38604fSBaptiste DaroussinCC=gcc 356d38604fSBaptiste Daroussin 366d38604fSBaptiste Daroussin# IBM AIX may need: 376d38604fSBaptiste DaroussinCC=xlc 386d38604fSBaptiste Daroussin 396d38604fSBaptiste Daroussin# By default, "ar" is used as the library archive builder, but it 406d38604fSBaptiste Daroussin# can be overridden. For example, NixOS may not have ar(1) in the 416d38604fSBaptiste Daroussin# PATH, but may want to specify an absolute path instead. 426d38604fSBaptiste DaroussinAR=ar 436d38604fSBaptiste Daroussin 4461d06d6bSBaptiste Daroussin# For -Tutf8 and -Tlocale operation, mandoc(1) requires <locale.h> 4561d06d6bSBaptiste Daroussin# providing setlocale(3) and <wchar.h> providing wcwidth(3) and 4661d06d6bSBaptiste Daroussin# putwchar(3) with a wchar_t storing UCS-4 values. Theoretically, 4761d06d6bSBaptiste Daroussin# the latter should be tested with the __STDC_ISO_10646__ feature 4861d06d6bSBaptiste Daroussin# macro. In practice, many <wchar.h> headers do not provide that 4961d06d6bSBaptiste Daroussin# macro even though they treat wchar_t as UCS-4. So the automatic 5061d06d6bSBaptiste Daroussin# test only checks that wchar_t is wide enough, that is, at least 5161d06d6bSBaptiste Daroussin# four bytes. 5261d06d6bSBaptiste Daroussin 5361d06d6bSBaptiste Daroussin# The following line forces multi-byte support. 5461d06d6bSBaptiste Daroussin# If your C library does not treat wchar_t as UCS-4, the UTF-8 output 5561d06d6bSBaptiste Daroussin# mode will print garbage. 5661d06d6bSBaptiste Daroussin 5761d06d6bSBaptiste DaroussinHAVE_WCHAR=1 5861d06d6bSBaptiste Daroussin 5961d06d6bSBaptiste Daroussin# The following line disables multi-byte support. 6061d06d6bSBaptiste Daroussin# The output modes -Tutf8 and -Tlocale will be the same as -Tascii. 6161d06d6bSBaptiste Daroussin 6261d06d6bSBaptiste DaroussinHAVE_WCHAR=0 6361d06d6bSBaptiste Daroussin 6461d06d6bSBaptiste Daroussin# For -Tutf8 mode, mandoc needs to set an arbitrary locale having 6561d06d6bSBaptiste Daroussin# a UTF-8 character set. If autodetection of a suitable locale 6661d06d6bSBaptiste Daroussin# fails or selects an undesirable locale, you can manually choose 6761d06d6bSBaptiste Daroussin# the locale for -Tutf8 mode: 6861d06d6bSBaptiste Daroussin 6961d06d6bSBaptiste DaroussinUTF8_LOCALE=en_US.UTF-8 7061d06d6bSBaptiste Daroussin 7161d06d6bSBaptiste Daroussin# When man(1) or apropos(1) is called without -m and -M options, 7261d06d6bSBaptiste Daroussin# MANPATH is not set in the environment, and man.conf(5) is not 7361d06d6bSBaptiste Daroussin# available, manuals are searched for in the following directory 7461d06d6bSBaptiste Daroussin# trees by default. 7561d06d6bSBaptiste Daroussin 7661d06d6bSBaptiste DaroussinMANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man" 7761d06d6bSBaptiste Daroussin 7861d06d6bSBaptiste Daroussin# Validation of cross references with mandoc -Tlint only looks 7961d06d6bSBaptiste Daroussin# for manual pages in the following directories: 8061d06d6bSBaptiste Daroussin 8161d06d6bSBaptiste DaroussinMANPATH_BASE="/usr/share/man:/usr/X11R6/man" 8261d06d6bSBaptiste Daroussin 837295610fSBaptiste Daroussin# When man(1) is called with the -S option and no manual page is 847295610fSBaptiste Daroussin# found matching the requested name and the requested architecture, 857295610fSBaptiste Daroussin# it tries to figure out whether the requested architecture is valid 867295610fSBaptiste Daroussin# for the present operating system. Normally, ./configure detects 877295610fSBaptiste Daroussin# the operating system using uname(1). If that fails or is not 887295610fSBaptiste Daroussin# desired, either of the following lines can be used: 897295610fSBaptiste Daroussin 907295610fSBaptiste DaroussinOSENUM=MANDOC_OS_NETBSD 917295610fSBaptiste DaroussinOSENUM=MANDOC_OS_OPENBSD 927295610fSBaptiste DaroussinOSENUM=MANDOC_OS_OTHER 937295610fSBaptiste Daroussin 9461d06d6bSBaptiste Daroussin# In manual pages written in the mdoc(7) language, the operating system 9561d06d6bSBaptiste Daroussin# version is displayed in the page footer line. If an operating system 9661d06d6bSBaptiste Daroussin# is specified as an argument to the .Os macro, that is always used. 9761d06d6bSBaptiste Daroussin# If the .Os macro has no argument and an operation system is specified 9861d06d6bSBaptiste Daroussin# with the mandoc(1) -Ios= command line option, that is used. 9961d06d6bSBaptiste Daroussin# Otherwise, the uname(3) library function is called at runtime to find 10061d06d6bSBaptiste Daroussin# the name of the operating system. 10161d06d6bSBaptiste Daroussin# If you do not want uname(3) to be called but instead want a fixed 10261d06d6bSBaptiste Daroussin# string to be used, use the following line: 10361d06d6bSBaptiste Daroussin 1046d38604fSBaptiste DaroussinOSNAME="OpenBSD 7.0" 10561d06d6bSBaptiste Daroussin 10661d06d6bSBaptiste Daroussin# The following installation directories are used. 10761d06d6bSBaptiste Daroussin# It is possible to set only one or a few of these variables, 10861d06d6bSBaptiste Daroussin# there is no need to copy the whole block. 10961d06d6bSBaptiste Daroussin# Even if you set PREFIX to something else, the other variables 11061d06d6bSBaptiste Daroussin# pick it up without copying them all over. 111*c1c95addSBrooks Davis# MISCDIR is only used for installing the file mandoc.css. 112*c1c95addSBrooks Davis# That is important because users of "mandoc -T html" often need it 113*c1c95addSBrooks Davis# even if they are not using man.cgi(8), see mandoc(1) for details. 11461d06d6bSBaptiste Daroussin 11561d06d6bSBaptiste DaroussinPREFIX="/usr/local" 11661d06d6bSBaptiste DaroussinBINDIR="${PREFIX}/bin" 11761d06d6bSBaptiste DaroussinSBINDIR="${PREFIX}/sbin" 11861d06d6bSBaptiste DaroussinMANDIR="${PREFIX}/man" 119*c1c95addSBrooks DavisMISCDIR="${PREFIX}/share/misc" 12061d06d6bSBaptiste Daroussin 12161d06d6bSBaptiste Daroussin# If BINDIR and SBINDIR are not subdirectories of the same parent 12261d06d6bSBaptiste Daroussin# directory or if the basename(1) of BINDIR differs from "bin", 12361d06d6bSBaptiste Daroussin# the relative path from SBINDIR to BINDIR is also needed. 12461d06d6bSBaptiste Daroussin# The default is: 12561d06d6bSBaptiste Daroussin 12661d06d6bSBaptiste DaroussinBIN_FROM_SBIN="../bin" 12761d06d6bSBaptiste Daroussin 12861d06d6bSBaptiste Daroussin# Some distributions may want to avoid naming conflicts 12961d06d6bSBaptiste Daroussin# with the configuration files of other man(1) implementations. 13061d06d6bSBaptiste Daroussin# This changes the name of the installed section 5 manual page as well. 13161d06d6bSBaptiste Daroussin 13261d06d6bSBaptiste DaroussinMANM_MANCONF="mandoc.conf" # default is "man.conf" 13361d06d6bSBaptiste Daroussin 13461d06d6bSBaptiste Daroussin# Some distributions may want to avoid naming conflicts among manuals. 13561d06d6bSBaptiste Daroussin# If you want to change the names of installed section 7 manual pages, 13661d06d6bSBaptiste Daroussin# the following alternative names are suggested. 13761d06d6bSBaptiste Daroussin# The suffix ".7" will automatically be appended. 13861d06d6bSBaptiste Daroussin# It is possible to set only one or a few of these variables, 13961d06d6bSBaptiste Daroussin# there is no need to copy the whole block. 14061d06d6bSBaptiste Daroussin 14161d06d6bSBaptiste DaroussinMANM_MAN="mandoc_man" # default is "man" 14261d06d6bSBaptiste DaroussinMANM_MDOC="mandoc_mdoc" # default is "mdoc" 14361d06d6bSBaptiste DaroussinMANM_ROFF="mandoc_roff" # default is "roff" 14461d06d6bSBaptiste DaroussinMANM_EQN="mandoc_eqn" # default is "eqn" 14561d06d6bSBaptiste DaroussinMANM_TBL="mandoc_tbl" # default is "tbl" 14661d06d6bSBaptiste Daroussin 14761d06d6bSBaptiste Daroussin# Some distributions may want to avoid naming conflicts with 14861d06d6bSBaptiste Daroussin# other man(1), apropos(1), makewhatis(8), or soelim(1) utilities. 14961d06d6bSBaptiste Daroussin# If you want to change the names of binary programs, 15061d06d6bSBaptiste Daroussin# the following alternative names are suggested. 15161d06d6bSBaptiste Daroussin# Using different names is possible as well. 15261d06d6bSBaptiste Daroussin# This changes the names of the installed section 1 and section 8 15361d06d6bSBaptiste Daroussin# manual pages as well. 15461d06d6bSBaptiste Daroussin# It is possible to set only one or two of these variables, 15561d06d6bSBaptiste Daroussin# there is no need to copy the whole block. 15661d06d6bSBaptiste Daroussin 15761d06d6bSBaptiste DaroussinBINM_MAN=mman # default is "man" 15861d06d6bSBaptiste DaroussinBINM_APROPOS=mapropos # default is "apropos" 15961d06d6bSBaptiste DaroussinBINM_WHATIS=mwhatis # default is "whatis" 16061d06d6bSBaptiste DaroussinBINM_MAKEWHATIS=mandocdb # default is "makewhatis" 16161d06d6bSBaptiste DaroussinBINM_SOELIM=msoelim # default is "soelim" 16261d06d6bSBaptiste Daroussin 1636d38604fSBaptiste Daroussin# If less(1) is available, it is used as the default manual pager. 1646d38604fSBaptiste Daroussin# Otherwise, more(1) is used: its existence is required by POSIX. 1656d38604fSBaptiste Daroussin# It is possible to force using a different default pager, either 1666d38604fSBaptiste Daroussin# by giving the name of a program found in the PATH, or by giving 1676d38604fSBaptiste Daroussin# an absolute path. 1686d38604fSBaptiste Daroussin 1696d38604fSBaptiste DaroussinBINM_PAGER=pg # default is "less" or "more" 1706d38604fSBaptiste Daroussin 17161d06d6bSBaptiste Daroussin# Some distributions do not want hardlinks 17261d06d6bSBaptiste Daroussin# between installed binary programs. 17361d06d6bSBaptiste Daroussin# Set the following variable to use symbolic links instead. 17461d06d6bSBaptiste Daroussin# It is also used for links between manual pages. 17561d06d6bSBaptiste Daroussin# It is only used by the install* targets. 17661d06d6bSBaptiste Daroussin# When using this, DESTDIR must be empty or an absolute path. 17761d06d6bSBaptiste Daroussin 17861d06d6bSBaptiste DaroussinLN="ln -sf" # default is "ln -f" 17961d06d6bSBaptiste Daroussin 18061d06d6bSBaptiste Daroussin# Before falling back to the bundled version of the ohash(3) hashing 18161d06d6bSBaptiste Daroussin# library, autoconfiguration tries the following linker flag to 18261d06d6bSBaptiste Daroussin# link against your system version. If you do have ohash(3) on 18361d06d6bSBaptiste Daroussin# your system but it needs different linker flags, set the following 18461d06d6bSBaptiste Daroussin# variable to specify the required linker flags. 18561d06d6bSBaptiste Daroussin 18661d06d6bSBaptiste DaroussinLD_OHASH="-lutil" 18761d06d6bSBaptiste Daroussin 18861d06d6bSBaptiste Daroussin# Some platforms may need an additional linker flag for nanosleep(2). 18961d06d6bSBaptiste Daroussin# If none is needed or it is -lrt, it is autodetected. 19061d06d6bSBaptiste Daroussin# Otherwise, set the following variable. 19161d06d6bSBaptiste Daroussin 19261d06d6bSBaptiste DaroussinLD_NANOSLEEP="-lrt" 19361d06d6bSBaptiste Daroussin 19461d06d6bSBaptiste Daroussin# Some platforms may need an additional linker flag for recvmsg(2). 19561d06d6bSBaptiste Daroussin# If none is needed or it is -lsocket, it is autodetected. 19661d06d6bSBaptiste Daroussin# Otherwise, set the following variable. 19761d06d6bSBaptiste Daroussin 19861d06d6bSBaptiste DaroussinLD_RECVMSG="-lsocket" 19961d06d6bSBaptiste Daroussin 20061d06d6bSBaptiste Daroussin# Some platforms might need additional linker flags to link against 20161d06d6bSBaptiste Daroussin# libmandoc that are not autodetected, though no such cases are 20261d06d6bSBaptiste Daroussin# currently known. 20361d06d6bSBaptiste Daroussin 20461d06d6bSBaptiste DaroussinLDADD="-lm" 20561d06d6bSBaptiste Daroussin 20661d06d6bSBaptiste Daroussin# Some systems may want to set additional linker flags for all the 20761d06d6bSBaptiste Daroussin# binaries, not only for those using libmandoc, for example for 20861d06d6bSBaptiste Daroussin# hardening options. 20961d06d6bSBaptiste Daroussin 21061d06d6bSBaptiste DaroussinLDFLAGS="-Wl,-z,relro" 21161d06d6bSBaptiste Daroussin 21261d06d6bSBaptiste Daroussin# It is possible to change the utility program used for installation 21361d06d6bSBaptiste Daroussin# and the modes files are installed with. The defaults are: 21461d06d6bSBaptiste Daroussin 21561d06d6bSBaptiste DaroussinINSTALL="install" 21661d06d6bSBaptiste DaroussinINSTALL_PROGRAM="${INSTALL} -m 0555" 21761d06d6bSBaptiste DaroussinINSTALL_LIB="${INSTALL} -m 0444" 21861d06d6bSBaptiste DaroussinINSTALL_MAN="${INSTALL} -m 0444" 21961d06d6bSBaptiste DaroussinINSTALL_DATA="${INSTALL} -m 0444" 22061d06d6bSBaptiste Daroussin 2216d38604fSBaptiste Daroussin# By default, makewhatis(8) can only read from the paths passed on the 2226d38604fSBaptiste Daroussin# command line or configured in man.conf(5). 2236d38604fSBaptiste Daroussin# But some package managers on some operating systems store manual pages 2246d38604fSBaptiste Daroussin# in separate "cellar" or "store" directories and only symlink them 2256d38604fSBaptiste Daroussin# into the manual trees. 2266d38604fSBaptiste Daroussin# To support one or more such package managers, give makewhatis(8) 2276d38604fSBaptiste Daroussin# read access to the cellars and stores on your system, in the form 2286d38604fSBaptiste Daroussin# of a colon-separated path: 22961d06d6bSBaptiste Daroussin 2306d38604fSBaptiste Daroussin# Homebrow package manager on Mac OS X: 23161d06d6bSBaptiste DaroussinPREFIX="/usr/local" 2326d38604fSBaptiste DaroussinREAD_ALLOWED_PATH="${PREFIX}/Cellar" 2336d38604fSBaptiste Daroussin 2346d38604fSBaptiste Daroussin# Nix package manager and/or NixOS Linux distribution: 2356d38604fSBaptiste DaroussinREAD_ALLOWED_PATH="/nix/store" 2366d38604fSBaptiste Daroussin 2376d38604fSBaptiste Daroussin# GNU Guix package manager and/or GNU Guix Linux distribution: 2386d38604fSBaptiste DaroussinREAD_ALLOWED_PATH="/gnu/store" 2396d38604fSBaptiste Daroussin 2406d38604fSBaptiste Daroussin# If multiple package managers are used concurrently: 2416d38604fSBaptiste DaroussinPREFIX="/usr/local" 2426d38604fSBaptiste DaroussinREAD_ALLOWED_PATH="/nix/store:${PREFIX}/Cellar" 24361d06d6bSBaptiste Daroussin 24461d06d6bSBaptiste Daroussin# --- user settings for the mandoc(3) library -------------------------- 24561d06d6bSBaptiste Daroussin 24661d06d6bSBaptiste Daroussin# By default, libmandoc.a is not installed. It is almost never needed 24761d06d6bSBaptiste Daroussin# because there is almost no non-mandoc software out there using this 24861d06d6bSBaptiste Daroussin# library. The one notable exception is NetBSD apropos(1). 24961d06d6bSBaptiste Daroussin# So, when building for the NetBSD base system - but not for NetBSD 25061d06d6bSBaptiste Daroussin# ports nor for pkgsrc! - you may want the following: 25161d06d6bSBaptiste Daroussin 25261d06d6bSBaptiste DaroussinINSTALL_LIBMANDOC=1 25361d06d6bSBaptiste Daroussin 25461d06d6bSBaptiste Daroussin# The following settings are only used when INSTALL_LIBMANDOC is set. 25561d06d6bSBaptiste Daroussin 25661d06d6bSBaptiste DaroussinINCLUDEDIR="${PREFIX}/include/mandoc" 25761d06d6bSBaptiste DaroussinLIBDIR="${PREFIX}/lib/mandoc" 25861d06d6bSBaptiste Daroussin 25961d06d6bSBaptiste Daroussin# --- user settings related to man.cgi --------------------------------- 26061d06d6bSBaptiste Daroussin 26161d06d6bSBaptiste Daroussin# By default, building man.cgi(8) is disabled. To enable it, copy 26261d06d6bSBaptiste Daroussin# cgi.h.example to cgi.h, edit it, and use the following line. 26361d06d6bSBaptiste Daroussin 26461d06d6bSBaptiste DaroussinBUILD_CGI=1 26561d06d6bSBaptiste Daroussin 26661d06d6bSBaptiste Daroussin# The remaining settings in this section are only relevant if BUILD_CGI 26761d06d6bSBaptiste Daroussin# is enabled. Otherwise, they have no effect either way. 26861d06d6bSBaptiste Daroussin 26961d06d6bSBaptiste Daroussin# By default, man.cgi(8) is linked statically if the compiler supports 27061d06d6bSBaptiste Daroussin# the -static option. If automatic detection fails, you can force 27161d06d6bSBaptiste Daroussin# static linking of man.cgi(8). 27261d06d6bSBaptiste Daroussin 27361d06d6bSBaptiste DaroussinSTATIC="-static" 27461d06d6bSBaptiste Daroussin 27561d06d6bSBaptiste Daroussin# Some systems may require -pthread for static linking: 27661d06d6bSBaptiste Daroussin 27761d06d6bSBaptiste DaroussinSTATIC="-static -pthread" 27861d06d6bSBaptiste Daroussin 27961d06d6bSBaptiste Daroussin# If static linking works in general but not with additional libraries 28061d06d6bSBaptiste Daroussin# like -lrt or -lz, you can force dynamic linking. This may for 28161d06d6bSBaptiste Daroussin# example be required on SunOS 5.9. 28261d06d6bSBaptiste Daroussin 28361d06d6bSBaptiste DaroussinSTATIC=" " 28461d06d6bSBaptiste Daroussin 28561d06d6bSBaptiste Daroussin# Some directories. 28661d06d6bSBaptiste Daroussin# This works just like PREFIX, see above. 28761d06d6bSBaptiste Daroussin 28861d06d6bSBaptiste DaroussinWWWPREFIX="/var/www" 28961d06d6bSBaptiste DaroussinHTDOCDIR="${WWWPREFIX}/htdocs" 29061d06d6bSBaptiste DaroussinCGIBINDIR="${WWWPREFIX}/cgi-bin" 29161d06d6bSBaptiste Daroussin 29261d06d6bSBaptiste Daroussin# --- user settings related to catman ---------------------------------- 29361d06d6bSBaptiste Daroussin 29461d06d6bSBaptiste Daroussin# By default, building mandocd(8) and catman(8) is disabled. 29561d06d6bSBaptiste Daroussin# To enable it, use the following line. 29661d06d6bSBaptiste Daroussin# It does not work on SunOS 5.10 because there is no mkdirat(2) 29761d06d6bSBaptiste Daroussin# nor on SunOS 5.9 which also lacks CMSG_LEN(3) and CMSG_SPACE(3). 2986d38604fSBaptiste Daroussin# It may not work on old releases of Mac OS X either. For example, 2996d38604fSBaptiste Daroussin# Mac OS X 10.4 Tiger provides neither mkdirat(2) nor openat(2). 30061d06d6bSBaptiste Daroussin 30161d06d6bSBaptiste DaroussinBUILD_CATMAN=1 30261d06d6bSBaptiste Daroussin 30361d06d6bSBaptiste Daroussin# Install catman(8) with a different name. 30461d06d6bSBaptiste Daroussin# See BINM_MAN above for details of how this works. 30561d06d6bSBaptiste Daroussin 30661d06d6bSBaptiste DaroussinBINM_CATMAN=mcatman # default is "catman" 30761d06d6bSBaptiste Daroussin 30861d06d6bSBaptiste Daroussin# --- settings that rarely need to be touched -------------------------- 30961d06d6bSBaptiste Daroussin 31061d06d6bSBaptiste Daroussin# Do not set these variables unless you really need to. 31161d06d6bSBaptiste Daroussin 31261d06d6bSBaptiste Daroussin# Normally, leave CFLAGS unset. In that case, -g will automatically 31361d06d6bSBaptiste Daroussin# be used, and various -W options will be added if the compiler 31461d06d6bSBaptiste Daroussin# supports them. If you define CFLAGS manually, it will be used 31561d06d6bSBaptiste Daroussin# unchanged, and nothing will be added. 31661d06d6bSBaptiste Daroussin 31761d06d6bSBaptiste DaroussinCFLAGS="-g" 31861d06d6bSBaptiste Daroussin 319*c1c95addSBrooks Davis# Hunt for memory leaks. 320*c1c95addSBrooks Davis# Do not use for production builds. 321*c1c95addSBrooks Davis# See mandoc_dbg_init(3) for more information. 322*c1c95addSBrooks Davis 323*c1c95addSBrooks DavisDEBUG_MEMORY=1 324*c1c95addSBrooks Davis 32561d06d6bSBaptiste Daroussin# In rare cases, it may be required to skip individual automatic tests. 32661d06d6bSBaptiste Daroussin# Each of the following variables can be set to 0 (test will not be run 32761d06d6bSBaptiste Daroussin# and will be regarded as failed) or 1 (test will not be run and will 32861d06d6bSBaptiste Daroussin# be regarded as successful). 32961d06d6bSBaptiste Daroussin 3306d38604fSBaptiste DaroussinHAVE_ATTRIBUTE=0 33161d06d6bSBaptiste DaroussinHAVE_DIRENT_NAMLEN=0 33261d06d6bSBaptiste DaroussinHAVE_ENDIAN=0 33361d06d6bSBaptiste DaroussinHAVE_EFTYPE=0 33461d06d6bSBaptiste DaroussinHAVE_ERR=0 33561d06d6bSBaptiste DaroussinHAVE_FTS=0 # Setting this implies HAVE_FTS_COMPARE_CONST=0. 33661d06d6bSBaptiste DaroussinHAVE_FTS_COMPARE_CONST=0 # Setting this implies HAVE_FTS=1. 33761d06d6bSBaptiste DaroussinHAVE_GETLINE=0 33861d06d6bSBaptiste DaroussinHAVE_GETSUBOPT=0 33961d06d6bSBaptiste DaroussinHAVE_ISBLANK=0 3407295610fSBaptiste DaroussinHAVE_LESS_T=0 34161d06d6bSBaptiste DaroussinHAVE_MKDTEMP=0 34261d06d6bSBaptiste DaroussinHAVE_NTOHL=0 34361d06d6bSBaptiste DaroussinHAVE_O_DIRECTORY=0 34461d06d6bSBaptiste DaroussinHAVE_OHASH=0 34561d06d6bSBaptiste DaroussinHAVE_PATH_MAX=0 34661d06d6bSBaptiste DaroussinHAVE_PLEDGE=0 34761d06d6bSBaptiste DaroussinHAVE_PROGNAME=0 34861d06d6bSBaptiste DaroussinHAVE_REALLOCARRAY=0 34961d06d6bSBaptiste DaroussinHAVE_RECALLOCARRAY=0 35061d06d6bSBaptiste DaroussinHAVE_REWB_BSD=0 35161d06d6bSBaptiste DaroussinHAVE_REWB_SYSV=0 35261d06d6bSBaptiste DaroussinHAVE_STRCASESTR=0 35361d06d6bSBaptiste DaroussinHAVE_STRINGLIST=0 35461d06d6bSBaptiste DaroussinHAVE_STRLCAT=0 35561d06d6bSBaptiste DaroussinHAVE_STRLCPY=0 35661d06d6bSBaptiste DaroussinHAVE_STRPTIME=0 35761d06d6bSBaptiste DaroussinHAVE_STRSEP=0 35861d06d6bSBaptiste DaroussinHAVE_STRTONUM=0 35961d06d6bSBaptiste DaroussinHAVE_SYS_ENDIAN=0 36061d06d6bSBaptiste DaroussinHAVE_VASPRINTF=0 36161d06d6bSBaptiste DaroussinHAVE_WCHAR=0 362