-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
35 lines (27 loc) · 1.22 KB
/
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([nasos], [0.1], [[email protected]])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AM_PROG_AR
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB([SDL2], [SDL_Init], [], [AC_MSG_ERROR([SDL2 library not found])])
AC_CHECK_LIB([SDL2_gfx], [rotozoomSurface], [], [AC_MSG_ERROR([SDL2_gfx library not found])])
AC_CHECK_LIB([SDL2_mixer], [Mix_OpenAudio], [], [AC_MSG_ERROR([SDL2_mixer library not found])])
AC_CHECK_LIB([SDL2_ttf], [TTF_OpenFont], [], [AC_MSG_ERROR([SDL2_ttf library not found])])
AC_CHECK_LIB([m], [cos], [], [AC_MSG_ERROR([math library not found])])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h unistd.h], [],
[AC_MSG_ERROR([some required header files were not found])])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([getcwd memset sqrt], [],
[AC_MSG_ERROR([some required functions were not found])])
AC_CONFIG_FILES([Makefile src/Makefile data/Makefile])
AC_OUTPUT