diff options
author | June McEnroe <june@causal.agency> | 2020-02-06 23:49:27 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-06 23:50:04 -0500 |
commit | 5470254fa5fd0f6108b1f075d9ac2dd24afa7fdc (patch) | |
tree | a2ad129d6d255e204b9c3f806c07549b5b839f8d /configure | |
parent | Flush stdout after using putp (diff) | |
download | catgirl-5470254fa5fd0f6108b1f075d9ac2dd24afa7fdc.tar.gz catgirl-5470254fa5fd0f6108b1f075d9ac2dd24afa7fdc.zip |
Add simple configure script
Mostly motivated by wanting to build with the ncurses in pkgsrc because it supports italics.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 0000000..90e1173 --- /dev/null +++ b/configure @@ -0,0 +1,11 @@ +#!/bin/sh +set -eu + +libs='libcrypto libtls ncursesw' +pkg-config --print-errors $libs + +cat >config.mk <<EOF +CFLAGS += $(pkg-config --cflags $libs) +LDFLAGS += $(pkg-config --libs-only-L $libs) +LDLIBS = $(pkg-config --libs-only-l $libs) +EOF |