summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-09 16:44:39 -0400
committerJune McEnroe <june@causal.agency>2020-07-09 16:44:39 -0400
commit0aae05ac4a32c19ea14b512e4ea2ee339d5b096d (patch)
treed0d788b90ce6cda06bc2b63d20866e6dabe7acf4 /configure
parentAdd compatibility for kcgi <0.12 (diff)
downloadscooper-0aae05ac4a32c19ea14b512e4ea2ee339d5b096d.tar.gz
scooper-0aae05ac4a32c19ea14b512e4ea2ee339d5b096d.zip
Add configure script and install target
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
new file mode 100755
index 0000000..9cea63b
--- /dev/null
+++ b/configure
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -eu
+
+libs='kcgi kcgi-html sqlite3'
+pkg-config --print-errors $libs
+
+cat >config.mk <<EOF
+CFLAGS += $(pkg-config --static --cflags $libs)
+LDFLAGS += -static $(pkg-config --static --libs-only-L $libs)
+LDLIBS = $(pkg-config --static --libs-only-l $libs)
+EOF