summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 4cc7b38f43d27aecf8f19633ccd8464d8aca8e9b (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
31
32
33
AC_INIT([sdlex], [0.1.0], [pjm@nac.net])
AC_CONFIG_SRCDIR([src/main.c])

AM_INIT_AUTOMAKE([subdir-objects])

AC_PROG_CC()
AM_PROG_CC_C_O()

AC_C_INLINE()

AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([string.h])

AC_TYPE_SIZE_T()

AC_FUNC_MALLOC()
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([strdup])
AC_CHECK_FUNCS([strndup])

PKG_PROG_PKG_CONFIG()
PKG_CHECK_MODULES([SDL], [sdl])
PKG_CHECK_MODULES([SDL_IMAGE], [SDL_image])
PKG_CHECK_MODULES([ZLIB], [zlib])
PKG_CHECK_MODULES([EXPAT], [expat])

if test "x$GCC" = "xyes"; then
	GCC_CFLAGS="-Wall -Wextra -Werror -pedantic"
fi
AC_SUBST(GCC_CFLAGS)

AC_CONFIG_FILES([Makefile])
AC_OUTPUT()