cgol

a cairo-based Game Of Life
git clone git://bvnf.space/cgol.git
Log | Files | Refs

commit b42e8237685b175d624d081a74660c78f85ff7bd
parent dd0a2d572e7c3441fec503f1d5f108d6362d137b
Author: aabacchus <ben@bvnf.space>
Date:   Mon, 27 Sep 2021 23:03:56 +0100

_XOPEN_SOURCE; check for pkg-config

Diffstat:
Mcgol.h | 1+
Mconfigure | 9+++++++--
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/cgol.h b/cgol.h @@ -13,6 +13,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#define _XOPEN_SOURCE 600 #include <cairo.h> #include <stdio.h> #include <stdlib.h> diff --git a/configure b/configure @@ -2,12 +2,17 @@ set -e +command -v pkg-config >/dev/null || { + printf "pkg-config not found. please set the cflags (XXCFLAGS) and ldflags (XXLDFLAGS) required for cairo in config.mk\n" >&2 + exit 1 +} + cflags() { - printf "XXCFLAGS = %s\n" "$(pkgconf --cflags "$@")" + printf "XXCFLAGS = %s\n" "$(pkg-config --cflags "$@")" } libs() { - printf "XXLDFLAGS = %s\n" "$(pkgconf --libs "$@")" + printf "XXLDFLAGS = %s\n" "$(pkg-config --libs "$@")" } exec > config.mk