summary refs log tree commit diff
path: root/configure
blob: 96224d0b99a87f5b286ffa02a903cc6b25e9c5fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
set -eu

base='-lcrypt'
libs='libcrypto libtls'
[ "$(uname)" = 'Darwin' ] && base=

exec >config.mk

pkg-config --print-errors $libs

cat <<EOF
CFLAGS += $(pkg-config --cflags $libs)
LDFLAGS += $(pkg-config --libs-only-L $libs)
LDLIBS = ${base} $(pkg-config --libs-only-l $libs)
CFLAGS += -D'OPENSSL_BIN="$(pkg-config --variable=exec_prefix openssl)/bin/openssl"'
CFLAGS += -D'CERTBOT_PATH="/etc/letsencrypt"'
INSTALLS =
EOF

if [ "$(uname)" = 'Linux' ]; then
	cat <<-EOF
	CFLAGS += -D_GNU_SOURCE
	LDLIBS.calico = \${LDLIBS}
	EOF
fi
> I have not read it. This was contributed by the woman who made me install Real War: Not Fake. 2026-04-23Add y-d templateJune McEnroe 2026-03-23Replace tmppath pledge with rpath wpath cpathJune McEnroe 2026-03-23Add -ll for hilexJune McEnroe huh. should have always been there I guess, but now it actually matters, at least on OpenBSD? 2026-02-17Remove photo metadata directoriesJune McEnroe 2026-02-17Ignore photo metadataJune McEnroe I just don't want to be adding all this stuff to git. 2026-02-16Populate films datalist with 20 most recently usedJune McEnroe 2026-02-16Select last used bodyJune McEnroe 2026-02-15Don't break on trip with removed bodyJune McEnroe 2026-02-11Keep manpath.conf sortedJune McEnroe