summaryrefslogtreecommitdiff
path: root/configure.ac
blob: ff0f6e1b45bf8071603a78ada6ae8a7394261333 (plain)
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
27
28
29
30
dnl -*- Autoconf -*-

AC_INIT(Sly, 0.2.0)
AC_CONFIG_SRCDIR(sly)
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
AM_SILENT_RULES([yes])

AC_PATH_PROG([GUILE], [guile])
AC_CONFIG_FILES([Makefile doc/Makefile examples/Makefile data/Makefile])
AC_CONFIG_FILES([sly/config.scm])
AC_CONFIG_FILES([sandbox], [chmod +x sandbox])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])

# Prepare a version of $datadir that does not contain references to
# shell variables.
sly_prefix="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
sly_datadir="`eval eval echo $datadir | sed -e "s|NONE|$sly_prefix|g"`"
AC_SUBST([sly_datadir])

GUILE_PKG([2.2 2.0])
GUILE_PROGS

GUILE_MODULE_REQUIRED([sdl2])
GUILE_MODULE_REQUIRED([sdl2 image])
GUILE_MODULE_REQUIRED([sdl2 mixer])
GUILE_MODULE_REQUIRED([sdl2 ttf])
GUILE_MODULE_REQUIRED([gl])

AC_OUTPUT