cgol

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

configure (385B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
#!/bin/sh

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" "$(pkg-config --cflags "$@")"
}

libs() {
    printf "XXLDFLAGS = %s\n" "$(pkg-config --libs "$@")"
}

exec > config.mk
cflags cairo
libs cairo