-
Notifications
You must be signed in to change notification settings - Fork 9
/
configure.ac
36 lines (29 loc) · 909 Bytes
/
configure.ac
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
31
32
33
34
35
36
# configure.ac
AC_INIT([chip8], [0.2.0], [danirod@outlook.com])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
# Check programs
AM_PROG_AR
AC_PROG_CC
AC_PROG_RANLIB
# Coverages
AC_ARG_ENABLE(gcov, ([--enable-gcov, "Enables gcov"]))
AS_IF([test "x$enable_gcov" = "xyes"], CFLAGS="$CFLAGS -g -O0 -fprofile-arcs -ftest-coverage")
# Check libraries
AC_CHECK_LIB([m], [sinf], [], [AC_MSG_ERROR(["** ERROR: Math library not found **"])])
# Check header files
# Check typedefs, structures and so
# Check library functions
AM_PATH_SDL2([2.0.0], :, AC_MSG_ERROR(["** ERROR: SDL 2.0 is required **"]))
PKG_CHECK_MODULES([CHECK], [check >= 0.9.6], [has_check=1], [has_check=0])
AM_CONDITIONAL([HAVE_CHECK], [test "x$has_check" = "x1"])
# Output
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/lib8/Makefile
src/chip8/Makefile
doc/Makefile
tests/Makefile
])
AC_OUTPUT