diff options
author | Starla Insigna <starla4444@gmail.com> | 2013-08-25 17:07:35 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2013-08-25 17:07:35 -0400 |
commit | d47da18958b5214def5127e201f60668c566d9bb (patch) | |
tree | 00751c11ff7d44c9e8bd56e0f4c670bb337095aa /configure.ac | |
parent | 387685d34e6c4ebee776a700a01fed4df05446be (diff) | |
download | mazeoflife-d47da18958b5214def5127e201f60668c566d9bb.tar.gz mazeoflife-d47da18958b5214def5127e201f60668c566d9bb.tar.bz2 mazeoflife-d47da18958b5214def5127e201f60668c566d9bb.zip |
Moved to an autoconf-based build system
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..f311aa6 --- /dev/null +++ b/configure.ac | |||
@@ -0,0 +1,44 @@ | |||
1 | AC_INIT(mazeoflife, version-2.0) | ||
2 | AC_PREREQ([2.59]) | ||
3 | AM_INIT_AUTOMAKE([1.10 no-define foreign]) | ||
4 | AC_PROG_CXX | ||
5 | AC_CONFIG_FILES([Makefile]) | ||
6 | |||
7 | dnl Check for SDL | ||
8 | SDL_VERSION=1.2.0 | ||
9 | AM_PATH_SDL($SDL_VERSION, | ||
10 | :, | ||
11 | AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) | ||
12 | ) | ||
13 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | ||
14 | LIBS="$LIBS $SDL_LIBS" | ||
15 | |||
16 | dnl Check for SDL_ttf | ||
17 | AC_ARG_WITH([sdl-ttf-include-path], | ||
18 | [AS_HELP_STRING([--with-sdl-ttf-include-path], | ||
19 | [location of the SDL_ttf headers, defaults to /usr/include/SDL])], | ||
20 | [SDLTTF_CXXFLAGS="-I$withval"], | ||
21 | [SDLTTF_CXXFLAGS="-I/usr/include/SDL"]) | ||
22 | AC_SUBST([SDLTTF_CXXFLAGS]) | ||
23 | |||
24 | AC_ARG_WITH([sdl-ttf-lib-path], | ||
25 | [AS_HELP_STRING([--with-sdl-ttf-lib-path], [location of the SDL_ttf library])], | ||
26 | [SDLTTF_LIBS="-L$withval -lsdl_ttf"], | ||
27 | [SDLTTF_LIBS="-lsdl_ttf"]) | ||
28 | AC_SUBST([SDLTTF_LIBS]) | ||
29 | |||
30 | dnl Check for SDL_net | ||
31 | AC_ARG_WITH([sdl-net-include-path], | ||
32 | [AS_HELP_STRING([--with-sdl-net-include-path], | ||
33 | [location of the SDL_net headers, defaults to /usr/include/SDL])], | ||
34 | [SDLNET_CXXFLAGS="-I$withval"], | ||
35 | [SDLNET_CXXFLAGS="-I/usr/include/SDL"]) | ||
36 | AC_SUBST([SDLNET_CXXFLAGS]) | ||
37 | |||
38 | AC_ARG_WITH([sdl-net-lib-path], | ||
39 | [AS_HELP_STRING([--with-sdl-net-lib-path], [location of the SDL_net library])], | ||
40 | [SDLNET_LIBS="-L$withval -lsdl_net"], | ||
41 | [SDLNET_LIBS="-lsdl_net"]) | ||
42 | AC_SUBST([SDLNET_LIBS]) | ||
43 | |||
44 | AC_OUTPUT \ No newline at end of file | ||