Debian Codegraph @

configure.in

raw ◀ ▶
1 Debian patch touch this file
1 # This first line initializes autoconf and gives it a file that it can
2 # look for to make sure the source distribution is complete.
3
4 AC_INIT(README)
5 AM_PROG_LEX
6
7 # The AM_INIT_AUTOMAKE macro tells automake the name and version number
8 # of the software package so it can generate rules for building a source
9 # archive.
10
11 AM_INIT_AUTOMAKE(pipenightdreams, 0.10.0)
•12 AM_MAINTAINER_MODE
13 AC_PREFIX_DEFAULT(/usr/local)
14 AM_CONFIG_HEADER(src/config.h)
15
16 # We now have a list of macros which tell autoconf what tools we need to
17 # build our software, in this case "make", a C++ compiler, and "install".
18 # If we were creating a C program, we would use AC_PROC_CC instead of CXX.
19
20 AC_PROG_MAKE_SET
21 AC_PROG_CXX
22 AC_PROG_INSTALL
23
24 # This is a trick I learned at Loki - the current compiler for the alpha
25 # architecture doesn't produce code that works on all versions of the
26 # alpha processor. This bit detects the current compile architecture
27 # and sets the compiler flags to produce portable binary code.
28
29 #AC_CANONICAL_HOST
30 AC_CANONICAL_TARGET
31 case "$target" in
32 alpha*-*-linux*)
33 CXXFLAGS="$CXXFLAGS -mcpu=ev4 -Wa,-mall"
34 ;;
35 esac
36
37 # Use the macro SDL provides to check the installed version of the SDL
38 # development environment. Abort the configuration process if the
39 # minimum version we require isn't available.
40 SDL_VERSION=1.1.5
41 AM_PATH_SDL($SDL_VERSION,
42 :,
43 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
44 )
45 # Add the SDL preprocessor flags and libraries to the build process
46 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
47 LIBS="$LIBS $SDL_LIBS"
48
49 AC_CHECK_LIB(SDL_image, IMG_Load)
50
51 LIBTOOL=../libtool
52 AC_SUBST(LIBTOOL)
53
54 #Thanks to Ingo Ruhnke <[email protected]>
55 MY_EXPAND_DIR(game_datadir, "$datadir/games/$PACKAGE")
56 AC_DEFINE_UNQUOTED(GAME_DATADIR, "$game_datadir")
57
58 # Finally create all the generated files
59 # The configure script takes "file.in" and substitutes variables to produce
60 # "file". In this case we are just generating the Makefiles, but this could
61 # be used to generate any number of automatically generated files.
62 AC_OUTPUT([
63 Makefile
64 src/Makefile
65 levels/Makefile
66 images/Makefile
67 images/arrows_yellow/Makefile
68 images/flow_green/Makefile
69 images/pipes_toys/Makefile
70 images/default/Makefile
71 images/flow_light/Makefile
72 images/pipes_cables/Makefile
73 images/pipes_wire/Makefile
74 images/pipes_metal/Makefile
75 images/arrows_grey/Makefile
76 images/flow_blue/Makefile
77 images/pipes_space/Makefile
78 images/pipes_space/back01/Makefile
79 images/pipes_space/back02/Makefile
80 images/pipes_space/back03/Makefile
81 images/pipes_space/back04/Makefile
82 images/pipes_space/back05/Makefile
83 man/Makefile
84 ])