Blame


1 f36fd90a 2022-07-09 op #
2 f36fd90a 2022-07-09 op # Copyright (c) 2022 Omar Polo <op@openbsd.org>
3 f36fd90a 2022-07-09 op # Copyright (c) 2014-2022 Ingo Schwarze <schwarze@openbsd.org>
4 f36fd90a 2022-07-09 op #
5 f36fd90a 2022-07-09 op # Permission to use, copy, modify, and distribute this software for any
6 f36fd90a 2022-07-09 op # purpose with or without fee is hereby granted, provided that the above
7 f36fd90a 2022-07-09 op # copyright notice and this permission notice appear in all copies.
8 f36fd90a 2022-07-09 op #
9 f36fd90a 2022-07-09 op # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 f36fd90a 2022-07-09 op # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 f36fd90a 2022-07-09 op # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 f36fd90a 2022-07-09 op # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 f36fd90a 2022-07-09 op # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 f36fd90a 2022-07-09 op # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 f36fd90a 2022-07-09 op # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 f36fd90a 2022-07-09 op
17 f36fd90a 2022-07-09 op # For all settings documented in this file, there are reasonable
18 f36fd90a 2022-07-09 op # defaults and/or the ./configure script attempts autodetection.
19 f36fd90a 2022-07-09 op # Consequently, you only need to create a file ./configure.local
20 f36fd90a 2022-07-09 op # and put any of these settings into it if ./configure autodetection
21 f36fd90a 2022-07-09 op # fails or if you want to make different choices for other reasons.
22 f36fd90a 2022-07-09 op
23 f36fd90a 2022-07-09 op # If autodetection fails, please tell <op@omarpolo.com>.
24 f36fd90a 2022-07-09 op
25 f36fd90a 2022-07-09 op # We recommend that you write ./configure.local from scratch and
26 f36fd90a 2022-07-09 op # only put the lines there you need. This file contains examples.
27 f36fd90a 2022-07-09 op # It is not intended as a template to be copied as a whole.
28 f36fd90a 2022-07-09 op
29 f36fd90a 2022-07-09 op # Some systems may want to set additional linker flags for all the
30 f36fd90a 2022-07-09 op # binaries, for example for hardening options.
31 f36fd90a 2022-07-09 op
32 f36fd90a 2022-07-09 op LDFLAGS="-Wl,-z,relro"
33 f36fd90a 2022-07-09 op
34 f36fd90a 2022-07-09 op # It may be needed to change the flags for the individual libraries.
35 f36fd90a 2022-07-09 op
36 f36fd90a 2022-07-09 op LDADD_IMSG="-limsg"
37 f36fd90a 2022-07-09 op LDADD_LIBEVENT2="-L/opt/lib/ -levent_extra -levent_core"
38 f36fd90a 2022-07-09 op LDADD_LIB_FLAC=
39 f36fd90a 2022-07-09 op LDADD_LIB_MPG123=
40 f36fd90a 2022-07-09 op LDADD_LIB_VORBISFILE=
41 f36fd90a 2022-07-09 op LDADD_LIB_SNDIO=
42 f36fd90a 2022-07-09 op LDADD_LIB_SOCKET=
43 f36fd90a 2022-07-09 op
44 f36fd90a 2022-07-09 op # To disable the autoconfiguration via pkg-config set PKG_CONFIG to
45 f36fd90a 2022-07-09 op # the empty string:
46 f36fd90a 2022-07-09 op
47 f36fd90a 2022-07-09 op PKG_CONFIG=
48 f36fd90a 2022-07-09 op
49 f36fd90a 2022-07-09 op # It is possible to change the utility program used for installation
50 f36fd90a 2022-07-09 op # and the modes files are installed with. The defaults are:
51 f36fd90a 2022-07-09 op
52 f36fd90a 2022-07-09 op INSTALL="install"
53 f36fd90a 2022-07-09 op INSTALL_PROGRAM="${INSTALL} -m 0555"
54 f36fd90a 2022-07-09 op INSTALL_LIB="${INSTALL} -m 0444"
55 f36fd90a 2022-07-09 op INSTALL_MAN="${INSTALL} -m 0444"
56 f36fd90a 2022-07-09 op INSTALL_DATA="${INSTALL} -m 0444"
57 f36fd90a 2022-07-09 op
58 f36fd90a 2022-07-09 op # In rare cases, it may be required to skip individual automatic tests.
59 f36fd90a 2022-07-09 op # Each of the following variables can be set to 0 (test will not be run
60 f36fd90a 2022-07-09 op # and will be regarded as failed) or 1 (test will not be run and will
61 f36fd90a 2022-07-09 op # be regarded as successful).
62 f36fd90a 2022-07-09 op
63 f36fd90a 2022-07-09 op HAVE_CAPSICUM=0
64 f36fd90a 2022-07-09 op HAVE_ERR=0
65 f36fd90a 2022-07-09 op HAVE_EXPLICIT_BZERO=0
66 f36fd90a 2022-07-09 op HAVE_GETEXECNAME=0
67 f36fd90a 2022-07-09 op HAVE_GETPROGNAME=0
68 f36fd90a 2022-07-09 op HAVE_IMSG=0
69 f36fd90a 2022-07-09 op HAVE_LANDLOCK=0
70 f36fd90a 2022-07-09 op HAVE_LIBEVENT=0
71 f36fd90a 2022-07-09 op HAVE_LIBEVENT2=0
72 f36fd90a 2022-07-09 op HAVE_LIB_FLAC=0
73 f36fd90a 2022-07-09 op HAVE_LIB_MPG123=0
74 f36fd90a 2022-07-09 op HAVE_LIB_OPUSFILE=0
75 f36fd90a 2022-07-09 op HAVE_LIB_VORBISFILE=0
76 f36fd90a 2022-07-09 op HAVE_MEMMEM=0
77 f36fd90a 2022-07-09 op HAVE_MEMRCHR=0
78 f36fd90a 2022-07-09 op HAVE_PATH_MAX=0
79 f36fd90a 2022-07-09 op HAVE_PLEDGE=0
80 f36fd90a 2022-07-09 op HAVE_PROGRAM_INVOCATION_SHORT_NAME=0
81 f36fd90a 2022-07-09 op HAVE_REALLOCARRAY=0
82 f36fd90a 2022-07-09 op HAVE_RECALLOCARRAY=0
83 f36fd90a 2022-07-09 op HAVE_SANDBOX_INIT=0
84 f36fd90a 2022-07-09 op HAVE_STRLCAT=0
85 f36fd90a 2022-07-09 op HAVE_STRLCPY=0
86 f36fd90a 2022-07-09 op HAVE_STRNDUP=0
87 f36fd90a 2022-07-09 op HAVE_STRNLEN=0
88 f36fd90a 2022-07-09 op HAVE_STRTONUM=0
89 f36fd90a 2022-07-09 op HAVE_SYS_QUEUE=0
90 f36fd90a 2022-07-09 op HAVE_UNVEIL=0
91 f36fd90a 2022-07-09 op HAVE___PROGNAME=0